Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities

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 on applied metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities

Returns a new instance of GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities.



821
822
823
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 821

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

Instance Attribute Details

#can_readBoolean Also known as: can_read?

Whether the user can read related applied metadata on items. Corresponds to the JSON property canRead

Returns:

  • (Boolean)


806
807
808
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 806

def can_read
  @can_read
end

#can_searchBoolean Also known as: can_search?

Whether the user can use this choice in search queries. Corresponds to the JSON property canSearch

Returns:

  • (Boolean)


812
813
814
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 812

def can_search
  @can_search
end

#can_selectBoolean Also known as: can_select?

Whether the user can select this choice on an item. Corresponds to the JSON property canSelect

Returns:

  • (Boolean)


818
819
820
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 818

def can_select
  @can_select
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



826
827
828
829
830
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 826

def update!(**args)
  @can_read = args[:can_read] if args.key?(:can_read)
  @can_search = args[:can_search] if args.key?(:can_search)
  @can_select = args[:can_select] if args.key?(:can_select)
end