MCPcopy Create free account
hub / github.com/algolia/cli / toApplication

Method toApplication

api/dashboard/types.go:172–179  ·  view source on GitHub ↗

toApplication flattens a JSON:API resource into a simple Application.

()

Source from the content-addressed store, hash-verified

170
171// toApplication flattens a JSON:API resource into a simple Application.
172func (r *ApplicationResource) toApplication() Application {
173 return Application{
174 ID: r.Attributes.ApplicationID,
175 Name: r.Attributes.Name,
176 APIKey: r.Attributes.APIKey,
177 PlanLabel: r.Attributes.Plan.Label,
178 }
179}
180
181// PlanTypeFree is the attributes.type value that identifies the free-tier plan
182// template. The free plan's configuration.plan id is not fixed (it can be

Callers 5

ListApplicationsMethod · 0.80
GetApplicationMethod · 0.80
CreateApplicationMethod · 0.80
UpdateApplicationMethod · 0.80
ChangeApplicationPlanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected