Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLimits

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelLimits

Returns a new instance of GoogleAppsDriveLabelsV2betaLabelLimits.



2476
2477
2478
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2476

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#field_limitsGoogle::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



2443
2444
2445
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2443

def field_limits
  @field_limits
end

#max_deleted_fieldsFixnum

The maximum number of published Fields that can be deleted. Corresponds to the JSON property maxDeletedFields

Returns:

  • (Fixnum)


2448
2449
2450
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2448

def max_deleted_fields
  @max_deleted_fields
end

#max_description_lengthFixnum

The maximum number of characters allowed for the description. Corresponds to the JSON property maxDescriptionLength

Returns:

  • (Fixnum)


2453
2454
2455
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2453

def max_description_length
  @max_description_length
end

#max_draft_revisionsFixnum

The maximum number of draft revisions that will be kept before deleting old drafts. Corresponds to the JSON property maxDraftRevisions

Returns:

  • (Fixnum)


2459
2460
2461
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2459

def max_draft_revisions
  @max_draft_revisions
end

#max_fieldsFixnum

The maximum number of Fields allowed within the label. Corresponds to the JSON property maxFields

Returns:

  • (Fixnum)


2464
2465
2466
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2464

def max_fields
  @max_fields
end

#max_title_lengthFixnum

The maximum number of characters allowed for the title. Corresponds to the JSON property maxTitleLength

Returns:

  • (Fixnum)


2469
2470
2471
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2469

def max_title_length
  @max_title_length
end

#nameString

Resource name. Corresponds to the JSON property name

Returns:

  • (String)


2474
2475
2476
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2474

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2481
2482
2483
2484
2485
2486
2487
2488
2489
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2481

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