Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
Attributes are the attributes of the composite tree.
type InsertValue ¶
type InsertValue struct { ReferenceID string `json:"referenceId"` ID string `json:"id"` Errors []sfdc.Error `json:"errors"` }
InsertValue is the return value for each record.
type Record ¶
type Record struct { Attributes Attributes Fields map[string]interface{} Records map[string][]*Record }
Record is the composite tree SObject.
func (*Record) MarshalJSON ¶
MarshalJSON will create the JSON byte array.
type RecordBuilder ¶
type RecordBuilder struct {
// contains filtered or unexported fields
}
RecordBuilder is record builder for the composite SObject Tree API.
func NewRecordBuilder ¶
func NewRecordBuilder(builder Builder) (*RecordBuilder, error)
NewRecordBuilder will create a new builder. If the SObject is not value or the reference ID is empyt, an error will be returned.
func (*RecordBuilder) Build ¶
func (rb *RecordBuilder) Build() *Record
Build will create the composite tree record.
func (*RecordBuilder) SubRecords ¶
func (rb *RecordBuilder) SubRecords(sobjects string, records ...*Record)
SubRecords will add subrecords to the object.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource is the composite tree API resource.
func NewResource ¶
func NewResource(session session.ServiceFormatter) (*Resource, error)
NewResource creates a new composite tree resource from the session.
type Value ¶
type Value struct { HasErrors bool `json:"hasErrors"` Results []InsertValue `json:"results"` }
Value is the return value from the API call.