restforce-db 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/lib/restforce/db/associations/base.rb +7 -7
  4. data/lib/restforce/db/associations/belongs_to.rb +6 -10
  5. data/lib/restforce/db/associations/foreign_key.rb +1 -2
  6. data/lib/restforce/db/associations/has_many.rb +2 -1
  7. data/lib/restforce/db/associations/has_one.rb +2 -1
  8. data/lib/restforce/db/cleaner.rb +25 -3
  9. data/lib/restforce/db/configuration.rb +7 -0
  10. data/lib/restforce/db/record_types/active_record.rb +5 -1
  11. data/lib/restforce/db/version.rb +1 -1
  12. data/lib/restforce/db.rb +1 -0
  13. data/test/cassettes/Restforce_DB/accessing_Salesforce/uses_the_configured_credentials.yml +1 -1
  14. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
  15. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
  16. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +17 -17
  17. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
  18. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
  19. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +17 -17
  20. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +11 -11
  21. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml +119 -0
  22. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml +6 -6
  23. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
  24. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
  25. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +29 -29
  26. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
  27. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_alrady_been_persisted/constructs_the_association_from_the_existing_records.yml +29 -29
  28. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +29 -29
  29. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +9 -9
  30. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +29 -29
  31. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +11 -11
  32. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/and_a_nested_association_on_the_associated_mapping/recursively_builds_all_associations.yml +25 -25
  33. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
  34. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
  35. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +17 -17
  36. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
  37. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
  38. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
  39. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
  40. data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml +30 -30
  41. data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml +33 -33
  42. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml +6 -6
  43. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml +238 -0
  44. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/{for_a_non-Passive_strategy/drops_the_synchronized_database_record.yml → drops_the_synchronized_database_record.yml} +11 -11
  45. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml +12 -12
  46. data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +12 -12
  47. data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +12 -12
  48. data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +3 -3
  49. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +6 -6
  50. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +10 -10
  51. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +17 -17
  52. data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +9 -9
  53. data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +9 -9
  54. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +14 -14
  55. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +17 -17
  56. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +9 -9
  57. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +12 -12
  58. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +12 -12
  59. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +9 -9
  60. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_does_not_meet_the_conditions/does_not_find_the_record.yml +8 -8
  61. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +9 -9
  62. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +3 -3
  63. data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +9 -9
  64. data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/with_a_corresponding_database_record/does_not_want_to_build_a_new_record.yml +9 -9
  65. data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +17 -17
  66. data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_an_existing_database_record/does_not_want_to_build_a_new_record.yml +14 -14
  67. data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_no_synchronized_association_record/does_not_want_to_build_a_new_record.yml +17 -17
  68. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +14 -14
  69. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +17 -17
  70. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +12 -12
  71. data/test/lib/restforce/db/associations/belongs_to_test.rb +17 -0
  72. data/test/lib/restforce/db/cleaner_test.rb +20 -4
  73. data/test/support/active_record.rb +3 -0
  74. data/test/support/vcr.rb +8 -0
  75. metadata +5 -3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652877981","token_type":"Bearer","instance_url":"https://<host>","signature":"ihKlEx9EBOiOV8CEtkA0CyhVL84Jph0O4wgSR/kBtNk=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Fri, 15 May 2015 01:21:17 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/Contact
45
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Email":"somebody@example.com","LastName":"Somebody"}'
@@ -72,7 +72,7 @@ http_interactions:
72
72
  Sforce-Limit-Info:
73
73
  - api-usage=710/15000
74
74
  Location:
75
- - "/services/data/v26.0/sobjects/Contact/0031a000003QISaAAO"
75
+ - "/services/data/<api_version>/sobjects/Contact/0031a000003QISaAAO"
76
76
  Content-Type:
77
77
  - application/json;charset=UTF-8
78
78
  Transfer-Encoding:
@@ -80,11 +80,11 @@ http_interactions:
80
80
  body:
81
81
  encoding: ASCII-8BIT
82
82
  string: '{"id":"0031a000003QISaAAO","success":true,"errors":[]}'
83
- http_version:
83
+ http_version:
84
84
  recorded_at: Fri, 15 May 2015 01:21:19 GMT
85
85
  - request:
86
86
  method: post
87
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
87
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
88
88
  body:
89
89
  encoding: UTF-8
90
90
  string: '{"Friend__c":"0031a000003QISaAAO"}'
@@ -114,7 +114,7 @@ http_interactions:
114
114
  Sforce-Limit-Info:
115
115
  - api-usage=709/15000
116
116
  Location:
117
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"
117
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEKAA0"
118
118
  Content-Type:
119
119
  - application/json;charset=UTF-8
120
120
  Transfer-Encoding:
@@ -122,11 +122,11 @@ http_interactions:
122
122
  body:
123
123
  encoding: ASCII-8BIT
124
124
  string: '{"id":"a001a000001ZoEKAA0","success":true,"errors":[]}'
125
- http_version:
125
+ http_version:
126
126
  recorded_at: Fri, 15 May 2015 01:21:20 GMT
127
127
  - request:
128
128
  method: post
129
- uri: https://<host>/services/data/v26.0/sobjects/Contact
129
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact
130
130
  body:
131
131
  encoding: UTF-8
132
132
  string: '{"Email":"somebody+else@example.com","LastName":"Somebody"}'
@@ -156,7 +156,7 @@ http_interactions:
156
156
  Sforce-Limit-Info:
157
157
  - api-usage=710/15000
158
158
  Location:
159
- - "/services/data/v26.0/sobjects/Contact/0031a000003QISfAAO"
159
+ - "/services/data/<api_version>/sobjects/Contact/0031a000003QISfAAO"
160
160
  Content-Type:
161
161
  - application/json;charset=UTF-8
162
162
  Transfer-Encoding:
@@ -164,11 +164,11 @@ http_interactions:
164
164
  body:
165
165
  encoding: ASCII-8BIT
166
166
  string: '{"id":"0031a000003QISfAAO","success":true,"errors":[]}'
167
- http_version:
167
+ http_version:
168
168
  recorded_at: Fri, 15 May 2015 01:21:21 GMT
169
169
  - request:
170
170
  method: get
171
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
171
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
172
172
  body:
173
173
  encoding: US-ASCII
174
174
  string: ''
@@ -201,12 +201,12 @@ http_interactions:
201
201
  - chunked
202
202
  body:
203
203
  encoding: ASCII-8BIT
204
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:20.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISaAAO"}]}'
205
- http_version:
204
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:20.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISaAAO"}]}'
205
+ http_version:
206
206
  recorded_at: Fri, 15 May 2015 01:21:22 GMT
207
207
  - request:
208
208
  method: get
209
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/describe
209
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
210
210
  body:
211
211
  encoding: US-ASCII
212
212
  string: ''
@@ -254,12 +254,12 @@ http_interactions:
254
254
  Modified Date","length":0,"name":"LastModifiedDate","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Last
255
255
  Modified By ID","length":18,"name":"LastModifiedById","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":["User"],"relationshipName":"LastModifiedBy","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":false,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"System
256
256
  Modstamp","length":0,"name":"SystemModstamp","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":765,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Example
257
- Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA"}],"replicateable":true,"retrieveable":true,"searchLayoutable":null,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/v26.0/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/v26.0/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/v26.0/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
258
- http_version:
257
+ Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA"}],"replicateable":true,"retrieveable":true,"searchLayoutable":null,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/<api_version>/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
258
+ http_version:
259
259
  recorded_at: Fri, 15 May 2015 01:21:23 GMT
260
260
  - request:
261
261
  method: patch
262
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0
262
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEKAA0
263
263
  body:
264
264
  encoding: UTF-8
265
265
  string: '{"Friend__c":"0031a000003QISfAAO"}'
@@ -291,11 +291,11 @@ http_interactions:
291
291
  body:
292
292
  encoding: UTF-8
293
293
  string: ''
294
- http_version:
294
+ http_version:
295
295
  recorded_at: Fri, 15 May 2015 01:21:24 GMT
296
296
  - request:
297
297
  method: get
298
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEKAA0%27
298
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEKAA0%27
299
299
  body:
300
300
  encoding: US-ASCII
301
301
  string: ''
@@ -328,12 +328,12 @@ http_interactions:
328
328
  - chunked
329
329
  body:
330
330
  encoding: ASCII-8BIT
331
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:24.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISfAAO"}]}'
332
- http_version:
331
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:24.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISfAAO"}]}'
332
+ http_version:
333
333
  recorded_at: Fri, 15 May 2015 01:21:25 GMT
334
334
  - request:
335
335
  method: get
336
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEKAA0%27
336
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEKAA0%27
337
337
  body:
338
338
  encoding: US-ASCII
339
339
  string: ''
@@ -366,12 +366,12 @@ http_interactions:
366
366
  - chunked
367
367
  body:
368
368
  encoding: ASCII-8BIT
369
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:24.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISfAAO"}]}'
370
- http_version:
369
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEKAA0"},"Id":"a001a000001ZoEKAA0","SystemModstamp":"2015-05-15T01:21:24.000+0000","Name":"a001a000001ZoEK","Example_Field__c":null,"Friend__c":"0031a000003QISfAAO"}]}'
370
+ http_version:
371
371
  recorded_at: Fri, 15 May 2015 01:21:26 GMT
372
372
  - request:
373
373
  method: delete
374
- uri: https://<host>/services/data/v26.0/sobjects/Contact/0031a000003QISaAAO
374
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000003QISaAAO
375
375
  body:
376
376
  encoding: US-ASCII
377
377
  string: ''
@@ -401,11 +401,11 @@ http_interactions:
401
401
  body:
402
402
  encoding: UTF-8
403
403
  string: ''
404
- http_version:
404
+ http_version:
405
405
  recorded_at: Fri, 15 May 2015 01:21:27 GMT
406
406
  - request:
407
407
  method: delete
408
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEKAA0
408
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEKAA0
409
409
  body:
410
410
  encoding: US-ASCII
411
411
  string: ''
@@ -435,11 +435,11 @@ http_interactions:
435
435
  body:
436
436
  encoding: UTF-8
437
437
  string: ''
438
- http_version:
438
+ http_version:
439
439
  recorded_at: Fri, 15 May 2015 01:21:28 GMT
440
440
  - request:
441
441
  method: delete
442
- uri: https://<host>/services/data/v26.0/sobjects/Contact/0031a000003QISfAAO
442
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000003QISfAAO
443
443
  body:
444
444
  encoding: US-ASCII
445
445
  string: ''
@@ -469,6 +469,6 @@ http_interactions:
469
469
  body:
470
470
  encoding: UTF-8
471
471
  string: ''
472
- http_version:
472
+ http_version:
473
473
  recorded_at: Fri, 15 May 2015 01:21:29 GMT
474
474
  recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652895803","token_type":"Bearer","instance_url":"https://<host>","signature":"yr5PJJM+uMppHWQ3IDul6FOK9ofJZTvM750pL/4ajSc=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Fri, 15 May 2015 01:21:35 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/Contact
45
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Email":"somebody@example.com","LastName":"Somebody"}'
@@ -72,7 +72,7 @@ http_interactions:
72
72
  Sforce-Limit-Info:
73
73
  - api-usage=718/15000
74
74
  Location:
75
- - "/services/data/v26.0/sobjects/Contact/0031a000003QISkAAO"
75
+ - "/services/data/<api_version>/sobjects/Contact/0031a000003QISkAAO"
76
76
  Content-Type:
77
77
  - application/json;charset=UTF-8
78
78
  Transfer-Encoding:
@@ -80,11 +80,11 @@ http_interactions:
80
80
  body:
81
81
  encoding: ASCII-8BIT
82
82
  string: '{"id":"0031a000003QISkAAO","success":true,"errors":[]}'
83
- http_version:
83
+ http_version:
84
84
  recorded_at: Fri, 15 May 2015 01:21:36 GMT
85
85
  - request:
86
86
  method: post
87
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
87
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
88
88
  body:
89
89
  encoding: UTF-8
90
90
  string: '{"Friend__c":"0031a000003QISkAAO"}'
@@ -114,7 +114,7 @@ http_interactions:
114
114
  Sforce-Limit-Info:
115
115
  - api-usage=719/15000
116
116
  Location:
117
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEUAA0"
117
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEUAA0"
118
118
  Content-Type:
119
119
  - application/json;charset=UTF-8
120
120
  Transfer-Encoding:
@@ -122,11 +122,11 @@ http_interactions:
122
122
  body:
123
123
  encoding: ASCII-8BIT
124
124
  string: '{"id":"a001a000001ZoEUAA0","success":true,"errors":[]}'
125
- http_version:
125
+ http_version:
126
126
  recorded_at: Fri, 15 May 2015 01:21:37 GMT
127
127
  - request:
128
128
  method: post
129
- uri: https://<host>/services/data/v26.0/sobjects/Contact
129
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact
130
130
  body:
131
131
  encoding: UTF-8
132
132
  string: '{"Email":"somebody+else@example.com","LastName":"Somebody"}'
@@ -156,7 +156,7 @@ http_interactions:
156
156
  Sforce-Limit-Info:
157
157
  - api-usage=722/15000
158
158
  Location:
159
- - "/services/data/v26.0/sobjects/Contact/0031a000003QISpAAO"
159
+ - "/services/data/<api_version>/sobjects/Contact/0031a000003QISpAAO"
160
160
  Content-Type:
161
161
  - application/json;charset=UTF-8
162
162
  Transfer-Encoding:
@@ -164,11 +164,11 @@ http_interactions:
164
164
  body:
165
165
  encoding: ASCII-8BIT
166
166
  string: '{"id":"0031a000003QISpAAO","success":true,"errors":[]}'
167
- http_version:
167
+ http_version:
168
168
  recorded_at: Fri, 15 May 2015 01:21:38 GMT
169
169
  - request:
170
170
  method: get
171
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEUAA0%27
171
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEUAA0%27
172
172
  body:
173
173
  encoding: US-ASCII
174
174
  string: ''
@@ -201,12 +201,12 @@ http_interactions:
201
201
  - chunked
202
202
  body:
203
203
  encoding: ASCII-8BIT
204
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEUAA0"},"Id":"a001a000001ZoEUAA0","SystemModstamp":"2015-05-15T01:21:37.000+0000","Name":"a001a000001ZoEU","Example_Field__c":null,"Friend__c":"0031a000003QISkAAO"}]}'
205
- http_version:
204
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEUAA0"},"Id":"a001a000001ZoEUAA0","SystemModstamp":"2015-05-15T01:21:37.000+0000","Name":"a001a000001ZoEU","Example_Field__c":null,"Friend__c":"0031a000003QISkAAO"}]}'
205
+ http_version:
206
206
  recorded_at: Fri, 15 May 2015 01:21:40 GMT
207
207
  - request:
208
208
  method: get
209
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/describe
209
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
210
210
  body:
211
211
  encoding: US-ASCII
212
212
  string: ''
@@ -254,12 +254,12 @@ http_interactions:
254
254
  Modified Date","length":0,"name":"LastModifiedDate","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Last
255
255
  Modified By ID","length":18,"name":"LastModifiedById","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":["User"],"relationshipName":"LastModifiedBy","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":false,"custom":false,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":false,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"System
256
256
  Modstamp","length":0,"name":"SystemModstamp","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":765,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Example
257
- Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA"}],"replicateable":true,"retrieveable":true,"searchLayoutable":null,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/v26.0/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/v26.0/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/v26.0/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
258
- http_version:
257
+ Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA"}],"replicateable":true,"retrieveable":true,"searchLayoutable":null,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/<api_version>/sobjects/CustomObject__c","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","uiNewRecord":"https://<host>/a00/e"}}'
258
+ http_version:
259
259
  recorded_at: Fri, 15 May 2015 01:21:41 GMT
260
260
  - request:
261
261
  method: patch
262
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEUAA0
262
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEUAA0
263
263
  body:
264
264
  encoding: UTF-8
265
265
  string: '{"Friend__c":"0031a000003QISpAAO"}'
@@ -291,11 +291,11 @@ http_interactions:
291
291
  body:
292
292
  encoding: UTF-8
293
293
  string: ''
294
- http_version:
294
+ http_version:
295
295
  recorded_at: Fri, 15 May 2015 01:21:42 GMT
296
296
  - request:
297
297
  method: get
298
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
298
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
299
299
  body:
300
300
  encoding: US-ASCII
301
301
  string: ''
@@ -328,12 +328,12 @@ http_interactions:
328
328
  - chunked
329
329
  body:
330
330
  encoding: ASCII-8BIT
331
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEUAA0"},"Id":"a001a000001ZoEUAA0","SystemModstamp":"2015-05-15T01:21:41.000+0000","Name":"a001a000001ZoEU","Example_Field__c":null,"Friend__c":"0031a000003QISpAAO"}]}'
332
- http_version:
331
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEUAA0"},"Id":"a001a000001ZoEUAA0","SystemModstamp":"2015-05-15T01:21:41.000+0000","Name":"a001a000001ZoEU","Example_Field__c":null,"Friend__c":"0031a000003QISpAAO"}]}'
332
+ http_version:
333
333
  recorded_at: Fri, 15 May 2015 01:21:43 GMT
334
334
  - request:
335
335
  method: get
336
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000003QISpAAO%27
336
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000003QISpAAO%27
337
337
  body:
338
338
  encoding: US-ASCII
339
339
  string: ''
@@ -366,12 +366,12 @@ http_interactions:
366
366
  - chunked
367
367
  body:
368
368
  encoding: ASCII-8BIT
369
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v26.0/sobjects/Contact/0031a000003QISpAAO"},"Id":"0031a000003QISpAAO","SystemModstamp":"2015-05-15T01:21:38.000+0000","Email":"somebody+else@example.com"}]}'
370
- http_version:
369
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000003QISpAAO"},"Id":"0031a000003QISpAAO","SystemModstamp":"2015-05-15T01:21:38.000+0000","Email":"somebody+else@example.com"}]}'
370
+ http_version:
371
371
  recorded_at: Fri, 15 May 2015 01:21:44 GMT
372
372
  - request:
373
373
  method: get
374
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEUAA0%27
374
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001ZoEUAA0%27
375
375
  body:
376
376
  encoding: US-ASCII
377
377
  string: ''
@@ -404,12 +404,12 @@ http_interactions:
404
404
  - chunked
405
405
  body:
406
406
  encoding: ASCII-8BIT
407
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEUAA0"},"Id":"a001a000001ZoEUAA0","SystemModstamp":"2015-05-15T01:21:41.000+0000","Name":"a001a000001ZoEU","Example_Field__c":null,"Friend__c":"0031a000003QISpAAO"}]}'
408
- http_version:
407
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEUAA0"},"Id":"a001a000001ZoEUAA0","SystemModstamp":"2015-05-15T01:21:41.000+0000","Name":"a001a000001ZoEU","Example_Field__c":null,"Friend__c":"0031a000003QISpAAO"}]}'
408
+ http_version:
409
409
  recorded_at: Fri, 15 May 2015 01:21:45 GMT
410
410
  - request:
411
411
  method: delete
412
- uri: https://<host>/services/data/v26.0/sobjects/Contact/0031a000003QISkAAO
412
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000003QISkAAO
413
413
  body:
414
414
  encoding: US-ASCII
415
415
  string: ''
@@ -439,11 +439,11 @@ http_interactions:
439
439
  body:
440
440
  encoding: UTF-8
441
441
  string: ''
442
- http_version:
442
+ http_version:
443
443
  recorded_at: Fri, 15 May 2015 01:21:46 GMT
444
444
  - request:
445
445
  method: delete
446
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEUAA0
446
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEUAA0
447
447
  body:
448
448
  encoding: US-ASCII
449
449
  string: ''
@@ -473,11 +473,11 @@ http_interactions:
473
473
  body:
474
474
  encoding: UTF-8
475
475
  string: ''
476
- http_version:
476
+ http_version:
477
477
  recorded_at: Fri, 15 May 2015 01:21:47 GMT
478
478
  - request:
479
479
  method: delete
480
- uri: https://<host>/services/data/v26.0/sobjects/Contact/0031a000003QISpAAO
480
+ uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000003QISpAAO
481
481
  body:
482
482
  encoding: US-ASCII
483
483
  string: ''
@@ -507,6 +507,6 @@ http_interactions:
507
507
  body:
508
508
  encoding: UTF-8
509
509
  string: ''
510
- http_version:
510
+ http_version:
511
511
  recorded_at: Fri, 15 May 2015 01:21:48 GMT
512
512
  recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652737381","token_type":"Bearer","instance_url":"https://<host>","signature":"eDi+FfWSG5svT9zP9racSdUlz4GQ3ZX37gNEFN5JYyk=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Fri, 15 May 2015 01:18:57 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
45
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Name":"Are you going to Scarborough Fair?","Example_Field__c":"Parsley,
@@ -73,7 +73,7 @@ http_interactions:
73
73
  Sforce-Limit-Info:
74
74
  - api-usage=624/15000
75
75
  Location:
76
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoCiAAK"
76
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoCiAAK"
77
77
  Content-Type:
78
78
  - application/json;charset=UTF-8
79
79
  Transfer-Encoding:
@@ -81,11 +81,11 @@ http_interactions:
81
81
  body:
82
82
  encoding: ASCII-8BIT
83
83
  string: '{"id":"a001a000001ZoCiAAK","success":true,"errors":[]}'
84
- http_version:
84
+ http_version:
85
85
  recorded_at: Fri, 15 May 2015 01:18:58 GMT
86
86
  - request:
87
87
  method: delete
88
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoCiAAK
88
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoCiAAK
89
89
  body:
90
90
  encoding: US-ASCII
91
91
  string: ''
@@ -115,6 +115,6 @@ http_interactions:
115
115
  body:
116
116
  encoding: UTF-8
117
117
  string: ''
118
- http_version:
118
+ http_version:
119
119
  recorded_at: Fri, 15 May 2015 01:18:59 GMT
120
120
  recorded_with: VCR 2.9.3