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.



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

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>)


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

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)


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

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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