Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest
- 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
-
#copy_mode ⇒ String
Required.
-
#language_code ⇒ String
The BCP-47 language code to use for evaluating localized field labels.
-
#use_admin_access ⇒ Boolean
(also: #use_admin_access?)
Set to
truein order to use the user's admin credentials. -
#view ⇒ String
When specified, only certain fields belonging to the indicated view will be returned.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest
constructor
A new instance of GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest
Returns a new instance of GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest.
3050 3051 3052 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3050 def initialize(**args) update!(**args) end |
Instance Attribute Details
#copy_mode ⇒ String
Required. Indicates how the applied Label, and Field values should be copied
when a Drive item is copied.
Corresponds to the JSON property copyMode
3029 3030 3031 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3029 def copy_mode @copy_mode end |
#language_code ⇒ String
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
3035 3036 3037 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3035 def language_code @language_code end |
#use_admin_access ⇒ Boolean 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
3041 3042 3043 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3041 def use_admin_access @use_admin_access end |
#view ⇒ String
When specified, only certain fields belonging to the indicated view will be
returned.
Corresponds to the JSON property view
3048 3049 3050 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3048 def view @view end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3055 3056 3057 3058 3059 3060 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3055 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 |