-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes_bulk.go
66 lines (60 loc) · 2.55 KB
/
types_bulk.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package sfdc
type BulkJob struct {
Object string `json:"object"`
ContentType string `json:"contentType"`
Operation string `json:"operation"`
LineEnding string `json:"lineEnding"`
ExternalIDFieldName string `json:"externalIdFieldName,omitempty"`
}
type BulkJobComplete struct {
State string `json:"state"`
}
var BulkJobCompleteData = BulkJobComplete{State: "UploadComplete"}
type BulkJobResponse struct {
ID string `json:"id"`
Operation string `json:"operation"`
Object string `json:"object"`
CreatedByID string `json:"createdById"`
CreatedDate string `json:"createdDate"`
SystemModstamp string `json:"systemModstamp"`
State string `json:"state"`
ConcurrencyMode string `json:"concurrencyMode"`
ContentType string `json:"contentType"`
APIVersion float64 `json:"apiVersion"`
ContentURL string `json:"contentUrl"`
LineEnding string `json:"lineEnding"`
ColumnDelimiter string `json:"columnDelimiter"`
}
type BulkJobCompleteResponse struct {
ID string `json:"id"`
Operation string `json:"operation"`
Object string `json:"object"`
CreatedByID string `json:"createdById"`
CreatedDate string `json:"createdDate"`
SystemModstamp string `json:"systemModstamp"`
State string `json:"state"`
ConcurrencyMode string `json:"concurrencyMode"`
ContentType string `json:"contentType"`
APIVersion float64 `json:"apiVersion"`
}
type BulkJobStatus struct {
ID string `json:"id"`
Operation string `json:"operation"`
Object string `json:"object"`
CreatedByID string `json:"createdById"`
CreatedDate string `json:"createdDate"`
SystemModstamp string `json:"systemModstamp"`
State string `json:"state"`
ConcurrencyMode string `json:"concurrencyMode"`
ContentType string `json:"contentType"`
APIVersion float64 `json:"apiVersion"`
JobType string `json:"jobType"`
LineEnding string `json:"lineEnding"`
ColumnDelimiter string `json:"columnDelimiter"`
NumberRecordsProcessed int `json:"numberRecordsProcessed"`
NumberRecordsFailed int `json:"numberRecordsFailed"`
Retries int `json:"retries"`
TotalProcessingTime int `json:"totalProcessingTime"`
APIActiveProcessingTime int `json:"apiActiveProcessingTime"`
ApexProcessingTime int `json:"apexProcessingTime"`
}