Class: Google::Apis::DeploymentmanagerAlpha::InputMapping
- Inherits:
-
Object
- Object
- Google::Apis::DeploymentmanagerAlpha::InputMapping
- 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
-
#field_name ⇒ String
The name of the field that is going to be injected.
-
#location ⇒ String
The location where this mapping applies.
-
#method_match ⇒ String
Regex to evaluate on method to decide if input applies.
-
#value ⇒ String
A jsonPath expression to select an element.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InputMapping
constructor
A new instance of InputMapping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InputMapping
Returns a new instance of InputMapping.
1069 1070 1071 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1069 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_name ⇒ String
The name of the field that is going to be injected.
Corresponds to the JSON property fieldName
1052 1053 1054 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1052 def field_name @field_name end |
#location ⇒ String
The location where this mapping applies.
Corresponds to the JSON property location
1057 1058 1059 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1057 def location @location end |
#method_match ⇒ String
Regex to evaluate on method to decide if input applies.
Corresponds to the JSON property methodMatch
1062 1063 1064 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1062 def method_match @method_match end |
#value ⇒ String
A jsonPath expression to select an element.
Corresponds to the JSON property value
1067 1068 1069 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1067 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1074 1075 1076 1077 1078 1079 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 1074 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 |