Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLimits
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLimits
- 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
Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.
Instance Attribute Summary collapse
-
#field_limits ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldLimits
Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.
-
#max_deleted_fields ⇒ Fixnum
The maximum number of published Fields that can be deleted.
-
#max_description_length ⇒ Fixnum
The maximum number of characters allowed for the description.
-
#max_draft_revisions ⇒ Fixnum
The maximum number of draft revisions that will be kept before deleting old drafts.
-
#max_fields ⇒ Fixnum
The maximum number of Fields allowed within the label.
-
#max_title_length ⇒ Fixnum
The maximum number of characters allowed for the title.
-
#name ⇒ String
Resource name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelLimits
constructor
A new instance of GoogleAppsDriveLabelsV2betaLabelLimits.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelLimits
Returns a new instance of GoogleAppsDriveLabelsV2betaLabelLimits.
2452 2453 2454 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2452 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_limits ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldLimits
Field constants governing the structure of a Field; such as, the maximum title
length, minimum and maximum field values or length, etc.
Corresponds to the JSON property fieldLimits
2419 2420 2421 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2419 def field_limits @field_limits end |
#max_deleted_fields ⇒ Fixnum
The maximum number of published Fields that can be deleted.
Corresponds to the JSON property maxDeletedFields
2424 2425 2426 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2424 def max_deleted_fields @max_deleted_fields end |
#max_description_length ⇒ Fixnum
The maximum number of characters allowed for the description.
Corresponds to the JSON property maxDescriptionLength
2429 2430 2431 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2429 def max_description_length @max_description_length end |
#max_draft_revisions ⇒ Fixnum
The maximum number of draft revisions that will be kept before deleting old
drafts.
Corresponds to the JSON property maxDraftRevisions
2435 2436 2437 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2435 def max_draft_revisions @max_draft_revisions end |
#max_fields ⇒ Fixnum
The maximum number of Fields allowed within the label.
Corresponds to the JSON property maxFields
2440 2441 2442 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2440 def max_fields @max_fields end |
#max_title_length ⇒ Fixnum
The maximum number of characters allowed for the title.
Corresponds to the JSON property maxTitleLength
2445 2446 2447 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2445 def max_title_length @max_title_length end |
#name ⇒ String
Resource name.
Corresponds to the JSON property name
2450 2451 2452 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2450 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2457 2458 2459 2460 2461 2462 2463 2464 2465 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2457 def update!(**args) @field_limits = args[:field_limits] if args.key?(:field_limits) @max_deleted_fields = args[:max_deleted_fields] if args.key?(:max_deleted_fields) @max_description_length = args[:max_description_length] if args.key?(:max_description_length) @max_draft_revisions = args[:max_draft_revisions] if args.key?(:max_draft_revisions) @max_fields = args[:max_fields] if args.key?(:max_fields) @max_title_length = args[:max_title_length] if args.key?(:max_title_length) @name = args[:name] if args.key?(:name) end |