Class: Google::Apis::DeploymentmanagerAlpha::InputMapping

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

InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API.

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

Returns a new instance of InputMapping



1008
1009
1010
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1008

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

Instance Attribute Details

#field_nameString

The name of the field that is going to be injected. Corresponds to the JSON property fieldName

Returns:

  • (String)


991
992
993
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 991

def field_name
  @field_name
end

#locationString

The location where this mapping applies. Corresponds to the JSON property location

Returns:

  • (String)


996
997
998
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 996

def location
  @location
end

#method_matchString

Regex to evaluate on method to decide if input applies. Corresponds to the JSON property methodMatch

Returns:

  • (String)


1001
1002
1003
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1001

def method_match
  @method_match
end

#valueString

A jsonPath expression to select an element. Corresponds to the JSON property value

Returns:

  • (String)


1006
1007
1008
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1006

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1013
1014
1015
1016
1017
1018
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1013

def update!(**args)
  @field_name = args[:field_name] if args.key?(:field_name)
  @location = args[:location] if args.key?(:location)
  @method_match = args[:method_match] if args.key?(:method_match)
  @value = args[:value] if args.key?(:value)
end