Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest

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

Request to update the CopyMode of the given Label. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. \

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest.



3026
3027
3028
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3026

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

Instance Attribute Details

#copy_modeString

Required. Indicates how the applied Label, and Field values should be copied when a Drive item is copied. Corresponds to the JSON property copyMode

Returns:

  • (String)


3005
3006
3007
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3005

def copy_mode
  @copy_mode
end

#language_codeString

The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. Corresponds to the JSON property languageCode

Returns:

  • (String)


3011
3012
3013
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3011

def language_code
  @language_code
end

#use_admin_accessBoolean Also known as: use_admin_access?

Set to true in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. Corresponds to the JSON property useAdminAccess

Returns:

  • (Boolean)


3017
3018
3019
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3017

def use_admin_access
  @use_admin_access
end

#viewString

When specified, only certain fields belonging to the indicated view will be returned. Corresponds to the JSON property view

Returns:

  • (String)


3024
3025
3026
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3024

def view
  @view
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3031
3032
3033
3034
3035
3036
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3031

def update!(**args)
  @copy_mode = args[:copy_mode] if args.key?(:copy_mode)
  @language_code = args[:language_code] if args.key?(:language_code)
  @use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
  @view = args[:view] if args.key?(:view)
end