Documentation
¶
Overview ¶
Manage domains for organizing and discovering data assets.
Index ¶
- type CreateDomainRequest
- type DeleteDomainRequest
- type Domain
- type DomainIcon
- type DomainIconName
- type DomainsAPI
- func (a *DomainsAPI) CreateDomain(ctx context.Context, request CreateDomainRequest) (*Domain, error)
- func (a *DomainsAPI) DeleteDomain(ctx context.Context, request DeleteDomainRequest) error
- func (a *DomainsAPI) GetDomain(ctx context.Context, request GetDomainRequest) (*Domain, error)
- func (a *DomainsAPI) ListDomains(ctx context.Context, request ListDomainsRequest) listing.Iterator[Domain]
- func (a *DomainsAPI) ListDomainsAll(ctx context.Context, request ListDomainsRequest) ([]Domain, error)
- func (a *DomainsAPI) UpdateDomain(ctx context.Context, request UpdateDomainRequest) (*Domain, error)
- type DomainsInterface
- type DomainsServicedeprecated
- type GetDomainRequest
- type ListDomainsRequest
- type ListDomainsResponse
- type UpdateDomainRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDomainRequest ¶
type CreateDomainRequest struct {
Domain Domain `json:"domain"`
// Client-supplied resource ID for the new domain. If omitted, the server
// generates one.
DomainId string `json:"-" url:"domain_id,omitempty"`
ForceSendFields []string `json:"-" url:"-"`
}
func (CreateDomainRequest) MarshalJSON ¶
func (s CreateDomainRequest) MarshalJSON() ([]byte, error)
func (*CreateDomainRequest) UnmarshalJSON ¶
func (s *CreateDomainRequest) UnmarshalJSON(b []byte) error
type DeleteDomainRequest ¶
type DeleteDomainRequest struct {
// When false (default), DeleteDomain is rejected with FAILED_PRECONDITION
// if the domain still has Glossary pages. When true, those pages are
// deleted first and then the domain is removed.
Force bool `json:"-" url:"force,omitempty"`
// Full resource name of the domain to delete. Format: `domains/{domain_id}`
Name string `json:"-" url:"-"`
ForceSendFields []string `json:"-" url:"-"`
}
func (DeleteDomainRequest) MarshalJSON ¶
func (s DeleteDomainRequest) MarshalJSON() ([]byte, error)
func (*DeleteDomainRequest) UnmarshalJSON ¶
func (s *DeleteDomainRequest) UnmarshalJSON(b []byte) error
type Domain ¶
type Domain struct {
// Principal IDs of the business owners (users, groups, or service
// principals).
BusinessOwnerIds []int64 `json:"business_owner_ids,omitempty"`
// Timestamp when the domain was created.
CreateTime *time.Time `json:"create_time,omitempty"`
// Full description (max 4096 chars)
Description string `json:"description,omitempty"`
// Unique identifier for the domain. If omitted at Create, the server
// generates one.
DomainId string `json:"domain_id,omitempty"`
// Whether to mark the domain as a draft. If omitted on Create, the server
// applies a default; the resolved value is returned in `effective_draft`.
Draft bool `json:"draft,omitempty"`
// Resolved draft state of the domain.
EffectiveDraft bool `json:"effective_draft,omitempty"`
// Icon to display for the domain.
Icon *DomainIcon `json:"icon,omitempty"`
// Full resource name of the domain. The primary identifier for this
// resource. Format: `domains/{domain_id}` Identifies the domain on get,
// update, and delete. Not an input on create — to choose the id, set
// `CreateDomainRequest.domain_id`.
Name string `json:"name,omitempty"`
// Domain ID of the parent. If absent, this is a top-level domain. If
// present, this domain is a subdomain of the specified parent.
ParentDomainId string `json:"parent_domain_id,omitempty"`
// Short description (max 280 chars)
Subtitle string `json:"subtitle,omitempty"`
// Governed tag key associated with this domain.
TagKey string `json:"tag_key"`
// Principal IDs of the technical owners (users, groups, or service
// principals).
TechnicalOwnerIds []int64 `json:"technical_owner_ids,omitempty"`
// Timestamp when the domain was last updated.
UpdateTime *time.Time `json:"update_time,omitempty"`
ForceSendFields []string `json:"-" url:"-"`
}
func (Domain) MarshalJSON ¶
func (*Domain) UnmarshalJSON ¶
type DomainIcon ¶
type DomainIcon struct {
// Hex color code with # prefix (e.g., "#FF5733").
Color string `json:"color,omitempty"`
Name DomainIconName `json:"name,omitempty"`
ForceSendFields []string `json:"-" url:"-"`
}
Icon configuration for a domain.
func (DomainIcon) MarshalJSON ¶
func (s DomainIcon) MarshalJSON() ([]byte, error)
func (*DomainIcon) UnmarshalJSON ¶
func (s *DomainIcon) UnmarshalJSON(b []byte) error
type DomainIconName ¶
type DomainIconName string
Available icon names for a domain.
const DomainIconNameAddressBook DomainIconName = `ADDRESS_BOOK`
const DomainIconNameAlarm DomainIconName = `ALARM`
const DomainIconNameArrowsIn DomainIconName = `ARROWS_IN`
const DomainIconNameAtom DomainIconName = `ATOM`
const DomainIconNameBalloon DomainIconName = `BALLOON`
const DomainIconNameBank DomainIconName = `BANK`
const DomainIconNameBarricade DomainIconName = `BARRICADE`
const DomainIconNameBasket DomainIconName = `BASKET`
const DomainIconNameBridge DomainIconName = `BRIDGE`
const DomainIconNameCactus DomainIconName = `CACTUS`
const DomainIconNameCallBell DomainIconName = `CALL_BELL`
const DomainIconNameCarrot DomainIconName = `CARROT`
const DomainIconNameChartPieSlice DomainIconName = `CHART_PIE_SLICE`
const DomainIconNameCity DomainIconName = `CITY`
const DomainIconNameCloud DomainIconName = `CLOUD`
const DomainIconNameCoins DomainIconName = `COINS`
const DomainIconNameCompassRose DomainIconName = `COMPASS_ROSE`
const DomainIconNameCraneTower DomainIconName = `CRANE_TOWER`
const DomainIconNameCrown DomainIconName = `CROWN`
const DomainIconNameCubeTransparent DomainIconName = `CUBE_TRANSPARENT`
const DomainIconNameFaders DomainIconName = `FADERS`
const DomainIconNameFlagBannerFold DomainIconName = `FLAG_BANNER_FOLD`
const DomainIconNameFlagCheckered DomainIconName = `FLAG_CHECKERED`
const DomainIconNameGavel DomainIconName = `GAVEL`
const DomainIconNameHamburger DomainIconName = `HAMBURGER`
const DomainIconNameHeadCircuit DomainIconName = `HEAD_CIRCUIT`
const DomainIconNameHourglassHigh DomainIconName = `HOURGLASS_HIGH`
const DomainIconNameIntersectThree DomainIconName = `INTERSECT_THREE`
const DomainIconNameMicroscope DomainIconName = `MICROSCOPE`
const DomainIconNameMoonStars DomainIconName = `MOON_STARS`
const DomainIconNamePackage DomainIconName = `PACKAGE`
const DomainIconNameParachute DomainIconName = `PARACHUTE`
const DomainIconNamePepper DomainIconName = `PEPPER`
const DomainIconNamePiggyBank DomainIconName = `PIGGY_BANK`
const DomainIconNamePill DomainIconName = `PILL`
const DomainIconNamePlanet DomainIconName = `PLANET`
const DomainIconNamePlant DomainIconName = `PLANT`
const DomainIconNamePlugsConnected DomainIconName = `PLUGS_CONNECTED`
const DomainIconNamePopcorn DomainIconName = `POPCORN`
const DomainIconNamePresentationChart DomainIconName = `PRESENTATION_CHART`
const DomainIconNamePuzzlePiece DomainIconName = `PUZZLE_PIECE`
const DomainIconNameRainbow DomainIconName = `RAINBOW`
const DomainIconNameRanking DomainIconName = `RANKING`
const DomainIconNameReceipt DomainIconName = `RECEIPT`
const DomainIconNameRocket DomainIconName = `ROCKET`
const DomainIconNameRuler DomainIconName = `RULER`
const DomainIconNameSailboat DomainIconName = `SAILBOAT`
const DomainIconNameScales DomainIconName = `SCALES`
const DomainIconNameScanSmiley DomainIconName = `SCAN_SMILEY`
const DomainIconNameScroll DomainIconName = `SCROLL`
const DomainIconNameShieldCheckered DomainIconName = `SHIELD_CHECKERED`
const DomainIconNameSneaker DomainIconName = `SNEAKER`
const DomainIconNameSnowflake DomainIconName = `SNOWFLAKE`
const DomainIconNameSolarRoof DomainIconName = `SOLAR_ROOF`
const DomainIconNameSpeedometer DomainIconName = `SPEEDOMETER`
const DomainIconNameStamp DomainIconName = `STAMP`
const DomainIconNameSteps DomainIconName = `STEPS`
const DomainIconNameStrategy DomainIconName = `STRATEGY`
const DomainIconNameSword DomainIconName = `SWORD`
const DomainIconNameTelevisionSimple DomainIconName = `TELEVISION_SIMPLE`
const DomainIconNameTent DomainIconName = `TENT`
const DomainIconNameTicket DomainIconName = `TICKET`
const DomainIconNameTractor DomainIconName = `TRACTOR`
const DomainIconNameTrafficCone DomainIconName = `TRAFFIC_CONE`
const DomainIconNameTrain DomainIconName = `TRAIN`
const DomainIconNameTreeEvergreen DomainIconName = `TREE_EVERGREEN`
const DomainIconNameTreeStructure DomainIconName = `TREE_STRUCTURE`
const DomainIconNameTrolleySuitcase DomainIconName = `TROLLEY_SUITCASE`
const DomainIconNameTrophy DomainIconName = `TROPHY`
const DomainIconNameTruckTrailer DomainIconName = `TRUCK_TRAILER`
const DomainIconNameUsersThree DomainIconName = `USERS_THREE`
const DomainIconNameVectorThree DomainIconName = `VECTOR_THREE`
func (*DomainIconName) Set ¶
func (f *DomainIconName) Set(v string) error
Set raw string value and validate it against allowed values
func (*DomainIconName) String ¶
func (f *DomainIconName) String() string
String representation for fmt.Print
func (*DomainIconName) Type ¶
func (f *DomainIconName) Type() string
Type always returns DomainIconName to satisfy [pflag.Value] interface
func (*DomainIconName) Values ¶
func (f *DomainIconName) Values() []DomainIconName
Values returns all possible values for DomainIconName.
There is no guarantee on the order of the values in the slice.
type DomainsAPI ¶
type DomainsAPI struct {
// contains filtered or unexported fields
}
Manage domains for organizing and discovering data assets.
func NewDomains ¶
func NewDomains(client *client.DatabricksClient) *DomainsAPI
func (*DomainsAPI) CreateDomain ¶
func (a *DomainsAPI) CreateDomain(ctx context.Context, request CreateDomainRequest) (*Domain, error)
func (*DomainsAPI) DeleteDomain ¶
func (a *DomainsAPI) DeleteDomain(ctx context.Context, request DeleteDomainRequest) error
func (*DomainsAPI) GetDomain ¶
func (a *DomainsAPI) GetDomain(ctx context.Context, request GetDomainRequest) (*Domain, error)
func (*DomainsAPI) ListDomains ¶
func (a *DomainsAPI) ListDomains(ctx context.Context, request ListDomainsRequest) listing.Iterator[Domain]
List domains in the account. Set `parent_domain_id` to return only the direct subdomains of a given domain.
Authorization: external callers must have the `MANAGE DISCOVERY` permission; only domains the caller is authorized to read are returned.
func (*DomainsAPI) ListDomainsAll ¶
func (a *DomainsAPI) ListDomainsAll(ctx context.Context, request ListDomainsRequest) ([]Domain, error)
List domains in the account. Set `parent_domain_id` to return only the direct subdomains of a given domain.
Authorization: external callers must have the `MANAGE DISCOVERY` permission; only domains the caller is authorized to read are returned.
func (*DomainsAPI) UpdateDomain ¶
func (a *DomainsAPI) UpdateDomain(ctx context.Context, request UpdateDomainRequest) (*Domain, error)
type DomainsInterface ¶
type DomainsInterface interface {
// Create a domain. If `domain_id` is omitted, the server generates one.
CreateDomain(ctx context.Context, request CreateDomainRequest) (*Domain, error)
// Delete a domain. By default the request fails if the domain still has
// Glossary pages; set `force` to delete those pages along with the domain.
DeleteDomain(ctx context.Context, request DeleteDomainRequest) error
// Get a domain by resource name.
//
// Authorization: external callers must have the `MANAGE DISCOVERY` permission.
GetDomain(ctx context.Context, request GetDomainRequest) (*Domain, error)
// List domains in the account. Set `parent_domain_id` to return only the direct
// subdomains of a given domain.
//
// Authorization: external callers must have the `MANAGE DISCOVERY` permission;
// only domains the caller is authorized to read are returned.
//
// This method is generated by Databricks SDK Code Generator.
ListDomains(ctx context.Context, request ListDomainsRequest) listing.Iterator[Domain]
// List domains in the account. Set `parent_domain_id` to return only the direct
// subdomains of a given domain.
//
// Authorization: external callers must have the `MANAGE DISCOVERY` permission;
// only domains the caller is authorized to read are returned.
//
// This method is generated by Databricks SDK Code Generator.
ListDomainsAll(ctx context.Context, request ListDomainsRequest) ([]Domain, error)
// Update a domain. `update_mask` selects which fields to modify; the domain is
// identified by its resource `name`.
UpdateDomain(ctx context.Context, request UpdateDomainRequest) (*Domain, error)
}
type DomainsService
deprecated
type DomainsService interface {
// Create a domain. If `domain_id` is omitted, the server generates one.
CreateDomain(ctx context.Context, request CreateDomainRequest) (*Domain, error)
// Delete a domain. By default the request fails if the domain still has
// Glossary pages; set `force` to delete those pages along with the domain.
DeleteDomain(ctx context.Context, request DeleteDomainRequest) error
// Get a domain by resource name.
//
// Authorization: external callers must have the `MANAGE DISCOVERY`
// permission.
GetDomain(ctx context.Context, request GetDomainRequest) (*Domain, error)
// List domains in the account. Set `parent_domain_id` to return only the
// direct subdomains of a given domain.
//
// Authorization: external callers must have the `MANAGE DISCOVERY`
// permission; only domains the caller is authorized to read are returned.
ListDomains(ctx context.Context, request ListDomainsRequest) (*ListDomainsResponse, error)
// Update a domain. `update_mask` selects which fields to modify; the domain
// is identified by its resource `name`.
UpdateDomain(ctx context.Context, request UpdateDomainRequest) (*Domain, error)
}
Manage domains for organizing and discovering data assets.
Deprecated: Do not use this interface, it will be removed in a future version of the SDK.
type GetDomainRequest ¶
type GetDomainRequest struct {
// Full resource name of the domain to retrieve. Format:
// `domains/{domain_id}`
Name string `json:"-" url:"-"`
}
func (*GetDomainRequest) UnmarshalJSON ¶
func (s *GetDomainRequest) UnmarshalJSON(b []byte) error
type ListDomainsRequest ¶
type ListDomainsRequest struct {
PageSize int `json:"-" url:"page_size,omitempty"`
PageToken string `json:"-" url:"page_token,omitempty"`
// Filter by parent domain. - Absent: return all domains regardless of
// hierarchy. - Present: return only direct children of the specified
// domain.
ParentDomainId string `json:"-" url:"parent_domain_id,omitempty"`
ForceSendFields []string `json:"-" url:"-"`
}
func (ListDomainsRequest) MarshalJSON ¶
func (s ListDomainsRequest) MarshalJSON() ([]byte, error)
func (*ListDomainsRequest) UnmarshalJSON ¶
func (s *ListDomainsRequest) UnmarshalJSON(b []byte) error
type ListDomainsResponse ¶
type ListDomainsResponse struct {
Domains []Domain `json:"domains,omitempty"`
NextPageToken string `json:"next_page_token,omitempty"`
ForceSendFields []string `json:"-" url:"-"`
}
func (ListDomainsResponse) MarshalJSON ¶
func (s ListDomainsResponse) MarshalJSON() ([]byte, error)
func (*ListDomainsResponse) UnmarshalJSON ¶
func (s *ListDomainsResponse) UnmarshalJSON(b []byte) error
type UpdateDomainRequest ¶
type UpdateDomainRequest struct {
Domain Domain `json:"domain"`
// Full resource name of the domain. The primary identifier for this
// resource. Format: `domains/{domain_id}` Identifies the domain on get,
// update, and delete. Not an input on create — to choose the id, set
// `CreateDomainRequest.domain_id`.
Name string `json:"-" url:"-"`
// The field mask must be a single string, with multiple fields separated by
// commas (no spaces). The field path is relative to the resource object,
// using a dot (`.`) to navigate sub-fields (e.g., `author.given_name`).
// Specification of elements in sequence or map fields is not allowed, as
// only the entire collection field can be specified. Field names must
// exactly match the resource field names.
//
// A field mask of `*` indicates full replacement. It’s recommended to
// always explicitly list the fields being updated and avoid using `*`
// wildcards, as it can lead to unintended results if the API changes in the
// future.
UpdateMask fieldmask.FieldMask `json:"-" url:"update_mask"`
}
func (*UpdateDomainRequest) UnmarshalJSON ¶
func (s *UpdateDomainRequest) UnmarshalJSON(b []byte) error