Class: Google::Apis::ContentV2_1::AccountLabel

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

Label assigned by CSS domain or CSS group to one of its sub-accounts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountLabel

Returns a new instance of AccountLabel.



408
409
410
# File 'lib/google/apis/content_v2_1/classes.rb', line 408

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

Instance Attribute Details

#account_idFixnum

Immutable. The ID of account this label belongs to. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


386
387
388
# File 'lib/google/apis/content_v2_1/classes.rb', line 386

def 
  @account_id
end

#descriptionString

The description of this label. Corresponds to the JSON property description

Returns:

  • (String)


391
392
393
# File 'lib/google/apis/content_v2_1/classes.rb', line 391

def description
  @description
end

#label_idFixnum

Output only. The ID of the label. Corresponds to the JSON property labelId

Returns:

  • (Fixnum)


396
397
398
# File 'lib/google/apis/content_v2_1/classes.rb', line 396

def label_id
  @label_id
end

#label_typeString

Output only. The type of this label. Corresponds to the JSON property labelType

Returns:

  • (String)


401
402
403
# File 'lib/google/apis/content_v2_1/classes.rb', line 401

def label_type
  @label_type
end

#nameString

The display name of this label. Corresponds to the JSON property name

Returns:

  • (String)


406
407
408
# File 'lib/google/apis/content_v2_1/classes.rb', line 406

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



413
414
415
416
417
418
419
# File 'lib/google/apis/content_v2_1/classes.rb', line 413

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @description = args[:description] if args.key?(:description)
  @label_id = args[:label_id] if args.key?(:label_id)
  @label_type = args[:label_type] if args.key?(:label_type)
  @name = args[:name] if args.key?(:name)
end