update import location and copyright header
This commit is contained in:
Родитель
5df48f846b
Коммит
eb76686fec
|
@ -6,8 +6,8 @@ This is a Golang SDK for [DataBricks REST API 2.0](https://docs.databricks.com/a
|
|||
|
||||
```go
|
||||
import (
|
||||
databricks "github.com/polar-rams/databricks-sdk-golang"
|
||||
dbAzure "github.com/polar-rams/databricks-sdk-golang/azure"
|
||||
databricks "github.com/Azure/databricks-sdk-golang"
|
||||
dbAzure "github.com/Azure/databricks-sdk-golang/azure"
|
||||
)
|
||||
|
||||
opt := databricks.NewDBClientOption("", "", os.Getenv("DATABRICKS_HOST"), os.Getenv("DATABRICKS_TOKEN"))
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package azure
|
||||
|
||||
import databricks "github.com/polar-rams/databricks-sdk-golang"
|
||||
import databricks "github.com/Azure/databricks-sdk-golang"
|
||||
|
||||
// DBClient is the client for Azure implements DBClient
|
||||
type DBClient struct {
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package azure
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/clusters/httpmodels"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/clusters/httpmodels"
|
||||
)
|
||||
|
||||
// ClustersAPI exposes the Clusters API
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type CreateReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type DeleteReq struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type EditReq struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type EventsReq struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type GetReq struct {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
|
||||
type ListResp struct {
|
||||
Clusters []models.ClusterInfo
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type ListNodeTypesResp struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type PermanentDeleteReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type PinReq struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type ResizeReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type RestartReq struct {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
|
||||
type RuntimeVersionsResp struct {
|
||||
Versions []models.SparkVersion `json:"versions,omitempty" url:"versions,omitempty"`
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type StartReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type UnpinReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type AutoScale struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type AzureAttributes struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type AzureAvailability string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterAttributes struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterCloudProviderNodeInfo struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterCloudProviderNodeStatus string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterEvent struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterEventType string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterInfo struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterLogConf struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterSize struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterSource string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterState string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterTag struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type DbfsStorageInfo struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type DockerBasicAuth struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type DockerImage struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type EventDetails struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type FileStorageInfo struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type InitScriptInfo struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ListOrder string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type LogSyncStatus struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type NodeType struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ParameterPair struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type SparkConfPair struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type SparkNode struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type SparkVersion struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type TerminationCode string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type TerminationParameter string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type TerminationReason struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type TerminationType string
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package azure
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/dbfs/httpmodels"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/dbfs/httpmodels"
|
||||
)
|
||||
|
||||
// DbfsAPI exposes the DBFS API
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type AddBlockReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type CloseReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type CreateReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type DeleteReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type GetStatusReq struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/dbfs/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/dbfs/models"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type MkdirsReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type MoveReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type PutReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type ReadReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type FileInfo struct {
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package azure
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/groups/httpmodels"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/groups/httpmodels"
|
||||
)
|
||||
|
||||
// GroupsAPI exposes the Groups API
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type AddMemberReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type CreateReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type DeleteReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type ListResp struct {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/groups/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/groups/models"
|
||||
|
||||
type ListMembersReq struct {
|
||||
GroupName string `json:"group_name,omitempty" url:"group_name,omitempty"`
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type ListParentsReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type RemoveMemberReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type PrincipalName struct {
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package azure
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/instance_pools/httpmodels"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/instance_pools/httpmodels"
|
||||
)
|
||||
|
||||
// InstancePoolsAPI exposes the InstancePools API
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
clustersModels "github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/instance_pools/models"
|
||||
clustersModels "github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/instance_pools/models"
|
||||
)
|
||||
|
||||
//CreateReq is to compose the request for creating an instance pool
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
// DeleteReq is to compose the request to delete an instance pool
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
//EditReq is to compose the request for modifying an instance pool
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
clustersModels "github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/instance_pools/models"
|
||||
clustersModels "github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/instance_pools/models"
|
||||
)
|
||||
|
||||
//GetReq is to compose the request to get an instance pool
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/instance_pools/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/instance_pools/models"
|
||||
)
|
||||
|
||||
//ListResp is to compose the response to list an array of instance pools' stats
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type AzureDiskVolumeType string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type DiskSpec struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type DiskType struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
import (
|
||||
clusterModels "github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
clusterModels "github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type InstancePoolAndStats struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
import (
|
||||
clusterModels "github.com/polar-rams/databricks-sdk-golang/azure/clusters/models"
|
||||
clusterModels "github.com/Azure/databricks-sdk-golang/azure/clusters/models"
|
||||
)
|
||||
|
||||
type InstancePoolAzureAttributes struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type InstancePoolState string
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type InstancePoolStats struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type InstancePoolStatus struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type PendingInstanceError struct {
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package azure
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/jobs/httpmodels"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/jobs/httpmodels"
|
||||
)
|
||||
|
||||
// JobsAPI exposes Jobs API endpoints
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
libraryModels "github.com/polar-rams/databricks-sdk-golang/azure/libraries/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
libraryModels "github.com/Azure/databricks-sdk-golang/azure/libraries/models"
|
||||
)
|
||||
|
||||
type CreateReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type DeleteReq struct {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
|
||||
type GetReq struct {
|
||||
JobID int64 `json:"job_id,omitempty" url:"job_id,omitempty"`
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
)
|
||||
|
||||
type ListResp struct {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
|
||||
type ResetReq struct {
|
||||
JobID int64 `json:"job_id,omitempty" url:"job_id,omitempty"`
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type RunNowReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type RunsCancelReq struct {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
type RunsDeleteReq struct {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
|
||||
type RunsExportReq struct {
|
||||
RunID int64 `json:"run_id,omitempty" url:"run_id,omitempty"`
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
|
||||
type RunsGetReq struct {
|
||||
RunID int64 `json:"run_id,omitempty" url:"run_id,omitempty"`
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
)
|
||||
|
||||
type RunsGetOutputReq struct {
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
)
|
||||
|
||||
type RunsListReq struct {
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import (
|
||||
"github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
libraryModels "github.com/polar-rams/databricks-sdk-golang/azure/libraries/models"
|
||||
"github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
libraryModels "github.com/Azure/databricks-sdk-golang/azure/libraries/models"
|
||||
)
|
||||
|
||||
type RunsSubmitReq struct {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package httpmodels
|
||||
|
||||
import "github.com/polar-rams/databricks-sdk-golang/azure/jobs/models"
|
||||
import "github.com/Azure/databricks-sdk-golang/azure/jobs/models"
|
||||
|
||||
type UpdateReq struct {
|
||||
JobID int64 `json:"job_id,omitempty" url:"job_id,omitempty"`
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
package models
|
||||
|
||||
type ClusterInstance struct {
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче