Class: Google::Apis::CssV1::UpdateAccountLabelsRequest

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

The request message for the UpdateLabels method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateAccountLabelsRequest

Returns a new instance of UpdateAccountLabelsRequest.



1128
1129
1130
# File 'lib/google/apis/css_v1/classes.rb', line 1128

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

Instance Attribute Details

#label_idsArray<Fixnum>

The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted. Corresponds to the JSON property labelIds

Returns:

  • (Array<Fixnum>)


1120
1121
1122
# File 'lib/google/apis/css_v1/classes.rb', line 1120

def label_ids
  @label_ids
end

#parentString

Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/account Corresponds to the JSON property parent

Returns:

  • (String)


1126
1127
1128
# File 'lib/google/apis/css_v1/classes.rb', line 1126

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1133
1134
1135
1136
# File 'lib/google/apis/css_v1/classes.rb', line 1133

def update!(**args)
  @label_ids = args[:label_ids] if args.key?(:label_ids)
  @parent = args[:parent] if args.key?(:parent)
end