Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities

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

Overview

The capabilities related to this choice when editing the choice.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities

Returns a new instance of GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities.



2068
2069
2070
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2068

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

Instance Attribute Details

#can_deleteBoolean Also known as: can_delete?

Whether the user can delete this choice. Corresponds to the JSON property canDelete

Returns:

  • (Boolean)


2047
2048
2049
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2047

def can_delete
  @can_delete
end

#can_disableBoolean Also known as: can_disable?

Whether the user can disable this choice. Corresponds to the JSON property canDisable

Returns:

  • (Boolean)


2053
2054
2055
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2053

def can_disable
  @can_disable
end

#can_enableBoolean Also known as: can_enable?

Whether the user can enable this choice. Corresponds to the JSON property canEnable

Returns:

  • (Boolean)


2059
2060
2061
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2059

def can_enable
  @can_enable
end

#can_updateBoolean Also known as: can_update?

Whether the user can update this choice. Corresponds to the JSON property canUpdate

Returns:

  • (Boolean)


2065
2066
2067
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2065

def can_update
  @can_update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2073
2074
2075
2076
2077
2078
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2073

def update!(**args)
  @can_delete = args[:can_delete] if args.key?(:can_delete)
  @can_disable = args[:can_disable] if args.key?(:can_disable)
  @can_enable = args[:can_enable] if args.key?(:can_enable)
  @can_update = args[:can_update] if args.key?(:can_update)
end