Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaPublishLabelRequest
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaPublishLabelRequest
- 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 publish a label.
Instance Attribute Summary collapse
-
#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
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) ⇒ GoogleAppsDriveLabelsV2betaPublishLabelRequest
constructor
A new instance of GoogleAppsDriveLabelsV2betaPublishLabelRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaPublishLabelRequest
Returns a new instance of GoogleAppsDriveLabelsV2betaPublishLabelRequest.
2916 2917 2918 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2916 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
2901 2902 2903 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2901 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
2907 2908 2909 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2907 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
2914 2915 2916 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2914 def write_control @write_control end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2921 2922 2923 2924 2925 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2921 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access) @write_control = args[:write_control] if args.key?(:write_control) end |