provider/terraform.rb
# Returns the nested properties. An empty list is returned if the property
# is not a NestedObject or an Array of NestedObjects.
Returns the nested properties. An empty list is returned if the property
is not a NestedObject or an Array of NestedObjects.
Returns the nested properties . An empty list is returned if the property is not a NestedObject or an Array of NestedObjects .
def nested_properties(property)
      if property.is_a?(Api::Type::NestedObject)
        property.properties
      elsif property.is_a?(Api::Type::Array) &&
            property.item_type.is_a?(Api::Type::NestedObject)
        property.item_type.properties
      elsif property.is_a?(Api::Type::Map)
        property.value_type.properties
      else
        []
      end
    end
def nested_properties ( property ) if property . is_a? ( Api :: Type :: NestedObject ) property . properties elsif property . is_a? ( Api :: Type :: Array ) && property . item_type . is_a? ( Api :: Type :: NestedObject ) property . item_type . properties elsif property . is_a? ( Api :: Type :: Map ) property . value_type . properties else [ ] end end
Returns the nested properties.
Returns the nested properties .
property
<not_specific>