Class: Google::Apis::DeploymentmanagerV2beta::InputMapping

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



941
942
943
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 941

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)


924
925
926
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 924

def field_name
  @field_name
end

#locationString

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

Returns:

  • (String)


929
930
931
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 929

def location
  @location
end

#method_matchString

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

Returns:

  • (String)


934
935
936
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 934

def method_match
  @method_match
end

#valueString

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

Returns:

  • (String)


939
940
941
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 939

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



946
947
948
949
950
951
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 946

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