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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/deploymentmanager_alpha/classes.rb,
lib/google/apis/deploymentmanager_alpha/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ InputMapping

Returns a new instance of InputMapping.



1199
1200
1201
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1199

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)


1182
1183
1184
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1182

def field_name
  @field_name
end

#locationString

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

Returns:

  • (String)


1187
1188
1189
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1187

def location
  @location
end

#method_matchString

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

Returns:

  • (String)


1192
1193
1194
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1192

def method_match
  @method_match
end

#valueString

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

Returns:

  • (String)


1197
1198
1199
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1197

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1204
1205
1206
1207
1208
1209
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1204

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