Esempio n. 1
0
func (command *commandUpdateMetadata) PreCSV(resource *handler.Resource) {
	resource.Result = map[string]interface{}{
		"Metadata": resource.Result,
	}
	resource.Keys = []string{"Metadata"}
	resource.FlattenMap("Metadata")
}
Esempio n. 2
0
func (command *commandGetSchema) PreCSV(resource *handler.Resource) error {
	resource.Result = structs.Map(resource.Result)
	resource.FlattenMap("Attributes")
	resource.FlattenMap("Properties")
	resource.FlattenMap("SupportStatus")
	return nil
}
Esempio n. 3
0
func (command *commandSetMetadata) PreCSV(resource *handler.Resource) error {
	resource.Result = map[string]interface{}{
		"Metadata": resource.Result,
	}
	resource.Keys = []string{"Metadata"}
	resource.FlattenMap("Metadata")
	return nil
}
Esempio n. 4
0
func (command *commandUpdate) PreCSV(resource *handler.Resource) error {
	resource.Result = stackSingle(resource.Result)
	resource.FlattenMap("Parameters")
	resource.FlattenMap("Outputs")
	resource.FlattenMap("Links")
	resource.FlattenMap("NotificationTopics")
	resource.FlattenMap("Capabilities")
	return nil
}
Esempio n. 5
0
func (command *commandAbandon) PreCSV(resource *handler.Resource) error {
	resource.Result = structs.Map(resource.Result)
	resource.FlattenMap("Template")
	resource.FlattenMap("Files")
	resource.FlattenMap("Environment")
	resource.FlattenMap("Resources")
	return nil
}
Esempio n. 6
0
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.Result = resourceSingle(resource.Result)
	resource.FlattenMap("Attributes")
	resource.FlattenMap("Links")
	resource.FlattenMap("RequiredBy")
	return nil
}
Esempio n. 7
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Metadata")
	resource.FlattenMap("Attachments")
	return nil
}
Esempio n. 8
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("AllocationPools")
}
Esempio n. 9
0
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Metadata")
	return nil
}
Esempio n. 10
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("ExtraSpecs")
}
Esempio n. 11
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("AllocationPools")
	return nil
}
Esempio n. 12
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("FixedIPs")
}
Esempio n. 13
0
func (command *commandUpdate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("FixedIPs")
	return nil
}
Esempio n. 14
0
func (command *commandValidate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Parameters")
	resource.FlattenMap("ParameterGroups")
	return nil
}
Esempio n. 15
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.Result = stackSingle(resource.Result)
	resource.FlattenMap("Links")
	return nil
}
Esempio n. 16
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("Metadata")
}
Esempio n. 17
0
func (command *commandAdopt) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Links")
	return nil
}
Esempio n. 18
0
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.Result = eventSingle(resource.Result)
	resource.FlattenMap("Links")
	resource.FlattenMap("ResourceProperties")
	return nil
}