Class: Google::Apis::ContentV2_1::AccountLabel
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountLabel
- 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
-
#account_id ⇒ Fixnum
Immutable.
-
#description ⇒ String
The description of this label.
-
#label_id ⇒ Fixnum
Output only.
-
#label_type ⇒ String
Output only.
-
#name ⇒ String
The display name of this label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountLabel
constructor
A new instance of AccountLabel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountLabel
Returns a new instance of AccountLabel.
427 428 429 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 427 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
Immutable. The ID of account this label belongs to.
Corresponds to the JSON property accountId
405 406 407 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 405 def account_id @account_id end |
#description ⇒ String
The description of this label.
Corresponds to the JSON property description
410 411 412 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 410 def description @description end |
#label_id ⇒ Fixnum
Output only. The ID of the label.
Corresponds to the JSON property labelId
415 416 417 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 415 def label_id @label_id end |
#label_type ⇒ String
Output only. The type of this label.
Corresponds to the JSON property labelType
420 421 422 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 420 def label_type @label_type end |
#name ⇒ String
The display name of this label.
Corresponds to the JSON property name
425 426 427 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 425 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
432 433 434 435 436 437 438 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 432 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 |