# Packages
No description provided by the author
# README
Go client for Salesforce Tooling API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Overview
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 56.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Documentation for API Endpoints
All URIs are relative to https://myorg.lightning.force.com/services/data/v56.0/tooling
Class | Method | HTTP request | Summary |
---|---|---|---|
DefaultApi | CreateRecord | Post /sobjects/{SObjectName} | Create a new record |
DefaultApi | DeleteRecord | Delete /sobjects/{SObjectName}/{id} | Delete record |
DefaultApi | DescribeSObject | Get /sobjects/{SObjectName}/describe | Completely describe SObject metadata |
DefaultApi | ExecuteAnonymous | Get /executeAnonymous | Executes anonymous Apex |
DefaultApi | GetCompletions | Get /completions | Retrieve available code completions |
DefaultApi | GetSObject | Get /sobjects/{SObjectName} | Describe SObject metadata |
DefaultApi | GetSObjects | Get /sobjects | List SObjects |
DefaultApi | Query | Get /query | Executes query |
DefaultApi | RetrieveRecord | Get /sobjects/{SObjectName}/{id} | Retrieve records or fields |
DefaultApi | RunTestsAsync | Post /runTestsAsynchronous | Run tests asynchronously |
DefaultApi | RunTestsSync | Post /runTestsSynchronous | Run tests synchronously |
DefaultApi | Search | Get /search | Executes SOSL |
DefaultApi | UpdateRecord | Patch /sobjects/{SObjectName}/{id} | Update record |
Documentation For Models
- ActionOverride
- AsyncTestRequest
- AsyncTestSimpleRequest
- ChildRelationship
- CodeCoverageResult
- CodeCoverageWarning
- CodeLocation
- CompletionType
- DescribeGlobalResult
- DescribeSObjectResult
- DescribeSObjectResultExt
- EncodingType
- ExecuteAnonymousResult
- Field
- FieldType
- FlowCoverageResult
- FlowCoverageWarning
- FlowProcessType
- NamedLayoutInfo
- PicklistEntry
- QueryResult
- RecordTypeInfo
- RunTestsResult
- SOSLResult
- SObjectDescribe
- SObjectDescribeURL
- SObjectResult
- ScopeInfo
- TestLevel
- TestRequest
- TestResultsSuccess
- TestsArrayClassIdItem
- TestsArrayClassNameItem
- TestsArrayItem
- TestsArrayMaxFailedTestsItem
- TestsArrayTestLevelItem
Documentation For Authorization
oAuth (password)
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
Example
package main
import (
"golang.org/x/oauth2"
"context"
)
func main() {
oAuth2Cfg := oauth2.Config{}
token, err := oAuth2Cfg.PasswordCredentialsToken(context.Background(), "username", "password")
if err != nil {
panic(err)
}
tokenSrc := oAuth2Cfg.TokenSource(context.Background(), token)
packageName.NewAPIClient(packageName.NewConfiguration(), tokenSrc)
}
oAuth (application)
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: N/A
Example
package main
import (
"golang.org/x/oauth2"
"context"
)
func main() {
oAuth2Cfg := clientcredentials.Config{}
tokenSrc := oAuth2Cfg.TokenSource(context.Background())
packageName.NewAPIClient(packageName.NewConfiguration(), tokenSrc)
}
Documentation for Utility Methods
Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:
PtrBool
PtrInt
PtrInt32
PtrInt64
PtrFloat
PtrFloat32
PtrFloat64
PtrString
PtrTime