Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drivelabels_v2beta/classes.rb,
lib/google/apis/drivelabels_v2beta/representations.rb,
lib/google/apis/drivelabels_v2beta/representations.rb

Overview

Response following Field create.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse

Returns a new instance of GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse.



953
954
955
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 953

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The field of the created field. When left blank in a create request, a key will be autogenerated and can be identified here. Corresponds to the JSON property id

Returns:

  • (String)


945
946
947
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 945

def id
  @id
end

#priorityFixnum

The priority of the created field. The priority may change from what was specified to assure contiguous priorities between fields (1-n). Corresponds to the JSON property priority

Returns:

  • (Fixnum)


951
952
953
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 951

def priority
  @priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



958
959
960
961
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 958

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @priority = args[:priority] if args.key?(:priority)
end