Class: Google::Apis::CssV1::AccountLabel
- Inherits:
-
Object
- Object
- Google::Apis::CssV1::AccountLabel
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/css_v1/classes.rb,
lib/google/apis/css_v1/representations.rb,
lib/google/apis/css_v1/representations.rb
Overview
Label assigned by CSS domain or CSS group to one of its sub-accounts.
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
Output only.
-
#description ⇒ String
The description of this label.
-
#display_name ⇒ String
The display name of this label.
-
#label_id ⇒ Fixnum
Output only.
-
#label_type ⇒ String
Output only.
-
#name ⇒ String
The resource name of the 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.
122 123 124 |
# File 'lib/google/apis/css_v1/classes.rb', line 122 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
Output only. The ID of account this label belongs to.
Corresponds to the JSON property accountId
95 96 97 |
# File 'lib/google/apis/css_v1/classes.rb', line 95 def account_id @account_id end |
#description ⇒ String
The description of this label.
Corresponds to the JSON property description
100 101 102 |
# File 'lib/google/apis/css_v1/classes.rb', line 100 def description @description end |
#display_name ⇒ String
The display name of this label.
Corresponds to the JSON property displayName
105 106 107 |
# File 'lib/google/apis/css_v1/classes.rb', line 105 def display_name @display_name end |
#label_id ⇒ Fixnum
Output only. The ID of the label.
Corresponds to the JSON property labelId
110 111 112 |
# File 'lib/google/apis/css_v1/classes.rb', line 110 def label_id @label_id end |
#label_type ⇒ String
Output only. The type of this label.
Corresponds to the JSON property labelType
115 116 117 |
# File 'lib/google/apis/css_v1/classes.rb', line 115 def label_type @label_type end |
#name ⇒ String
The resource name of the label. Format: accounts/account
/labels/label
Corresponds to the JSON property name
120 121 122 |
# File 'lib/google/apis/css_v1/classes.rb', line 120 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
127 128 129 130 131 132 133 134 |
# File 'lib/google/apis/css_v1/classes.rb', line 127 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @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 |