networking

package
v0.185.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

These APIs allow you to manage Endpoints, Private Network Gateways, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsVpcEndpointInfo added in v0.161.0

type AwsVpcEndpointInfo struct {
	// The AWS account ID in which this VPC endpoint lives.
	AwsAccountId string `json:"aws_account_id,omitempty"`
	// The ID of the Databricks VPC endpoint service that this endpoint connects
	// to.
	AwsEndpointServiceId string `json:"aws_endpoint_service_id,omitempty"`
	// The ID of the underlying VPC endpoint in AWS. Provided by the customer
	// when registering an existing AWS VPC endpoint.
	AwsVpcEndpointId string `json:"aws_vpc_endpoint_id"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (AwsVpcEndpointInfo) MarshalJSON added in v0.161.0

func (s AwsVpcEndpointInfo) MarshalJSON() ([]byte, error)

func (*AwsVpcEndpointInfo) UnmarshalJSON added in v0.161.0

func (s *AwsVpcEndpointInfo) UnmarshalJSON(b []byte) error

type AzurePrivateEndpointInfo

type AzurePrivateEndpointInfo struct {
	// The name of the Private Endpoint in the Azure subscription.
	PrivateEndpointName string `json:"private_endpoint_name"`
	// The GUID of the Private Endpoint resource in the Azure subscription. This
	// is assigned by Azure when the user sets up the Private Endpoint.
	PrivateEndpointResourceGuid string `json:"private_endpoint_resource_guid"`
	// The full resource ID of the Private Endpoint.
	PrivateEndpointResourceId string `json:"private_endpoint_resource_id,omitempty"`
	// The resource ID of the Databricks Private Link Service that this Private
	// Endpoint connects to.
	PrivateLinkServiceId string `json:"private_link_service_id,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (AzurePrivateEndpointInfo) MarshalJSON

func (s AzurePrivateEndpointInfo) MarshalJSON() ([]byte, error)

func (*AzurePrivateEndpointInfo) UnmarshalJSON

func (s *AzurePrivateEndpointInfo) UnmarshalJSON(b []byte) error

type CreateEndpointRequest

type CreateEndpointRequest struct {
	Endpoint Endpoint `json:"endpoint"`
	// The parent resource name of the account under which the endpoint is
	// created. Format: `accounts/{account_id}`.
	Parent string `json:"-" url:"-"`
}

func (*CreateEndpointRequest) UnmarshalJSON added in v0.174.0

func (s *CreateEndpointRequest) UnmarshalJSON(b []byte) error

type CreatePrivateNetworkGatewayOperationInterface

type CreatePrivateNetworkGatewayOperationInterface interface {

	// Wait blocks until the long-running operation is completed. If no timeout is
	// specified, this will poll indefinitely. If a timeout is provided and the operation
	// didn't finish within the timeout, this function will return an error, otherwise
	// returns successful response and any errors encountered.
	Wait(ctx context.Context, opts ...api.Option) (*PrivateNetworkGateway, error)

	// Name returns the name of the long-running operation. The name is assigned
	// by the server and is unique within the service from which the operation is created.
	Name() string

	// Metadata returns metadata associated with the long-running operation.
	// If the metadata is not available, the returned metadata and error are both nil.
	Metadata() (*PrivateNetworkGatewayOperationMetadata, error)

	// Done reports whether the long-running operation has completed.
	Done() (bool, error)
}

type CreatePrivateNetworkGatewayRequest

type CreatePrivateNetworkGatewayRequest struct {
	// The network connectivity configuration that will contain the gateway.
	Parent string `json:"-" url:"-"`
	// The gateway to create.
	PrivateNetworkGateway PrivateNetworkGateway `json:"private_network_gateway"`
	// A unique identifier for this request. The request is idempotent when this
	// is provided.
	RequestId string `json:"-" url:"request_id,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (CreatePrivateNetworkGatewayRequest) MarshalJSON

func (s CreatePrivateNetworkGatewayRequest) MarshalJSON() ([]byte, error)

func (*CreatePrivateNetworkGatewayRequest) UnmarshalJSON

func (s *CreatePrivateNetworkGatewayRequest) UnmarshalJSON(b []byte) error

type DatabricksServiceExceptionWithDetailsProto

type DatabricksServiceExceptionWithDetailsProto struct {
	Details []json.RawMessage `json:"details,omitempty"`

	ErrorCode ErrorCode `json:"error_code,omitempty"`

	Message string `json:"message,omitempty"`

	StackTrace string `json:"stack_trace,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

Databricks Error that is returned by all Databricks APIs.

func (DatabricksServiceExceptionWithDetailsProto) MarshalJSON

func (*DatabricksServiceExceptionWithDetailsProto) UnmarshalJSON

type DeleteEndpointRequest

type DeleteEndpointRequest struct {
	Name string `json:"-" url:"-"`
}

func (*DeleteEndpointRequest) UnmarshalJSON added in v0.174.0

func (s *DeleteEndpointRequest) UnmarshalJSON(b []byte) error

type DeletePrivateNetworkGatewayRequest

type DeletePrivateNetworkGatewayRequest struct {
	// The canonical resource name of the gateway.
	Name string `json:"-" url:"-"`
}

func (*DeletePrivateNetworkGatewayRequest) UnmarshalJSON

func (s *DeletePrivateNetworkGatewayRequest) UnmarshalJSON(b []byte) error

type Endpoint

type Endpoint struct {
	// The Databricks Account in which the endpoint object exists.
	AccountId string `json:"account_id,omitempty"`
	// Info for an AWS VPC endpoint.
	AwsVpcEndpointInfo *AwsVpcEndpointInfo `json:"aws_vpc_endpoint_info,omitempty"`
	// Info for an Azure private endpoint.
	AzurePrivateEndpointInfo *AzurePrivateEndpointInfo `json:"azure_private_endpoint_info,omitempty"`
	// The timestamp when the endpoint was created. The timestamp is in RFC 3339
	// format in UTC timezone.
	CreateTime *time.Time `json:"create_time,omitempty"`
	// The human-readable display name of this endpoint. The input should
	// conform to RFC-1034, which restricts to letters, numbers, and hyphens,
	// with the first character a letter, the last a letter or a number, and a
	// 63 character maximum.
	DisplayName string `json:"display_name"`
	// The unique identifier for this endpoint under the account. This field is
	// a UUID generated by Databricks.
	EndpointId string `json:"endpoint_id,omitempty"`
	// Info for a GCP Private Service Connect endpoint.
	GcpPscEndpointInfo *GcpPscEndpointInfo `json:"gcp_psc_endpoint_info,omitempty"`
	// The resource name of the endpoint, which uniquely identifies the
	// endpoint.
	Name string `json:"name,omitempty"`
	// The cloud provider region where this endpoint is located.
	Region string `json:"region"`
	// The state of the endpoint. The endpoint can only be used if the state is
	// `APPROVED`.
	State EndpointState `json:"state,omitempty"`
	// The use case that determines the type of network connectivity this
	// endpoint provides. This field is automatically determined based on the
	// endpoint configuration and cloud-specific settings.
	UseCase EndpointUseCase `json:"use_case,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

Endpoint represents a cloud networking resource in a user's cloud account and binds it to the Databricks account.

func (Endpoint) MarshalJSON

func (s Endpoint) MarshalJSON() ([]byte, error)

func (*Endpoint) UnmarshalJSON

func (s *Endpoint) UnmarshalJSON(b []byte) error

type EndpointState

type EndpointState string
const EndpointStateApproved EndpointState = `APPROVED`
const EndpointStateDisconnected EndpointState = `DISCONNECTED`
const EndpointStateFailed EndpointState = `FAILED`
const EndpointStatePending EndpointState = `PENDING`

func (*EndpointState) Set

func (f *EndpointState) Set(v string) error

Set raw string value and validate it against allowed values

func (*EndpointState) String

func (f *EndpointState) String() string

String representation for fmt.Print

func (*EndpointState) Type

func (f *EndpointState) Type() string

Type always returns EndpointState to satisfy [pflag.Value] interface

func (*EndpointState) Values

func (f *EndpointState) Values() []EndpointState

Values returns all possible values for EndpointState.

There is no guarantee on the order of the values in the slice.

type EndpointUseCase

type EndpointUseCase string
const EndpointUseCaseServiceDirect EndpointUseCase = `SERVICE_DIRECT`

func (*EndpointUseCase) Set

func (f *EndpointUseCase) Set(v string) error

Set raw string value and validate it against allowed values

func (*EndpointUseCase) String

func (f *EndpointUseCase) String() string

String representation for fmt.Print

func (*EndpointUseCase) Type

func (f *EndpointUseCase) Type() string

Type always returns EndpointUseCase to satisfy [pflag.Value] interface

func (*EndpointUseCase) Values

func (f *EndpointUseCase) Values() []EndpointUseCase

Values returns all possible values for EndpointUseCase.

There is no guarantee on the order of the values in the slice.

type EndpointsAPI

type EndpointsAPI struct {
	// contains filtered or unexported fields
}

These APIs manage endpoint configurations for this account.

func NewEndpoints

func NewEndpoints(client *client.DatabricksClient) *EndpointsAPI

func (*EndpointsAPI) CreateEndpoint

func (a *EndpointsAPI) CreateEndpoint(ctx context.Context, request CreateEndpointRequest) (*Endpoint, error)

func (*EndpointsAPI) DeleteEndpoint

func (a *EndpointsAPI) DeleteEndpoint(ctx context.Context, request DeleteEndpointRequest) error

func (*EndpointsAPI) GetEndpoint

func (a *EndpointsAPI) GetEndpoint(ctx context.Context, request GetEndpointRequest) (*Endpoint, error)

func (*EndpointsAPI) ListEndpoints

func (a *EndpointsAPI) ListEndpoints(ctx context.Context, request ListEndpointsRequest) listing.Iterator[Endpoint]

Lists all network connectivity endpoints for the account.

func (*EndpointsAPI) ListEndpointsAll

func (a *EndpointsAPI) ListEndpointsAll(ctx context.Context, request ListEndpointsRequest) ([]Endpoint, error)

Lists all network connectivity endpoints for the account.

type EndpointsInterface

type EndpointsInterface interface {

	// Creates a new network connectivity endpoint that enables private connectivity
	// between your network resources and Databricks services.
	//
	// After creation, the endpoint is initially in the PENDING state. The
	// Databricks endpoint service automatically reviews and approves the endpoint
	// within a few minutes. Use the GET method to retrieve the latest endpoint
	// state.
	//
	// An endpoint can be used only after it reaches the APPROVED state.
	CreateEndpoint(ctx context.Context, request CreateEndpointRequest) (*Endpoint, error)

	// Deletes a network endpoint. This will remove the endpoint configuration from
	// Databricks. Depending on the endpoint type and use case, you may also need to
	// delete corresponding network resources in your cloud provider account.
	DeleteEndpoint(ctx context.Context, request DeleteEndpointRequest) error

	// Gets details of a specific network endpoint.
	GetEndpoint(ctx context.Context, request GetEndpointRequest) (*Endpoint, error)

	// Lists all network connectivity endpoints for the account.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListEndpoints(ctx context.Context, request ListEndpointsRequest) listing.Iterator[Endpoint]

	// Lists all network connectivity endpoints for the account.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListEndpointsAll(ctx context.Context, request ListEndpointsRequest) ([]Endpoint, error)
}

type EndpointsService deprecated

type EndpointsService interface {

	// Creates a new network connectivity endpoint that enables private
	// connectivity between your network resources and Databricks services.
	//
	// After creation, the endpoint is initially in the PENDING state. The
	// Databricks endpoint service automatically reviews and approves the
	// endpoint within a few minutes. Use the GET method to retrieve the latest
	// endpoint state.
	//
	// An endpoint can be used only after it reaches the APPROVED state.
	CreateEndpoint(ctx context.Context, request CreateEndpointRequest) (*Endpoint, error)

	// Deletes a network endpoint. This will remove the endpoint configuration
	// from Databricks. Depending on the endpoint type and use case, you may
	// also need to delete corresponding network resources in your cloud
	// provider account.
	DeleteEndpoint(ctx context.Context, request DeleteEndpointRequest) error

	// Gets details of a specific network endpoint.
	GetEndpoint(ctx context.Context, request GetEndpointRequest) (*Endpoint, error)

	// Lists all network connectivity endpoints for the account.
	ListEndpoints(ctx context.Context, request ListEndpointsRequest) (*ListEndpointsResponse, error)
}

These APIs manage endpoint configurations for this account.

Deprecated: Do not use this interface, it will be removed in a future version of the SDK.

type ErrorCode

type ErrorCode string

Error codes returned by Databricks APIs to indicate specific failure conditions.

const ErrorCodeAborted ErrorCode = `ABORTED`
const ErrorCodeAlreadyExists ErrorCode = `ALREADY_EXISTS`
const ErrorCodeBadRequest ErrorCode = `BAD_REQUEST`
const ErrorCodeCancelled ErrorCode = `CANCELLED`
const ErrorCodeCatalogAlreadyExists ErrorCode = `CATALOG_ALREADY_EXISTS`
const ErrorCodeCatalogDoesNotExist ErrorCode = `CATALOG_DOES_NOT_EXIST`
const ErrorCodeCatalogNotEmpty ErrorCode = `CATALOG_NOT_EMPTY`
const ErrorCodeCouldNotAcquireLock ErrorCode = `COULD_NOT_ACQUIRE_LOCK`
const ErrorCodeCustomerUnauthorized ErrorCode = `CUSTOMER_UNAUTHORIZED`
const ErrorCodeDacAlreadyExists ErrorCode = `DAC_ALREADY_EXISTS`
const ErrorCodeDacDoesNotExist ErrorCode = `DAC_DOES_NOT_EXIST`
const ErrorCodeDataLoss ErrorCode = `DATA_LOSS`
const ErrorCodeDeadlineExceeded ErrorCode = `DEADLINE_EXCEEDED`
const ErrorCodeDeploymentTimeout ErrorCode = `DEPLOYMENT_TIMEOUT`
const ErrorCodeDirectoryNotEmpty ErrorCode = `DIRECTORY_NOT_EMPTY`
const ErrorCodeDirectoryProtected ErrorCode = `DIRECTORY_PROTECTED`
const ErrorCodeDryRunFailed ErrorCode = `DRY_RUN_FAILED`
const ErrorCodeEndpointNotFound ErrorCode = `ENDPOINT_NOT_FOUND`
const ErrorCodeExternalLocationAlreadyExists ErrorCode = `EXTERNAL_LOCATION_ALREADY_EXISTS`
const ErrorCodeExternalLocationDoesNotExist ErrorCode = `EXTERNAL_LOCATION_DOES_NOT_EXIST`
const ErrorCodeFeatureDisabled ErrorCode = `FEATURE_DISABLED`
const ErrorCodeGitConflict ErrorCode = `GIT_CONFLICT`
const ErrorCodeGitRemoteError ErrorCode = `GIT_REMOTE_ERROR`
const ErrorCodeGitSensitiveTokenDetected ErrorCode = `GIT_SENSITIVE_TOKEN_DETECTED`
const ErrorCodeGitUnknownRef ErrorCode = `GIT_UNKNOWN_REF`
const ErrorCodeGitUrlNotOnAllowList ErrorCode = `GIT_URL_NOT_ON_ALLOW_LIST`
const ErrorCodeInsecurePartnerResponse ErrorCode = `INSECURE_PARTNER_RESPONSE`
const ErrorCodeInternalError ErrorCode = `INTERNAL_ERROR`
const ErrorCodeInvalidParameterValue ErrorCode = `INVALID_PARAMETER_VALUE`
const ErrorCodeInvalidState ErrorCode = `INVALID_STATE`
const ErrorCodeInvalidStateTransition ErrorCode = `INVALID_STATE_TRANSITION`
const ErrorCodeIoError ErrorCode = `IO_ERROR`
const ErrorCodeIpynbFileInRepo ErrorCode = `IPYNB_FILE_IN_REPO`
const ErrorCodeMalformedPartnerResponse ErrorCode = `MALFORMED_PARTNER_RESPONSE`
const ErrorCodeMalformedRequest ErrorCode = `MALFORMED_REQUEST`
const ErrorCodeManagedResourceGroupDoesNotExist ErrorCode = `MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST`
const ErrorCodeMaxBlockSizeExceeded ErrorCode = `MAX_BLOCK_SIZE_EXCEEDED`
const ErrorCodeMaxChildNodeSizeExceeded ErrorCode = `MAX_CHILD_NODE_SIZE_EXCEEDED`
const ErrorCodeMaxListSizeExceeded ErrorCode = `MAX_LIST_SIZE_EXCEEDED`
const ErrorCodeMaxNotebookSizeExceeded ErrorCode = `MAX_NOTEBOOK_SIZE_EXCEEDED`
const ErrorCodeMaxReadSizeExceeded ErrorCode = `MAX_READ_SIZE_EXCEEDED`
const ErrorCodeMetastoreAlreadyExists ErrorCode = `METASTORE_ALREADY_EXISTS`
const ErrorCodeMetastoreDoesNotExist ErrorCode = `METASTORE_DOES_NOT_EXIST`
const ErrorCodeMetastoreNotEmpty ErrorCode = `METASTORE_NOT_EMPTY`
const ErrorCodeNotFound ErrorCode = `NOT_FOUND`
const ErrorCodeNotImplemented ErrorCode = `NOT_IMPLEMENTED`
const ErrorCodePartialDelete ErrorCode = `PARTIAL_DELETE`
const ErrorCodePermissionDenied ErrorCode = `PERMISSION_DENIED`
const ErrorCodePermissionNotPropagated ErrorCode = `PERMISSION_NOT_PROPAGATED`
const ErrorCodePrincipalDoesNotExist ErrorCode = `PRINCIPAL_DOES_NOT_EXIST`
const ErrorCodeProjectsOperationTimeout ErrorCode = `PROJECTS_OPERATION_TIMEOUT`
const ErrorCodeProviderAlreadyExists ErrorCode = `PROVIDER_ALREADY_EXISTS`
const ErrorCodeProviderDoesNotExist ErrorCode = `PROVIDER_DOES_NOT_EXIST`
const ErrorCodeProviderShareNotAccessible ErrorCode = `PROVIDER_SHARE_NOT_ACCESSIBLE`
const ErrorCodeQuotaExceeded ErrorCode = `QUOTA_EXCEEDED`
const ErrorCodeRecipientAlreadyExists ErrorCode = `RECIPIENT_ALREADY_EXISTS`
const ErrorCodeRecipientDoesNotExist ErrorCode = `RECIPIENT_DOES_NOT_EXIST`
const ErrorCodeRequestLimitExceeded ErrorCode = `REQUEST_LIMIT_EXCEEDED`
const ErrorCodeResourceAlreadyExists ErrorCode = `RESOURCE_ALREADY_EXISTS`
const ErrorCodeResourceConflict ErrorCode = `RESOURCE_CONFLICT`
const ErrorCodeResourceDoesNotExist ErrorCode = `RESOURCE_DOES_NOT_EXIST`
const ErrorCodeResourceExhausted ErrorCode = `RESOURCE_EXHAUSTED`
const ErrorCodeResourceLimitExceeded ErrorCode = `RESOURCE_LIMIT_EXCEEDED`
const ErrorCodeSchemaAlreadyExists ErrorCode = `SCHEMA_ALREADY_EXISTS`
const ErrorCodeSchemaDoesNotExist ErrorCode = `SCHEMA_DOES_NOT_EXIST`
const ErrorCodeSchemaNotEmpty ErrorCode = `SCHEMA_NOT_EMPTY`
const ErrorCodeSearchQueryTooLong ErrorCode = `SEARCH_QUERY_TOO_LONG`
const ErrorCodeSearchQueryTooShort ErrorCode = `SEARCH_QUERY_TOO_SHORT`
const ErrorCodeServiceUnderMaintenance ErrorCode = `SERVICE_UNDER_MAINTENANCE`
const ErrorCodeShareAlreadyExists ErrorCode = `SHARE_ALREADY_EXISTS`
const ErrorCodeShareDoesNotExist ErrorCode = `SHARE_DOES_NOT_EXIST`
const ErrorCodeStorageCredentialAlreadyExists ErrorCode = `STORAGE_CREDENTIAL_ALREADY_EXISTS`
const ErrorCodeStorageCredentialDoesNotExist ErrorCode = `STORAGE_CREDENTIAL_DOES_NOT_EXIST`
const ErrorCodeTableAlreadyExists ErrorCode = `TABLE_ALREADY_EXISTS`
const ErrorCodeTableDoesNotExist ErrorCode = `TABLE_DOES_NOT_EXIST`
const ErrorCodeTemporarilyUnavailable ErrorCode = `TEMPORARILY_UNAVAILABLE`
const ErrorCodeUnauthenticated ErrorCode = `UNAUTHENTICATED`
const ErrorCodeUnavailable ErrorCode = `UNAVAILABLE`
const ErrorCodeUnknown ErrorCode = `UNKNOWN`
const ErrorCodeUnparseableHttpError ErrorCode = `UNPARSEABLE_HTTP_ERROR`
const ErrorCodeWorkspaceTemporarilyUnavailable ErrorCode = `WORKSPACE_TEMPORARILY_UNAVAILABLE`

func (*ErrorCode) Set

func (f *ErrorCode) Set(v string) error

Set raw string value and validate it against allowed values

func (*ErrorCode) String

func (f *ErrorCode) String() string

String representation for fmt.Print

func (*ErrorCode) Type

func (f *ErrorCode) Type() string

Type always returns ErrorCode to satisfy [pflag.Value] interface

func (*ErrorCode) Values

func (f *ErrorCode) Values() []ErrorCode

Values returns all possible values for ErrorCode.

There is no guarantee on the order of the values in the slice.

type GcpPscEndpointInfo added in v0.161.0

type GcpPscEndpointInfo struct {
	// The GCP region of the PSC connection endpoint. Provided by the customer
	// when registering an existing PSC endpoint. GCP supports only same-region
	// PSC, so this must match the workspace region.
	EndpointRegion string `json:"endpoint_region"`
	// The GCP consumer project ID in which this PSC endpoint is created.
	// Provided by the customer when registering an existing PSC endpoint.
	ProjectId string `json:"project_id"`
	// The ID of the underlying Private Service Connect connection in the GCP
	// consumer project, assigned by GCP when the PSC connection is created.
	PscConnectionId string `json:"psc_connection_id,omitempty"`
	// The name of this PSC connection in the GCP consumer project. Provided by
	// the customer when registering an existing PSC endpoint.
	PscEndpoint string `json:"psc_endpoint"`
	// The ID of the Databricks service attachment this PSC endpoint connects
	// to.
	ServiceAttachmentId string `json:"service_attachment_id,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (GcpPscEndpointInfo) MarshalJSON added in v0.161.0

func (s GcpPscEndpointInfo) MarshalJSON() ([]byte, error)

func (*GcpPscEndpointInfo) UnmarshalJSON added in v0.161.0

func (s *GcpPscEndpointInfo) UnmarshalJSON(b []byte) error

type GetEndpointRequest

type GetEndpointRequest struct {
	Name string `json:"-" url:"-"`
}

func (*GetEndpointRequest) UnmarshalJSON added in v0.174.0

func (s *GetEndpointRequest) UnmarshalJSON(b []byte) error

type GetOperationRequest

type GetOperationRequest struct {
	// The name of the operation resource.
	Name string `json:"-" url:"-"`
}

func (*GetOperationRequest) UnmarshalJSON

func (s *GetOperationRequest) UnmarshalJSON(b []byte) error

type GetPrivateNetworkGatewayRequest

type GetPrivateNetworkGatewayRequest struct {
	// The canonical resource name of the gateway.
	Name string `json:"-" url:"-"`
}

func (*GetPrivateNetworkGatewayRequest) UnmarshalJSON

func (s *GetPrivateNetworkGatewayRequest) UnmarshalJSON(b []byte) error

type ListEndpointsRequest

type ListEndpointsRequest struct {
	PageSize int `json:"-" url:"page_size,omitempty"`

	PageToken string `json:"-" url:"page_token,omitempty"`
	// The parent resource name of the account to list endpoints for. Format:
	// `accounts/{account_id}`.
	Parent string `json:"-" url:"-"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListEndpointsRequest) MarshalJSON

func (s ListEndpointsRequest) MarshalJSON() ([]byte, error)

func (*ListEndpointsRequest) UnmarshalJSON

func (s *ListEndpointsRequest) UnmarshalJSON(b []byte) error

type ListEndpointsResponse

type ListEndpointsResponse struct {
	Items []Endpoint `json:"items,omitempty"`

	NextPageToken string `json:"next_page_token,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListEndpointsResponse) MarshalJSON

func (s ListEndpointsResponse) MarshalJSON() ([]byte, error)

func (*ListEndpointsResponse) UnmarshalJSON

func (s *ListEndpointsResponse) UnmarshalJSON(b []byte) error

type ListPrivateNetworkGatewaysRequest

type ListPrivateNetworkGatewaysRequest struct {
	// An opaque token returned by a previous list request.
	PageToken string `json:"-" url:"page_token,omitempty"`
	// The network connectivity configuration containing the gateways.
	Parent string `json:"-" url:"-"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListPrivateNetworkGatewaysRequest) MarshalJSON

func (s ListPrivateNetworkGatewaysRequest) MarshalJSON() ([]byte, error)

func (*ListPrivateNetworkGatewaysRequest) UnmarshalJSON

func (s *ListPrivateNetworkGatewaysRequest) UnmarshalJSON(b []byte) error

type ListPrivateNetworkGatewaysResponse

type ListPrivateNetworkGatewaysResponse struct {
	// An opaque token for the next page, or empty when there are no more
	// results.
	NextPageToken string `json:"next_page_token,omitempty"`

	PrivateNetworkGateways []PrivateNetworkGateway `json:"private_network_gateways,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListPrivateNetworkGatewaysResponse) MarshalJSON

func (s ListPrivateNetworkGatewaysResponse) MarshalJSON() ([]byte, error)

func (*ListPrivateNetworkGatewaysResponse) UnmarshalJSON

func (s *ListPrivateNetworkGatewaysResponse) UnmarshalJSON(b []byte) error

type Operation

type Operation struct {
	// If the value is `false`, it means the operation is still in progress. If
	// `true`, the operation is completed, and either `error` or `response` is
	// available.
	Done bool `json:"done,omitempty"`
	// The error result of the operation in case of failure or cancellation.
	Error *DatabricksServiceExceptionWithDetailsProto `json:"error,omitempty"`
	// Service-specific metadata associated with the operation. It typically
	// contains progress information and common metadata such as create time.
	// Some services might not provide such metadata.
	Metadata json.RawMessage `json:"metadata,omitempty"`
	// The server-assigned name, which is only unique within the same service
	// that originally returns it. If you use the default HTTP mapping, the
	// `name` should be a resource name ending with `operations/{unique_id}`.
	Name string `json:"name,omitempty"`
	// The normal, successful response of the operation.
	Response json.RawMessage `json:"response,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

This resource represents a long-running operation that is the result of a network API call.

func (Operation) MarshalJSON

func (s Operation) MarshalJSON() ([]byte, error)

func (*Operation) UnmarshalJSON

func (s *Operation) UnmarshalJSON(b []byte) error

type PrivateNetworkGateway

type PrivateNetworkGateway struct {
	// The AWS connection used by the gateway.
	AwsCloudConnection *PrivateNetworkGatewayAwsCloudConnection `json:"aws_cloud_connection,omitempty"`
	// The Azure connection used by the gateway.
	AzureCloudConnection *PrivateNetworkGatewayAzureCloudConnection `json:"azure_cloud_connection,omitempty"`
	// The provisioned bandwidth tier for an Azure gateway, in gigabits per
	// second. Required when creating an Azure gateway.
	BandwidthTierGigabitsPerSecond int `json:"bandwidth_tier_gigabits_per_second,omitempty"`
	// The time when the gateway was created.
	CreateTime *time.Time `json:"create_time,omitempty"`
	// The destinations routed through this gateway.
	Destinations []PrivateNetworkGatewayDestination `json:"destinations,omitempty"`
	// The human-readable name of the gateway.
	DisplayName string `json:"display_name"`
	// The failure reason when the gateway is in the FAILED state.
	ErrorMessage string `json:"error_message,omitempty"`
	// The canonical resource name of the gateway, in the form
	// `accounts/{account_id}/network-connectivity-configs/{ncc_id}/private-network-gateways/{gateway_id}`.
	Name string `json:"name,omitempty"`
	// The DNS resolvers used for private name resolution.
	PrivateDnsResolvers []PrivateNetworkGatewayPrivateDnsResolver `json:"private_dns_resolvers,omitempty"`
	// The current lifecycle state of the gateway.
	State PrivateNetworkGatewayGatewayState `json:"state,omitempty"`
	// The traffic routed through this gateway.
	TrafficMode PrivateNetworkGatewayTrafficMode `json:"traffic_mode"`
	// The time when the gateway was last updated.
	UpdateTime *time.Time `json:"update_time,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

A private network gateway connects serverless compute to destinations in a customer-managed VPC or VNet.

func (PrivateNetworkGateway) MarshalJSON

func (s PrivateNetworkGateway) MarshalJSON() ([]byte, error)

func (*PrivateNetworkGateway) UnmarshalJSON

func (s *PrivateNetworkGateway) UnmarshalJSON(b []byte) error

type PrivateNetworkGatewayAwsCloudConnection

type PrivateNetworkGatewayAwsCloudConnection struct {
	// The IAM role that Databricks assumes to manage gateway resources.
	CrossAccountRole PrivateNetworkGatewayAwsCloudConnectionCrossAccountRole `json:"cross_account_role"`
	// The subnets where the gateway establishes connectivity.
	GatewaySubnets []PrivateNetworkGatewayAwsCloudConnectionAwsGatewaySubnet `json:"gateway_subnets"`
	// The security groups attached to the gateway network interface.
	SecurityGroupIds []string `json:"security_group_ids"`
}

AWS connection configuration.

func (*PrivateNetworkGatewayAwsCloudConnection) UnmarshalJSON

func (s *PrivateNetworkGatewayAwsCloudConnection) UnmarshalJSON(b []byte) error

type PrivateNetworkGatewayAwsCloudConnectionAwsGatewaySubnet

type PrivateNetworkGatewayAwsCloudConnectionAwsGatewaySubnet struct {
	// The AWS subnet ID.
	SubnetId string `json:"subnet_id"`
}

An AWS subnet used by the gateway.

func (*PrivateNetworkGatewayAwsCloudConnectionAwsGatewaySubnet) UnmarshalJSON

type PrivateNetworkGatewayAwsCloudConnectionCrossAccountRole

type PrivateNetworkGatewayAwsCloudConnectionCrossAccountRole struct {
	// The ARN of the IAM role.
	RoleArn string `json:"role_arn"`
}

A cross-account IAM role used to manage gateway resources.

func (*PrivateNetworkGatewayAwsCloudConnectionCrossAccountRole) UnmarshalJSON

type PrivateNetworkGatewayAzureCloudConnection

type PrivateNetworkGatewayAzureCloudConnection struct {
	// The subnet where the gateway establishes connectivity.
	GatewaySubnet PrivateNetworkGatewayAzureCloudConnectionAzureGatewaySubnet `json:"gateway_subnet"`
}

Azure connection configuration.

func (*PrivateNetworkGatewayAzureCloudConnection) UnmarshalJSON

type PrivateNetworkGatewayAzureCloudConnectionAzureGatewaySubnet

type PrivateNetworkGatewayAzureCloudConnectionAzureGatewaySubnet struct {
	// The full Azure resource ID of the subnet.
	ResourceId string `json:"resource_id"`
}

An Azure subnet used by the gateway.

func (*PrivateNetworkGatewayAzureCloudConnectionAzureGatewaySubnet) UnmarshalJSON

type PrivateNetworkGatewayDestination

type PrivateNetworkGatewayDestination struct {
	// The destination type.
	DestinationType PrivateNetworkGatewayDestinationDestinationType `json:"destination_type"`
	// The destination value.
	Value string `json:"value"`
}

A destination routed through the gateway.

func (*PrivateNetworkGatewayDestination) UnmarshalJSON

func (s *PrivateNetworkGatewayDestination) UnmarshalJSON(b []byte) error

type PrivateNetworkGatewayDestinationDestinationType

type PrivateNetworkGatewayDestinationDestinationType string

The supported destination types.

const PrivateNetworkGatewayDestinationDestinationTypeDnsName PrivateNetworkGatewayDestinationDestinationType = `DNS_NAME`

func (*PrivateNetworkGatewayDestinationDestinationType) Set

Set raw string value and validate it against allowed values

func (*PrivateNetworkGatewayDestinationDestinationType) String

String representation for fmt.Print

func (*PrivateNetworkGatewayDestinationDestinationType) Type

Type always returns PrivateNetworkGatewayDestinationDestinationType to satisfy [pflag.Value] interface

func (*PrivateNetworkGatewayDestinationDestinationType) Values

Values returns all possible values for PrivateNetworkGatewayDestinationDestinationType.

There is no guarantee on the order of the values in the slice.

type PrivateNetworkGatewayGatewayState

type PrivateNetworkGatewayGatewayState string

The lifecycle state of the gateway.

const PrivateNetworkGatewayGatewayStateCreating PrivateNetworkGatewayGatewayState = `CREATING`
const PrivateNetworkGatewayGatewayStateDeleting PrivateNetworkGatewayGatewayState = `DELETING`
const PrivateNetworkGatewayGatewayStateEstablished PrivateNetworkGatewayGatewayState = `ESTABLISHED`
const PrivateNetworkGatewayGatewayStateFailed PrivateNetworkGatewayGatewayState = `FAILED`

func (*PrivateNetworkGatewayGatewayState) Set

Set raw string value and validate it against allowed values

func (*PrivateNetworkGatewayGatewayState) String

String representation for fmt.Print

func (*PrivateNetworkGatewayGatewayState) Type

Type always returns PrivateNetworkGatewayGatewayState to satisfy [pflag.Value] interface

func (*PrivateNetworkGatewayGatewayState) Values

Values returns all possible values for PrivateNetworkGatewayGatewayState.

There is no guarantee on the order of the values in the slice.

type PrivateNetworkGatewayOperationMetadata

type PrivateNetworkGatewayOperationMetadata struct {
	// The operation performed on the gateway.
	OperationType PrivateNetworkGatewayOperationMetadataOperationType `json:"operation_type,omitempty"`
}

func (*PrivateNetworkGatewayOperationMetadata) UnmarshalJSON

func (s *PrivateNetworkGatewayOperationMetadata) UnmarshalJSON(b []byte) error

type PrivateNetworkGatewayOperationMetadataOperationType

type PrivateNetworkGatewayOperationMetadataOperationType string
const PrivateNetworkGatewayOperationMetadataOperationTypeCreate PrivateNetworkGatewayOperationMetadataOperationType = `CREATE`

func (*PrivateNetworkGatewayOperationMetadataOperationType) Set

Set raw string value and validate it against allowed values

func (*PrivateNetworkGatewayOperationMetadataOperationType) String

String representation for fmt.Print

func (*PrivateNetworkGatewayOperationMetadataOperationType) Type

Type always returns PrivateNetworkGatewayOperationMetadataOperationType to satisfy [pflag.Value] interface

func (*PrivateNetworkGatewayOperationMetadataOperationType) Values

Values returns all possible values for PrivateNetworkGatewayOperationMetadataOperationType.

There is no guarantee on the order of the values in the slice.

type PrivateNetworkGatewayPrivateDnsResolver

type PrivateNetworkGatewayPrivateDnsResolver struct {
	// The resolver type.
	ResolverType PrivateNetworkGatewayPrivateDnsResolverResolverType `json:"resolver_type"`
	// The resolver value.
	Value string `json:"value"`
}

A private DNS resolver used by the gateway.

func (*PrivateNetworkGatewayPrivateDnsResolver) UnmarshalJSON

func (s *PrivateNetworkGatewayPrivateDnsResolver) UnmarshalJSON(b []byte) error

type PrivateNetworkGatewayPrivateDnsResolverResolverType

type PrivateNetworkGatewayPrivateDnsResolverResolverType string

The supported resolver types.

const PrivateNetworkGatewayPrivateDnsResolverResolverTypeIpAddress PrivateNetworkGatewayPrivateDnsResolverResolverType = `IP_ADDRESS`

func (*PrivateNetworkGatewayPrivateDnsResolverResolverType) Set

Set raw string value and validate it against allowed values

func (*PrivateNetworkGatewayPrivateDnsResolverResolverType) String

String representation for fmt.Print

func (*PrivateNetworkGatewayPrivateDnsResolverResolverType) Type

Type always returns PrivateNetworkGatewayPrivateDnsResolverResolverType to satisfy [pflag.Value] interface

func (*PrivateNetworkGatewayPrivateDnsResolverResolverType) Values

Values returns all possible values for PrivateNetworkGatewayPrivateDnsResolverResolverType.

There is no guarantee on the order of the values in the slice.

type PrivateNetworkGatewayTrafficMode

type PrivateNetworkGatewayTrafficMode string

The traffic routed through the gateway.

const PrivateNetworkGatewayTrafficModeAllTraffic PrivateNetworkGatewayTrafficMode = `ALL_TRAFFIC`
const PrivateNetworkGatewayTrafficModeSpecificDestinations PrivateNetworkGatewayTrafficMode = `SPECIFIC_DESTINATIONS`

func (*PrivateNetworkGatewayTrafficMode) Set

Set raw string value and validate it against allowed values

func (*PrivateNetworkGatewayTrafficMode) String

String representation for fmt.Print

func (*PrivateNetworkGatewayTrafficMode) Type

Type always returns PrivateNetworkGatewayTrafficMode to satisfy [pflag.Value] interface

func (*PrivateNetworkGatewayTrafficMode) Values

Values returns all possible values for PrivateNetworkGatewayTrafficMode.

There is no guarantee on the order of the values in the slice.

type PrivateNetworkGatewaysAPI

type PrivateNetworkGatewaysAPI struct {
	// contains filtered or unexported fields
}

These APIs manage private network gateways under network connectivity configurations.

func NewPrivateNetworkGateways

func NewPrivateNetworkGateways(client *client.DatabricksClient) *PrivateNetworkGatewaysAPI

func (*PrivateNetworkGatewaysAPI) DeletePrivateNetworkGateway

func (a *PrivateNetworkGatewaysAPI) DeletePrivateNetworkGateway(ctx context.Context, request DeletePrivateNetworkGatewayRequest) error

func (*PrivateNetworkGatewaysAPI) GetPrivateNetworkGateway

func (a *PrivateNetworkGatewaysAPI) GetPrivateNetworkGateway(ctx context.Context, request GetPrivateNetworkGatewayRequest) (*PrivateNetworkGateway, error)

func (*PrivateNetworkGatewaysAPI) GetPrivateNetworkGatewayOperation

func (a *PrivateNetworkGatewaysAPI) GetPrivateNetworkGatewayOperation(ctx context.Context, request GetOperationRequest) (*Operation, error)

func (*PrivateNetworkGatewaysAPI) ListPrivateNetworkGateways

func (a *PrivateNetworkGatewaysAPI) ListPrivateNetworkGateways(ctx context.Context, request ListPrivateNetworkGatewaysRequest) listing.Iterator[PrivateNetworkGateway]

Lists private network gateways under a network connectivity configuration.

func (*PrivateNetworkGatewaysAPI) ListPrivateNetworkGatewaysAll

func (a *PrivateNetworkGatewaysAPI) ListPrivateNetworkGatewaysAll(ctx context.Context, request ListPrivateNetworkGatewaysRequest) ([]PrivateNetworkGateway, error)

Lists private network gateways under a network connectivity configuration.

func (*PrivateNetworkGatewaysAPI) UpdatePrivateNetworkGateway

func (a *PrivateNetworkGatewaysAPI) UpdatePrivateNetworkGateway(ctx context.Context, request UpdatePrivateNetworkGatewayRequest) (*PrivateNetworkGateway, error)

type PrivateNetworkGatewaysInterface

type PrivateNetworkGatewaysInterface interface {
	CreatePrivateNetworkGateway(ctx context.Context, request CreatePrivateNetworkGatewayRequest) (CreatePrivateNetworkGatewayOperationInterface, error)

	// Permanently deletes a private network gateway.
	DeletePrivateNetworkGateway(ctx context.Context, request DeletePrivateNetworkGatewayRequest) error

	// Gets a private network gateway.
	GetPrivateNetworkGateway(ctx context.Context, request GetPrivateNetworkGatewayRequest) (*PrivateNetworkGateway, error)

	// Gets the status of a private network gateway create operation.
	GetPrivateNetworkGatewayOperation(ctx context.Context, request GetOperationRequest) (*Operation, error)

	// Lists private network gateways under a network connectivity configuration.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListPrivateNetworkGateways(ctx context.Context, request ListPrivateNetworkGatewaysRequest) listing.Iterator[PrivateNetworkGateway]

	// Lists private network gateways under a network connectivity configuration.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListPrivateNetworkGatewaysAll(ctx context.Context, request ListPrivateNetworkGatewaysRequest) ([]PrivateNetworkGateway, error)

	// Updates a private network gateway.
	UpdatePrivateNetworkGateway(ctx context.Context, request UpdatePrivateNetworkGatewayRequest) (*PrivateNetworkGateway, error)
}

type PrivateNetworkGatewaysService deprecated

type PrivateNetworkGatewaysService interface {

	// Creates a private network gateway.
	CreatePrivateNetworkGateway(ctx context.Context, request CreatePrivateNetworkGatewayRequest) (*Operation, error)

	// Permanently deletes a private network gateway.
	DeletePrivateNetworkGateway(ctx context.Context, request DeletePrivateNetworkGatewayRequest) error

	// Gets a private network gateway.
	GetPrivateNetworkGateway(ctx context.Context, request GetPrivateNetworkGatewayRequest) (*PrivateNetworkGateway, error)

	// Gets the status of a private network gateway create operation.
	GetPrivateNetworkGatewayOperation(ctx context.Context, request GetOperationRequest) (*Operation, error)

	// Lists private network gateways under a network connectivity
	// configuration.
	ListPrivateNetworkGateways(ctx context.Context, request ListPrivateNetworkGatewaysRequest) (*ListPrivateNetworkGatewaysResponse, error)

	// Updates a private network gateway.
	UpdatePrivateNetworkGateway(ctx context.Context, request UpdatePrivateNetworkGatewayRequest) (*PrivateNetworkGateway, error)
}

These APIs manage private network gateways under network connectivity configurations.

Deprecated: Do not use this interface, it will be removed in a future version of the SDK.

type UpdatePrivateNetworkGatewayRequest

type UpdatePrivateNetworkGatewayRequest struct {
	// The canonical resource name of the gateway, in the form
	// `accounts/{account_id}/network-connectivity-configs/{ncc_id}/private-network-gateways/{gateway_id}`.
	Name string `json:"-" url:"-"`
	// The gateway containing the desired mutable field values.
	PrivateNetworkGateway PrivateNetworkGateway `json:"private_network_gateway"`
	// The fields to update.
	UpdateMask fieldmask.FieldMask `json:"-" url:"update_mask"`
}

func (*UpdatePrivateNetworkGatewayRequest) UnmarshalJSON

func (s *UpdatePrivateNetworkGatewayRequest) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL