We are adding a new tab under Project Details for listing private locations. We keep it behind a feature flag. The create view simply gets the AWS region, ubicloud region name, access and secret keys. We list the locations and give chance to customer to be able to update the name.
14 lines
308 B
Ruby
14 lines
308 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Serializers::PrivateLocation < Serializers::Base
|
|
def self.serialize_internal(location, options = {})
|
|
{
|
|
id: location.ubid,
|
|
name: location.name,
|
|
ui_name: location.ui_name,
|
|
provider: location.provider,
|
|
path: location.path
|
|
}
|
|
end
|
|
end
|