Beispiel #1
0
func (command *commandUpdateMetadata) PreCSV(resource *handler.Resource) {
	resource.Result = map[string]interface{}{
		"Metadata": resource.Result,
	}
	resource.Keys = []string{"Metadata"}
	resource.FlattenMap("Metadata")
}
Beispiel #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
}
Beispiel #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
}
Beispiel #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
}
Beispiel #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
}
Beispiel #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
}
Beispiel #7
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Metadata")
	resource.FlattenMap("Attachments")
	return nil
}
Beispiel #8
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("AllocationPools")
}
Beispiel #9
0
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Metadata")
	return nil
}
Beispiel #10
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("ExtraSpecs")
}
Beispiel #11
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("AllocationPools")
	return nil
}
Beispiel #12
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("FixedIPs")
}
Beispiel #13
0
func (command *commandUpdate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("FixedIPs")
	return nil
}
Beispiel #14
0
func (command *commandValidate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Parameters")
	resource.FlattenMap("ParameterGroups")
	return nil
}
Beispiel #15
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.Result = stackSingle(resource.Result)
	resource.FlattenMap("Links")
	return nil
}
Beispiel #16
0
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("Metadata")
}
Beispiel #17
0
func (command *commandAdopt) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Links")
	return nil
}
Beispiel #18
0
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.Result = eventSingle(resource.Result)
	resource.FlattenMap("Links")
	resource.FlattenMap("ResourceProperties")
	return nil
}