Class: Google::Apis::DeploymentmanagerAlpha::CollectionOverride

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

Overview

CollectionOverride allows resource handling overrides for specific resources within a BaseType

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CollectionOverride

Returns a new instance of CollectionOverride.


281
282
283
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 281

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

Instance Attribute Details

#collectionString

The collection that identifies this resource within its service. Corresponds to the JSON property collection

Returns:

  • (String)

268
269
270
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 268

def collection
  @collection
end

#method_mapGoogle::Apis::DeploymentmanagerAlpha::MethodMap

Deployment Manager will call these methods during the events of creation/ deletion/update/get/setIamPolicy Corresponds to the JSON property methodMap


274
275
276
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 274

def method_map
  @method_map
end

#optionsGoogle::Apis::DeploymentmanagerAlpha::Options

Options allows customized resource handling by Deployment Manager. Corresponds to the JSON property options


279
280
281
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 279

def options
  @options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


286
287
288
289
290
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 286

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