Class: Google::Apis::NotebooksV1::SetInstanceLabelsRequest

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

Overview

Request for setting instance labels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SetInstanceLabelsRequest

Returns a new instance of SetInstanceLabelsRequest.



2653
2654
2655
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2653

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

Instance Attribute Details

#labelsHash<String,String>

Labels to apply to this instance. These can be later modified by the setLabels method Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2651
2652
2653
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2651

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2658
2659
2660
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2658

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