Class: Google::Apis::ManagerV1beta2::ParamOverride

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

Overview

A specification for overriding parameters in a Template that corresponds to the Deployment.

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

Returns a new instance of ParamOverride.



960
961
962
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 960

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

Instance Attribute Details

#pathString

A JSON Path expression that specifies which parameter should be overridden. Corresponds to the JSON property path

Returns:

  • (String)


953
954
955
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 953

def path
  @path
end

#valueString

The new value to assign to the overridden parameter. Corresponds to the JSON property value

Returns:

  • (String)


958
959
960
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 958

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



965
966
967
968
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 965

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