-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dataplane-support
- Loading branch information
Showing
10 changed files
with
139 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/databricks/databricks-sdk-go" | ||
"github.com/databricks/databricks-sdk-go/useragent" | ||
) | ||
|
||
// Run this example by running `go run ./examples/useragent` from the root of this repository. | ||
// | ||
// To run this example, ensure that you have a DEFAULT profile configured in your `.databrickscfg`. | ||
func main() { | ||
useragent.WithProduct("databricks-sdk-example", "0.0.1") | ||
useragent.WithPartner("databricks-sdk-example-abc") | ||
useragent.WithPartner("databricks-sdk-example-def") | ||
useragent.WithUserAgentExtra("test-key", "test-value") | ||
w := databricks.Must(databricks.NewWorkspaceClient()) | ||
_, err := w.CurrentUser.Me(context.Background()) | ||
if err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.