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.
2483 2484 2485 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2483 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
2450 2451 2452 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2450 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
2455 2456 2457 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2455 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
2460 2461 2462 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2460 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
2466 2467 2468 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2466 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
2471 2472 2473 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2471 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
2476 2477 2478 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2476 def max_title_length @max_title_length end |
#name ⇒ String
Resource name.
Corresponds to the JSON property name
2481 2482 2483 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2481 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2488 2489 2490 2491 2492 2493 2494 2495 2496 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2488 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 |