Class: Google::Apis::StoragebatchoperationsV1::CustomContextUpdates

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

Overview

Describes a collection of updates to apply to custom contexts identified by key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomContextUpdates

Returns a new instance of CustomContextUpdates.



356
357
358
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 356

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

Instance Attribute Details

#keys_to_clearArray<String>

Optional. Custom contexts to clear by key. A key can't be present in both updates and keys_to_clear. Corresponds to the JSON property keysToClear

Returns:

  • (Array<String>)


349
350
351
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 349

def keys_to_clear
  @keys_to_clear
end

#updatesHash<String,Google::Apis::StoragebatchoperationsV1::ObjectCustomContextPayload>

Optional. Insert or update the existing custom contexts. Corresponds to the JSON property updates



354
355
356
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 354

def updates
  @updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



361
362
363
364
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 361

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