Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDisableLabelRequest
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDisableLabelRequest
- 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 deprecate a published Label.
Instance Attribute Summary collapse
-
#disabled_policy ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy
The policy that governs how to treat a disabled label, field, or selection choice in different contexts.
-
#language_code ⇒ String
The BCP-47 language code to use for evaluating localized field labels.
-
#update_mask ⇒ String
The fields that should be updated.
-
#use_admin_access ⇒ Boolean
(also: #use_admin_access?)
Set to
true
in order to use the user's admin credentials. -
#write_control ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaWriteControl
Provides control over how write requests are executed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDisableLabelRequest
constructor
A new instance of GoogleAppsDriveLabelsV2betaDisableLabelRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDisableLabelRequest
Returns a new instance of GoogleAppsDriveLabelsV2betaDisableLabelRequest.
1248 1249 1250 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disabled_policy ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy
The policy that governs how to treat a disabled label, field, or selection
choice in different contexts.
Corresponds to the JSON property disabledPolicy
1220 1221 1222 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1220 def disabled_policy @disabled_policy 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
1226 1227 1228 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1226 def language_code @language_code end |
#update_mask ⇒ String
The fields that should be updated. At least one field must be specified. The
root disabled_policy
is implied and should not be specified. A single *
can be used as short-hand for updating every field.
Corresponds to the JSON property updateMask
1233 1234 1235 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1233 def update_mask @update_mask 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
1239 1240 1241 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1239 def use_admin_access @use_admin_access end |
#write_control ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaWriteControl
Provides control over how write requests are executed. When not specified, the
last write wins.
Corresponds to the JSON property writeControl
1246 1247 1248 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1246 def write_control @write_control end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1253 def update!(**args) @disabled_policy = args[:disabled_policy] if args.key?(:disabled_policy) @language_code = args[:language_code] if args.key?(:language_code) @update_mask = args[:update_mask] if args.key?(:update_mask) @use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access) @write_control = args[:write_control] if args.key?(:write_control) end |