cleanrooms

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Overview

These APIs allow you to manage Clean Room Assets, Clean Room Task Runs, Clean Rooms, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanRoom

type CleanRoom struct {
	// Whether clean room access is restricted due to [CSP]
	//
	// [CSP]: https://docs.databricks.com/en/security/privacy/security-profile.html
	// Wire name: 'access_restricted'
	AccessRestricted CleanRoomAccessRestricted `json:"access_restricted,omitempty"`

	// Wire name: 'comment'
	Comment string `json:"comment,omitempty"`
	// When the clean room was created, in epoch milliseconds.
	// Wire name: 'created_at'
	CreatedAt int64 `json:"created_at,omitempty"`
	// The alias of the collaborator tied to the local clean room.
	// Wire name: 'local_collaborator_alias'
	LocalCollaboratorAlias string `json:"local_collaborator_alias,omitempty"`
	// The name of the clean room. It should follow [UC securable naming
	// requirements].
	//
	// [UC securable naming requirements]: https://docs.databricks.com/en/data-governance/unity-catalog/index.html#securable-object-naming-requirements
	// Wire name: 'name'
	Name string `json:"name,omitempty"`
	// Output catalog of the clean room. It is an output only field. Output
	// catalog is manipulated using the separate CreateCleanRoomOutputCatalog
	// API.
	// Wire name: 'output_catalog'
	OutputCatalog *CleanRoomOutputCatalog `json:"output_catalog,omitempty"`
	// This is Databricks username of the owner of the local clean room
	// securable for permission management.
	// Wire name: 'owner'
	Owner string `json:"owner,omitempty"`
	// Central clean room details. During creation, users need to specify
	// cloud_vendor, region, and collaborators.global_metastore_id. This field
	// will not be filled in the ListCleanRooms call.
	// Wire name: 'remote_detailed_info'
	RemoteDetailedInfo *CleanRoomRemoteDetail `json:"remote_detailed_info,omitempty"`
	// Clean room status.
	// Wire name: 'status'
	Status CleanRoomStatusEnum `json:"status,omitempty"`
	// When the clean room was last updated, in epoch milliseconds.
	// Wire name: 'updated_at'
	UpdatedAt int64 `json:"updated_at,omitempty"`

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

func (CleanRoom) MarshalJSON

func (st CleanRoom) MarshalJSON() ([]byte, error)

func (*CleanRoom) UnmarshalJSON

func (st *CleanRoom) UnmarshalJSON(b []byte) error

type CleanRoomAccessRestricted

type CleanRoomAccessRestricted string
const CleanRoomAccessRestrictedCspMismatch CleanRoomAccessRestricted = `CSP_MISMATCH`
const CleanRoomAccessRestrictedNoRestriction CleanRoomAccessRestricted = `NO_RESTRICTION`

func (*CleanRoomAccessRestricted) Set

Set raw string value and validate it against allowed values

func (*CleanRoomAccessRestricted) String

func (f *CleanRoomAccessRestricted) String() string

String representation for fmt.Print

func (*CleanRoomAccessRestricted) Type

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

func (*CleanRoomAccessRestricted) Values added in v0.72.0

Values returns all possible values for CleanRoomAccessRestricted.

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

type CleanRoomAsset

type CleanRoomAsset struct {
	// When the asset is added to the clean room, in epoch milliseconds.
	// Wire name: 'added_at'
	AddedAt int64 `json:"added_at,omitempty"`
	// The type of the asset.
	// Wire name: 'asset_type'
	AssetType CleanRoomAssetAssetType `json:"asset_type,omitempty"`
	// The name of the clean room this asset belongs to. This is an output-only
	// field to ensure proper resource identification.
	// Wire name: 'clean_room_name'
	CleanRoomName string `json:"clean_room_name,omitempty"`
	// Foreign table details available to all collaborators of the clean room.
	// Present if and only if **asset_type** is **FOREIGN_TABLE**
	// Wire name: 'foreign_table'
	ForeignTable *CleanRoomAssetForeignTable `json:"foreign_table,omitempty"`
	// Local details for a foreign that are only available to its owner. Present
	// if and only if **asset_type** is **FOREIGN_TABLE**
	// Wire name: 'foreign_table_local_details'
	ForeignTableLocalDetails *CleanRoomAssetForeignTableLocalDetails `json:"foreign_table_local_details,omitempty"`
	// A fully qualified name that uniquely identifies the asset within the
	// clean room. This is also the name displayed in the clean room UI.
	//
	// For UC securable assets (tables, volumes, etc.), the format is
	// *shared_catalog*.*shared_schema*.*asset_name*
	//
	// For notebooks, the name is the notebook file name.
	// Wire name: 'name'
	Name string `json:"name,omitempty"`
	// Notebook details available to all collaborators of the clean room.
	// Present if and only if **asset_type** is **NOTEBOOK_FILE**
	// Wire name: 'notebook'
	Notebook *CleanRoomAssetNotebook `json:"notebook,omitempty"`
	// The alias of the collaborator who owns this asset
	// Wire name: 'owner_collaborator_alias'
	OwnerCollaboratorAlias string `json:"owner_collaborator_alias,omitempty"`
	// Status of the asset
	// Wire name: 'status'
	Status CleanRoomAssetStatusEnum `json:"status,omitempty"`
	// Table details available to all collaborators of the clean room. Present
	// if and only if **asset_type** is **TABLE**
	// Wire name: 'table'
	Table *CleanRoomAssetTable `json:"table,omitempty"`
	// Local details for a table that are only available to its owner. Present
	// if and only if **asset_type** is **TABLE**
	// Wire name: 'table_local_details'
	TableLocalDetails *CleanRoomAssetTableLocalDetails `json:"table_local_details,omitempty"`
	// View details available to all collaborators of the clean room. Present if
	// and only if **asset_type** is **VIEW**
	// Wire name: 'view'
	View *CleanRoomAssetView `json:"view,omitempty"`
	// Local details for a view that are only available to its owner. Present if
	// and only if **asset_type** is **VIEW**
	// Wire name: 'view_local_details'
	ViewLocalDetails *CleanRoomAssetViewLocalDetails `json:"view_local_details,omitempty"`
	// Local details for a volume that are only available to its owner. Present
	// if and only if **asset_type** is **VOLUME**
	// Wire name: 'volume_local_details'
	VolumeLocalDetails *CleanRoomAssetVolumeLocalDetails `json:"volume_local_details,omitempty"`

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

Metadata of the clean room asset

func (CleanRoomAsset) MarshalJSON

func (st CleanRoomAsset) MarshalJSON() ([]byte, error)

func (*CleanRoomAsset) UnmarshalJSON

func (st *CleanRoomAsset) UnmarshalJSON(b []byte) error

type CleanRoomAssetAssetType

type CleanRoomAssetAssetType string
const CleanRoomAssetAssetTypeForeignTable CleanRoomAssetAssetType = `FOREIGN_TABLE`
const CleanRoomAssetAssetTypeNotebookFile CleanRoomAssetAssetType = `NOTEBOOK_FILE`
const CleanRoomAssetAssetTypeTable CleanRoomAssetAssetType = `TABLE`
const CleanRoomAssetAssetTypeView CleanRoomAssetAssetType = `VIEW`
const CleanRoomAssetAssetTypeVolume CleanRoomAssetAssetType = `VOLUME`

func (*CleanRoomAssetAssetType) Set

Set raw string value and validate it against allowed values

func (*CleanRoomAssetAssetType) String

func (f *CleanRoomAssetAssetType) String() string

String representation for fmt.Print

func (*CleanRoomAssetAssetType) Type

func (f *CleanRoomAssetAssetType) Type() string

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

func (*CleanRoomAssetAssetType) Values added in v0.72.0

Values returns all possible values for CleanRoomAssetAssetType.

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

type CleanRoomAssetForeignTable

type CleanRoomAssetForeignTable struct {
	// The metadata information of the columns in the foreign table
	// Wire name: 'columns'
	Columns []catalog.ColumnInfo `json:"columns,omitempty"`
}

func (CleanRoomAssetForeignTable) MarshalJSON added in v0.73.0

func (st CleanRoomAssetForeignTable) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetForeignTable) UnmarshalJSON added in v0.73.0

func (st *CleanRoomAssetForeignTable) UnmarshalJSON(b []byte) error

type CleanRoomAssetForeignTableLocalDetails

type CleanRoomAssetForeignTableLocalDetails struct {
	// The fully qualified name of the foreign table in its owner's local
	// metastore, in the format of *catalog*.*schema*.*foreign_table_name*
	// Wire name: 'local_name'
	LocalName string `json:"local_name,omitempty"`

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

func (CleanRoomAssetForeignTableLocalDetails) MarshalJSON

func (st CleanRoomAssetForeignTableLocalDetails) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetForeignTableLocalDetails) UnmarshalJSON

func (st *CleanRoomAssetForeignTableLocalDetails) UnmarshalJSON(b []byte) error

type CleanRoomAssetNotebook

type CleanRoomAssetNotebook struct {
	// Server generated etag that represents the notebook version.
	// Wire name: 'etag'
	Etag string `json:"etag,omitempty"`
	// Base 64 representation of the notebook contents. This is the same format
	// as returned by :method:workspace/export with the format of **HTML**.
	// Wire name: 'notebook_content'
	NotebookContent string `json:"notebook_content,omitempty"`
	// top-level status derived from all reviews
	// Wire name: 'review_state'
	ReviewState CleanRoomNotebookReviewNotebookReviewState `json:"review_state,omitempty"`
	// All existing approvals or rejections
	// Wire name: 'reviews'
	Reviews []CleanRoomNotebookReview `json:"reviews,omitempty"`
	// collaborators that can run the notebook
	// Wire name: 'runner_collaborator_aliases'
	RunnerCollaboratorAliases []string `json:"runner_collaborator_aliases,omitempty"`

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

func (CleanRoomAssetNotebook) MarshalJSON

func (st CleanRoomAssetNotebook) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetNotebook) UnmarshalJSON

func (st *CleanRoomAssetNotebook) UnmarshalJSON(b []byte) error

type CleanRoomAssetStatusEnum

type CleanRoomAssetStatusEnum string
const CleanRoomAssetStatusEnumActive CleanRoomAssetStatusEnum = `ACTIVE`
const CleanRoomAssetStatusEnumPending CleanRoomAssetStatusEnum = `PENDING`
const CleanRoomAssetStatusEnumPermissionDenied CleanRoomAssetStatusEnum = `PERMISSION_DENIED`

func (*CleanRoomAssetStatusEnum) Set

Set raw string value and validate it against allowed values

func (*CleanRoomAssetStatusEnum) String

func (f *CleanRoomAssetStatusEnum) String() string

String representation for fmt.Print

func (*CleanRoomAssetStatusEnum) Type

func (f *CleanRoomAssetStatusEnum) Type() string

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

func (*CleanRoomAssetStatusEnum) Values added in v0.72.0

Values returns all possible values for CleanRoomAssetStatusEnum.

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

type CleanRoomAssetTable

type CleanRoomAssetTable struct {
	// The metadata information of the columns in the table
	// Wire name: 'columns'
	Columns []catalog.ColumnInfo `json:"columns,omitempty"`
}

func (CleanRoomAssetTable) MarshalJSON added in v0.73.0

func (st CleanRoomAssetTable) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetTable) UnmarshalJSON added in v0.73.0

func (st *CleanRoomAssetTable) UnmarshalJSON(b []byte) error

type CleanRoomAssetTableLocalDetails

type CleanRoomAssetTableLocalDetails struct {
	// The fully qualified name of the table in its owner's local metastore, in
	// the format of *catalog*.*schema*.*table_name*
	// Wire name: 'local_name'
	LocalName string `json:"local_name,omitempty"`
	// Partition filtering specification for a shared table.
	// Wire name: 'partitions'
	Partitions []sharing.Partition `json:"partitions,omitempty"`

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

func (CleanRoomAssetTableLocalDetails) MarshalJSON

func (st CleanRoomAssetTableLocalDetails) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetTableLocalDetails) UnmarshalJSON

func (st *CleanRoomAssetTableLocalDetails) UnmarshalJSON(b []byte) error

type CleanRoomAssetView

type CleanRoomAssetView struct {
	// The metadata information of the columns in the view
	// Wire name: 'columns'
	Columns []catalog.ColumnInfo `json:"columns,omitempty"`
}

func (CleanRoomAssetView) MarshalJSON added in v0.73.0

func (st CleanRoomAssetView) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetView) UnmarshalJSON added in v0.73.0

func (st *CleanRoomAssetView) UnmarshalJSON(b []byte) error

type CleanRoomAssetViewLocalDetails

type CleanRoomAssetViewLocalDetails struct {
	// The fully qualified name of the view in its owner's local metastore, in
	// the format of *catalog*.*schema*.*view_name*
	// Wire name: 'local_name'
	LocalName string `json:"local_name,omitempty"`

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

func (CleanRoomAssetViewLocalDetails) MarshalJSON

func (st CleanRoomAssetViewLocalDetails) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetViewLocalDetails) UnmarshalJSON

func (st *CleanRoomAssetViewLocalDetails) UnmarshalJSON(b []byte) error

type CleanRoomAssetVolumeLocalDetails

type CleanRoomAssetVolumeLocalDetails struct {
	// The fully qualified name of the volume in its owner's local metastore, in
	// the format of *catalog*.*schema*.*volume_name*
	// Wire name: 'local_name'
	LocalName string `json:"local_name,omitempty"`

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

func (CleanRoomAssetVolumeLocalDetails) MarshalJSON

func (st CleanRoomAssetVolumeLocalDetails) MarshalJSON() ([]byte, error)

func (*CleanRoomAssetVolumeLocalDetails) UnmarshalJSON

func (st *CleanRoomAssetVolumeLocalDetails) UnmarshalJSON(b []byte) error

type CleanRoomAssetsAPI

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

Clean room assets are data and code objects — Tables, volumes, and notebooks that are shared with the clean room.

func NewCleanRoomAssets

func NewCleanRoomAssets(client *client.DatabricksClient) *CleanRoomAssetsAPI

func (*CleanRoomAssetsAPI) Create

func (a *CleanRoomAssetsAPI) Create(ctx context.Context, request CreateCleanRoomAssetRequest) (*CleanRoomAsset, error)

func (*CleanRoomAssetsAPI) Delete

func (a *CleanRoomAssetsAPI) Delete(ctx context.Context, request DeleteCleanRoomAssetRequest) error

func (*CleanRoomAssetsAPI) DeleteByCleanRoomNameAndAssetTypeAndName added in v0.72.0

func (a *CleanRoomAssetsAPI) DeleteByCleanRoomNameAndAssetTypeAndName(ctx context.Context, cleanRoomName string, assetType CleanRoomAssetAssetType, name string) error

Delete a clean room asset - unshare/remove the asset from the clean room

func (*CleanRoomAssetsAPI) Get

func (a *CleanRoomAssetsAPI) Get(ctx context.Context, request GetCleanRoomAssetRequest) (*CleanRoomAsset, error)

func (*CleanRoomAssetsAPI) GetByCleanRoomNameAndAssetTypeAndName added in v0.72.0

func (a *CleanRoomAssetsAPI) GetByCleanRoomNameAndAssetTypeAndName(ctx context.Context, cleanRoomName string, assetType CleanRoomAssetAssetType, name string) (*CleanRoomAsset, error)

Get the details of a clean room asset by its type and full name.

func (*CleanRoomAssetsAPI) List

func (a *CleanRoomAssetsAPI) List(ctx context.Context, request ListCleanRoomAssetsRequest) listing.Iterator[CleanRoomAsset]

List assets.

func (*CleanRoomAssetsAPI) ListAll

func (a *CleanRoomAssetsAPI) ListAll(ctx context.Context, request ListCleanRoomAssetsRequest) ([]CleanRoomAsset, error)

List assets.

func (*CleanRoomAssetsAPI) ListByCleanRoomName

func (a *CleanRoomAssetsAPI) ListByCleanRoomName(ctx context.Context, cleanRoomName string) (*ListCleanRoomAssetsResponse, error)

List assets.

func (*CleanRoomAssetsAPI) Update

func (a *CleanRoomAssetsAPI) Update(ctx context.Context, request UpdateCleanRoomAssetRequest) (*CleanRoomAsset, error)

type CleanRoomAssetsInterface

type CleanRoomAssetsInterface interface {

	// Create a clean room asset —share an asset like a notebook or table into the
	// clean room. For each UC asset that is added through this method, the clean
	// room owner must also have enough privilege on the asset to consume it. The
	// privilege must be maintained indefinitely for the clean room to be able to
	// access the asset. Typically, you should use a group as the clean room owner.
	Create(ctx context.Context, request CreateCleanRoomAssetRequest) (*CleanRoomAsset, error)

	// Delete a clean room asset - unshare/remove the asset from the clean room
	Delete(ctx context.Context, request DeleteCleanRoomAssetRequest) error

	// Delete a clean room asset - unshare/remove the asset from the clean room
	DeleteByCleanRoomNameAndAssetTypeAndName(ctx context.Context, cleanRoomName string, assetType CleanRoomAssetAssetType, name string) error

	// Get the details of a clean room asset by its type and full name.
	Get(ctx context.Context, request GetCleanRoomAssetRequest) (*CleanRoomAsset, error)

	// Get the details of a clean room asset by its type and full name.
	GetByCleanRoomNameAndAssetTypeAndName(ctx context.Context, cleanRoomName string, assetType CleanRoomAssetAssetType, name string) (*CleanRoomAsset, error)

	// List assets.
	//
	// This method is generated by Databricks SDK Code Generator.
	List(ctx context.Context, request ListCleanRoomAssetsRequest) listing.Iterator[CleanRoomAsset]

	// List assets.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListAll(ctx context.Context, request ListCleanRoomAssetsRequest) ([]CleanRoomAsset, error)

	// List assets.
	ListByCleanRoomName(ctx context.Context, cleanRoomName string) (*ListCleanRoomAssetsResponse, error)

	// Update a clean room asset. For example, updating the content of a notebook;
	// changing the shared partitions of a table; etc.
	Update(ctx context.Context, request UpdateCleanRoomAssetRequest) (*CleanRoomAsset, error)
}

type CleanRoomAssetsService deprecated

type CleanRoomAssetsService interface {

	// Create a clean room asset —share an asset like a notebook or table into
	// the clean room. For each UC asset that is added through this method, the
	// clean room owner must also have enough privilege on the asset to consume
	// it. The privilege must be maintained indefinitely for the clean room to
	// be able to access the asset. Typically, you should use a group as the
	// clean room owner.
	Create(ctx context.Context, request CreateCleanRoomAssetRequest) (*CleanRoomAsset, error)

	// Delete a clean room asset - unshare/remove the asset from the clean room
	Delete(ctx context.Context, request DeleteCleanRoomAssetRequest) error

	// Get the details of a clean room asset by its type and full name.
	Get(ctx context.Context, request GetCleanRoomAssetRequest) (*CleanRoomAsset, error)

	// List assets.
	List(ctx context.Context, request ListCleanRoomAssetsRequest) (*ListCleanRoomAssetsResponse, error)

	// Update a clean room asset. For example, updating the content of a
	// notebook; changing the shared partitions of a table; etc.
	Update(ctx context.Context, request UpdateCleanRoomAssetRequest) (*CleanRoomAsset, error)
}

Clean room assets are data and code objects — Tables, volumes, and notebooks that are shared with the clean room.

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

type CleanRoomCollaborator

type CleanRoomCollaborator struct {
	// Collaborator alias specified by the clean room creator. It is unique
	// across all collaborators of this clean room, and used to derive multiple
	// values internally such as catalog alias and clean room name for single
	// metastore clean rooms. It should follow [UC securable naming
	// requirements].
	//
	// [UC securable naming requirements]: https://docs.databricks.com/en/data-governance/unity-catalog/index.html#securable-object-naming-requirements
	// Wire name: 'collaborator_alias'
	CollaboratorAlias string `json:"collaborator_alias"`
	// Generated display name for the collaborator. In the case of a single
	// metastore clean room, it is the clean room name. For x-metastore clean
	// rooms, it is the organization name of the metastore. It is not restricted
	// to these values and could change in the future
	// Wire name: 'display_name'
	DisplayName string `json:"display_name,omitempty"`
	// The global Unity Catalog metastore id of the collaborator. The identifier
	// is of format cloud:region:metastore-uuid.
	// Wire name: 'global_metastore_id'
	GlobalMetastoreId string `json:"global_metastore_id,omitempty"`
	// Email of the user who is receiving the clean room "invitation". It should
	// be empty for the creator of the clean room, and non-empty for the
	// invitees of the clean room. It is only returned in the output when clean
	// room creator calls GET
	// Wire name: 'invite_recipient_email'
	InviteRecipientEmail string `json:"invite_recipient_email,omitempty"`
	// Workspace ID of the user who is receiving the clean room "invitation".
	// Must be specified if invite_recipient_email is specified. It should be
	// empty when the collaborator is the creator of the clean room.
	// Wire name: 'invite_recipient_workspace_id'
	InviteRecipientWorkspaceId int64 `json:"invite_recipient_workspace_id,omitempty"`
	// [Organization
	// name](:method:metastores/list#metastores-delta_sharing_organization_name)
	// configured in the metastore
	// Wire name: 'organization_name'
	OrganizationName string `json:"organization_name,omitempty"`

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

Publicly visible clean room collaborator.

func (CleanRoomCollaborator) MarshalJSON

func (st CleanRoomCollaborator) MarshalJSON() ([]byte, error)

func (*CleanRoomCollaborator) UnmarshalJSON

func (st *CleanRoomCollaborator) UnmarshalJSON(b []byte) error

type CleanRoomNotebookReview added in v0.56.0

type CleanRoomNotebookReview struct {
	// review comment
	// Wire name: 'comment'
	Comment string `json:"comment,omitempty"`
	// timestamp of when the review was submitted
	// Wire name: 'created_at_millis'
	CreatedAtMillis int64 `json:"created_at_millis,omitempty"`
	// review outcome
	// Wire name: 'review_state'
	ReviewState CleanRoomNotebookReviewNotebookReviewState `json:"review_state,omitempty"`
	// specified when the review was not explicitly made by a user
	// Wire name: 'review_sub_reason'
	ReviewSubReason CleanRoomNotebookReviewNotebookReviewSubReason `json:"review_sub_reason,omitempty"`
	// collaborator alias of the reviewer
	// Wire name: 'reviewer_collaborator_alias'
	ReviewerCollaboratorAlias string `json:"reviewer_collaborator_alias,omitempty"`

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

func (CleanRoomNotebookReview) MarshalJSON added in v0.56.0

func (st CleanRoomNotebookReview) MarshalJSON() ([]byte, error)

func (*CleanRoomNotebookReview) UnmarshalJSON added in v0.56.0

func (st *CleanRoomNotebookReview) UnmarshalJSON(b []byte) error

type CleanRoomNotebookReviewNotebookReviewState added in v0.56.0

type CleanRoomNotebookReviewNotebookReviewState string
const CleanRoomNotebookReviewNotebookReviewStateApproved CleanRoomNotebookReviewNotebookReviewState = `APPROVED`
const CleanRoomNotebookReviewNotebookReviewStatePending CleanRoomNotebookReviewNotebookReviewState = `PENDING`
const CleanRoomNotebookReviewNotebookReviewStateRejected CleanRoomNotebookReviewNotebookReviewState = `REJECTED`

func (*CleanRoomNotebookReviewNotebookReviewState) Set added in v0.56.0

Set raw string value and validate it against allowed values

func (*CleanRoomNotebookReviewNotebookReviewState) String added in v0.56.0

String representation for fmt.Print

func (*CleanRoomNotebookReviewNotebookReviewState) Type added in v0.56.0

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

func (*CleanRoomNotebookReviewNotebookReviewState) Values added in v0.72.0

Values returns all possible values for CleanRoomNotebookReviewNotebookReviewState.

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

type CleanRoomNotebookReviewNotebookReviewSubReason added in v0.70.0

type CleanRoomNotebookReviewNotebookReviewSubReason string
const CleanRoomNotebookReviewNotebookReviewSubReasonAutoApproved CleanRoomNotebookReviewNotebookReviewSubReason = `AUTO_APPROVED`
const CleanRoomNotebookReviewNotebookReviewSubReasonBackfilled CleanRoomNotebookReviewNotebookReviewSubReason = `BACKFILLED`

func (*CleanRoomNotebookReviewNotebookReviewSubReason) Set added in v0.70.0

Set raw string value and validate it against allowed values

func (*CleanRoomNotebookReviewNotebookReviewSubReason) String added in v0.70.0

String representation for fmt.Print

func (*CleanRoomNotebookReviewNotebookReviewSubReason) Type added in v0.70.0

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

func (*CleanRoomNotebookReviewNotebookReviewSubReason) Values added in v0.72.0

Values returns all possible values for CleanRoomNotebookReviewNotebookReviewSubReason.

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

type CleanRoomNotebookTaskRun

type CleanRoomNotebookTaskRun struct {
	// Job run info of the task in the runner's local workspace. This field is
	// only included in the LIST API. if the task was run within the same
	// workspace the API is being called. If the task run was in a different
	// workspace under the same metastore, only the workspace_id is included.
	// Wire name: 'collaborator_job_run_info'
	CollaboratorJobRunInfo *CollaboratorJobRunInfo `json:"collaborator_job_run_info,omitempty"`
	// Etag of the notebook executed in this task run, used to identify the
	// notebook version.
	// Wire name: 'notebook_etag'
	NotebookEtag string `json:"notebook_etag,omitempty"`
	// State of the task run.
	// Wire name: 'notebook_job_run_state'
	NotebookJobRunState *jobs.CleanRoomTaskRunState `json:"notebook_job_run_state,omitempty"`
	// Asset name of the notebook executed in this task run.
	// Wire name: 'notebook_name'
	NotebookName string `json:"notebook_name,omitempty"`
	// The timestamp of when the notebook was last updated.
	// Wire name: 'notebook_updated_at'
	NotebookUpdatedAt int64 `json:"notebook_updated_at,omitempty"`
	// Expiration time of the output schema of the task run (if any), in epoch
	// milliseconds.
	// Wire name: 'output_schema_expiration_time'
	OutputSchemaExpirationTime int64 `json:"output_schema_expiration_time,omitempty"`
	// Name of the output schema associated with the clean rooms notebook task
	// run.
	// Wire name: 'output_schema_name'
	OutputSchemaName string `json:"output_schema_name,omitempty"`
	// Duration of the task run, in milliseconds.
	// Wire name: 'run_duration'
	RunDuration int64 `json:"run_duration,omitempty"`
	// When the task run started, in epoch milliseconds.
	// Wire name: 'start_time'
	StartTime int64 `json:"start_time,omitempty"`

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

Stores information about a single task run.

func (CleanRoomNotebookTaskRun) MarshalJSON

func (st CleanRoomNotebookTaskRun) MarshalJSON() ([]byte, error)

func (*CleanRoomNotebookTaskRun) UnmarshalJSON

func (st *CleanRoomNotebookTaskRun) UnmarshalJSON(b []byte) error

type CleanRoomOutputCatalog

type CleanRoomOutputCatalog struct {
	// The name of the output catalog in UC. It should follow [UC securable
	// naming requirements]. The field will always exist if status is CREATED.
	//
	// [UC securable naming requirements]: https://docs.databricks.com/en/data-governance/unity-catalog/index.html#securable-object-naming-requirements
	// Wire name: 'catalog_name'
	CatalogName string `json:"catalog_name,omitempty"`

	// Wire name: 'status'
	Status CleanRoomOutputCatalogOutputCatalogStatus `json:"status,omitempty"`

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

func (CleanRoomOutputCatalog) MarshalJSON

func (st CleanRoomOutputCatalog) MarshalJSON() ([]byte, error)

func (*CleanRoomOutputCatalog) UnmarshalJSON

func (st *CleanRoomOutputCatalog) UnmarshalJSON(b []byte) error

type CleanRoomOutputCatalogOutputCatalogStatus

type CleanRoomOutputCatalogOutputCatalogStatus string
const CleanRoomOutputCatalogOutputCatalogStatusCreated CleanRoomOutputCatalogOutputCatalogStatus = `CREATED`
const CleanRoomOutputCatalogOutputCatalogStatusNotCreated CleanRoomOutputCatalogOutputCatalogStatus = `NOT_CREATED`
const CleanRoomOutputCatalogOutputCatalogStatusNotEligible CleanRoomOutputCatalogOutputCatalogStatus = `NOT_ELIGIBLE`

func (*CleanRoomOutputCatalogOutputCatalogStatus) Set

Set raw string value and validate it against allowed values

func (*CleanRoomOutputCatalogOutputCatalogStatus) String

String representation for fmt.Print

func (*CleanRoomOutputCatalogOutputCatalogStatus) Type

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

func (*CleanRoomOutputCatalogOutputCatalogStatus) Values added in v0.72.0

Values returns all possible values for CleanRoomOutputCatalogOutputCatalogStatus.

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

type CleanRoomRemoteDetail

type CleanRoomRemoteDetail struct {
	// Central clean room ID.
	// Wire name: 'central_clean_room_id'
	CentralCleanRoomId string `json:"central_clean_room_id,omitempty"`
	// Cloud vendor (aws,azure,gcp) of the central clean room.
	// Wire name: 'cloud_vendor'
	CloudVendor string `json:"cloud_vendor,omitempty"`
	// Collaborators in the central clean room. There should one and only one
	// collaborator in the list that satisfies the owner condition:
	//
	// 1. It has the creator's global_metastore_id (determined by caller of
	// CreateCleanRoom).
	//
	// 2. Its invite_recipient_email is empty.
	// Wire name: 'collaborators'
	Collaborators []CleanRoomCollaborator `json:"collaborators,omitempty"`
	// The compliance security profile used to process regulated data following
	// compliance standards.
	// Wire name: 'compliance_security_profile'
	ComplianceSecurityProfile *ComplianceSecurityProfile `json:"compliance_security_profile,omitempty"`
	// Collaborator who creates the clean room.
	// Wire name: 'creator'
	Creator *CleanRoomCollaborator `json:"creator,omitempty"`
	// Egress network policy to apply to the central clean room workspace.
	// Wire name: 'egress_network_policy'
	EgressNetworkPolicy *settings.EgressNetworkPolicy `json:"egress_network_policy,omitempty"`
	// Region of the central clean room.
	// Wire name: 'region'
	Region string `json:"region,omitempty"`

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

Publicly visible central clean room details.

func (CleanRoomRemoteDetail) MarshalJSON

func (st CleanRoomRemoteDetail) MarshalJSON() ([]byte, error)

func (*CleanRoomRemoteDetail) UnmarshalJSON

func (st *CleanRoomRemoteDetail) UnmarshalJSON(b []byte) error

type CleanRoomStatusEnum

type CleanRoomStatusEnum string
const CleanRoomStatusEnumActive CleanRoomStatusEnum = `ACTIVE`
const CleanRoomStatusEnumDeleted CleanRoomStatusEnum = `DELETED`
const CleanRoomStatusEnumFailed CleanRoomStatusEnum = `FAILED`
const CleanRoomStatusEnumProvisioning CleanRoomStatusEnum = `PROVISIONING`

func (*CleanRoomStatusEnum) Set

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

Set raw string value and validate it against allowed values

func (*CleanRoomStatusEnum) String

func (f *CleanRoomStatusEnum) String() string

String representation for fmt.Print

func (*CleanRoomStatusEnum) Type

func (f *CleanRoomStatusEnum) Type() string

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

func (*CleanRoomStatusEnum) Values added in v0.72.0

Values returns all possible values for CleanRoomStatusEnum.

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

type CleanRoomTaskRunsAPI

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

Clean room task runs are the executions of notebooks in a clean room.

func NewCleanRoomTaskRuns

func NewCleanRoomTaskRuns(client *client.DatabricksClient) *CleanRoomTaskRunsAPI

func (*CleanRoomTaskRunsAPI) List

List all the historical notebook task runs in a clean room.

func (*CleanRoomTaskRunsAPI) ListAll

func (a *CleanRoomTaskRunsAPI) ListAll(ctx context.Context, request ListCleanRoomNotebookTaskRunsRequest) ([]CleanRoomNotebookTaskRun, error)

List all the historical notebook task runs in a clean room.

func (*CleanRoomTaskRunsAPI) ListByCleanRoomName

func (a *CleanRoomTaskRunsAPI) ListByCleanRoomName(ctx context.Context, cleanRoomName string) (*ListCleanRoomNotebookTaskRunsResponse, error)

List all the historical notebook task runs in a clean room.

type CleanRoomTaskRunsInterface

type CleanRoomTaskRunsInterface interface {

	// List all the historical notebook task runs in a clean room.
	//
	// This method is generated by Databricks SDK Code Generator.
	List(ctx context.Context, request ListCleanRoomNotebookTaskRunsRequest) listing.Iterator[CleanRoomNotebookTaskRun]

	// List all the historical notebook task runs in a clean room.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListAll(ctx context.Context, request ListCleanRoomNotebookTaskRunsRequest) ([]CleanRoomNotebookTaskRun, error)

	// List all the historical notebook task runs in a clean room.
	ListByCleanRoomName(ctx context.Context, cleanRoomName string) (*ListCleanRoomNotebookTaskRunsResponse, error)
}

type CleanRoomTaskRunsService deprecated

type CleanRoomTaskRunsService interface {

	// List all the historical notebook task runs in a clean room.
	List(ctx context.Context, request ListCleanRoomNotebookTaskRunsRequest) (*ListCleanRoomNotebookTaskRunsResponse, error)
}

Clean room task runs are the executions of notebooks in a clean room.

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

type CleanRoomsAPI

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

A clean room uses Delta Sharing and serverless compute to provide a secure and privacy-protecting environment where multiple parties can work together on sensitive enterprise data without direct access to each other’s data.

func NewCleanRooms

func NewCleanRooms(client *client.DatabricksClient) *CleanRoomsAPI

func (*CleanRoomsAPI) Create

func (a *CleanRoomsAPI) Create(ctx context.Context, request CreateCleanRoomRequest) (*CleanRoom, error)

func (*CleanRoomsAPI) CreateOutputCatalog

func (a *CleanRoomsAPI) CreateOutputCatalog(ctx context.Context, request CreateCleanRoomOutputCatalogRequest) (*CreateCleanRoomOutputCatalogResponse, error)

func (*CleanRoomsAPI) Delete

func (a *CleanRoomsAPI) Delete(ctx context.Context, request DeleteCleanRoomRequest) error

func (*CleanRoomsAPI) DeleteByName

func (a *CleanRoomsAPI) DeleteByName(ctx context.Context, name string) error

Delete a clean room. After deletion, the clean room will be removed from the metastore. If the other collaborators have not deleted the clean room, they will still have the clean room in their metastore, but it will be in a DELETED state and no operations other than deletion can be performed on it.

func (*CleanRoomsAPI) Get

func (a *CleanRoomsAPI) Get(ctx context.Context, request GetCleanRoomRequest) (*CleanRoom, error)

func (*CleanRoomsAPI) GetByName

func (a *CleanRoomsAPI) GetByName(ctx context.Context, name string) (*CleanRoom, error)

Get the details of a clean room given its name.

func (*CleanRoomsAPI) List

func (a *CleanRoomsAPI) List(ctx context.Context, request ListCleanRoomsRequest) listing.Iterator[CleanRoom]

Get a list of all clean rooms of the metastore. Only clean rooms the caller has access to are returned.

func (*CleanRoomsAPI) ListAll

func (a *CleanRoomsAPI) ListAll(ctx context.Context, request ListCleanRoomsRequest) ([]CleanRoom, error)

Get a list of all clean rooms of the metastore. Only clean rooms the caller has access to are returned.

func (*CleanRoomsAPI) Update

func (a *CleanRoomsAPI) Update(ctx context.Context, request UpdateCleanRoomRequest) (*CleanRoom, error)

type CleanRoomsInterface

type CleanRoomsInterface interface {

	// Create a new clean room with the specified collaborators. This method is
	// asynchronous; the returned name field inside the clean_room field can be used
	// to poll the clean room status, using the :method:cleanrooms/get method. When
	// this method returns, the clean room will be in a PROVISIONING state, with
	// only name, owner, comment, created_at and status populated. The clean room
	// will be usable once it enters an ACTIVE state.
	//
	// The caller must be a metastore admin or have the **CREATE_CLEAN_ROOM**
	// privilege on the metastore.
	Create(ctx context.Context, request CreateCleanRoomRequest) (*CleanRoom, error)

	// Create the output catalog of the clean room.
	CreateOutputCatalog(ctx context.Context, request CreateCleanRoomOutputCatalogRequest) (*CreateCleanRoomOutputCatalogResponse, error)

	// Delete a clean room. After deletion, the clean room will be removed from the
	// metastore. If the other collaborators have not deleted the clean room, they
	// will still have the clean room in their metastore, but it will be in a
	// DELETED state and no operations other than deletion can be performed on it.
	Delete(ctx context.Context, request DeleteCleanRoomRequest) error

	// Delete a clean room. After deletion, the clean room will be removed from the
	// metastore. If the other collaborators have not deleted the clean room, they
	// will still have the clean room in their metastore, but it will be in a
	// DELETED state and no operations other than deletion can be performed on it.
	DeleteByName(ctx context.Context, name string) error

	// Get the details of a clean room given its name.
	Get(ctx context.Context, request GetCleanRoomRequest) (*CleanRoom, error)

	// Get the details of a clean room given its name.
	GetByName(ctx context.Context, name string) (*CleanRoom, error)

	// Get a list of all clean rooms of the metastore. Only clean rooms the caller
	// has access to are returned.
	//
	// This method is generated by Databricks SDK Code Generator.
	List(ctx context.Context, request ListCleanRoomsRequest) listing.Iterator[CleanRoom]

	// Get a list of all clean rooms of the metastore. Only clean rooms the caller
	// has access to are returned.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListAll(ctx context.Context, request ListCleanRoomsRequest) ([]CleanRoom, error)

	// Update a clean room. The caller must be the owner of the clean room, have
	// **MODIFY_CLEAN_ROOM** privilege, or be metastore admin.
	//
	// When the caller is a metastore admin, only the __owner__ field can be
	// updated.
	Update(ctx context.Context, request UpdateCleanRoomRequest) (*CleanRoom, error)
}

type CleanRoomsService deprecated

type CleanRoomsService interface {

	// Create a new clean room with the specified collaborators. This method is
	// asynchronous; the returned name field inside the clean_room field can be
	// used to poll the clean room status, using the :method:cleanrooms/get
	// method. When this method returns, the clean room will be in a
	// PROVISIONING state, with only name, owner, comment, created_at and status
	// populated. The clean room will be usable once it enters an ACTIVE state.
	//
	// The caller must be a metastore admin or have the **CREATE_CLEAN_ROOM**
	// privilege on the metastore.
	Create(ctx context.Context, request CreateCleanRoomRequest) (*CleanRoom, error)

	// Create the output catalog of the clean room.
	CreateOutputCatalog(ctx context.Context, request CreateCleanRoomOutputCatalogRequest) (*CreateCleanRoomOutputCatalogResponse, error)

	// Delete a clean room. After deletion, the clean room will be removed from
	// the metastore. If the other collaborators have not deleted the clean
	// room, they will still have the clean room in their metastore, but it will
	// be in a DELETED state and no operations other than deletion can be
	// performed on it.
	Delete(ctx context.Context, request DeleteCleanRoomRequest) error

	// Get the details of a clean room given its name.
	Get(ctx context.Context, request GetCleanRoomRequest) (*CleanRoom, error)

	// Get a list of all clean rooms of the metastore. Only clean rooms the
	// caller has access to are returned.
	List(ctx context.Context, request ListCleanRoomsRequest) (*ListCleanRoomsResponse, error)

	// Update a clean room. The caller must be the owner of the clean room, have
	// **MODIFY_CLEAN_ROOM** privilege, or be metastore admin.
	//
	// When the caller is a metastore admin, only the __owner__ field can be
	// updated.
	Update(ctx context.Context, request UpdateCleanRoomRequest) (*CleanRoom, error)
}

A clean room uses Delta Sharing and serverless compute to provide a secure and privacy-protecting environment where multiple parties can work together on sensitive enterprise data without direct access to each other’s data.

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

type CollaboratorJobRunInfo

type CollaboratorJobRunInfo struct {
	// Alias of the collaborator that triggered the task run.
	// Wire name: 'collaborator_alias'
	CollaboratorAlias string `json:"collaborator_alias,omitempty"`
	// Job ID of the task run in the collaborator's workspace.
	// Wire name: 'collaborator_job_id'
	CollaboratorJobId int64 `json:"collaborator_job_id,omitempty"`
	// Job run ID of the task run in the collaborator's workspace.
	// Wire name: 'collaborator_job_run_id'
	CollaboratorJobRunId int64 `json:"collaborator_job_run_id,omitempty"`
	// Task run ID of the task run in the collaborator's workspace.
	// Wire name: 'collaborator_task_run_id'
	CollaboratorTaskRunId int64 `json:"collaborator_task_run_id,omitempty"`
	// ID of the collaborator's workspace that triggered the task run.
	// Wire name: 'collaborator_workspace_id'
	CollaboratorWorkspaceId int64 `json:"collaborator_workspace_id,omitempty"`

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

func (CollaboratorJobRunInfo) MarshalJSON

func (st CollaboratorJobRunInfo) MarshalJSON() ([]byte, error)

func (*CollaboratorJobRunInfo) UnmarshalJSON

func (st *CollaboratorJobRunInfo) UnmarshalJSON(b []byte) error

type ComplianceSecurityProfile

type ComplianceSecurityProfile struct {
	// The list of compliance standards that the compliance security profile is
	// configured to enforce.
	// Wire name: 'compliance_standards'
	ComplianceStandards []settings.ComplianceStandard `json:"compliance_standards,omitempty"`
	// Whether the compliance security profile is enabled.
	// Wire name: 'is_enabled'
	IsEnabled bool `json:"is_enabled,omitempty"`

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

The compliance security profile used to process regulated data following compliance standards.

func (ComplianceSecurityProfile) MarshalJSON

func (st ComplianceSecurityProfile) MarshalJSON() ([]byte, error)

func (*ComplianceSecurityProfile) UnmarshalJSON

func (st *ComplianceSecurityProfile) UnmarshalJSON(b []byte) error

type CreateCleanRoomAssetRequest

type CreateCleanRoomAssetRequest struct {
	// Metadata of the clean room asset
	// Wire name: 'asset'
	Asset CleanRoomAsset `json:"asset"`
	// Name of the clean room.
	CleanRoomName string `json:"-" tf:"-"`
}

Create an asset

func (CreateCleanRoomAssetRequest) MarshalJSON added in v0.73.0

func (st CreateCleanRoomAssetRequest) MarshalJSON() ([]byte, error)

func (*CreateCleanRoomAssetRequest) UnmarshalJSON added in v0.73.0

func (st *CreateCleanRoomAssetRequest) UnmarshalJSON(b []byte) error

type CreateCleanRoomOutputCatalogRequest

type CreateCleanRoomOutputCatalogRequest struct {
	// Name of the clean room.
	CleanRoomName string `json:"-" tf:"-"`

	// Wire name: 'output_catalog'
	OutputCatalog CleanRoomOutputCatalog `json:"output_catalog"`
}

Create an output catalog

func (CreateCleanRoomOutputCatalogRequest) MarshalJSON added in v0.73.0

func (st CreateCleanRoomOutputCatalogRequest) MarshalJSON() ([]byte, error)

func (*CreateCleanRoomOutputCatalogRequest) UnmarshalJSON added in v0.73.0

func (st *CreateCleanRoomOutputCatalogRequest) UnmarshalJSON(b []byte) error

type CreateCleanRoomOutputCatalogResponse

type CreateCleanRoomOutputCatalogResponse struct {

	// Wire name: 'output_catalog'
	OutputCatalog *CleanRoomOutputCatalog `json:"output_catalog,omitempty"`
}

func (CreateCleanRoomOutputCatalogResponse) MarshalJSON added in v0.73.0

func (st CreateCleanRoomOutputCatalogResponse) MarshalJSON() ([]byte, error)

func (*CreateCleanRoomOutputCatalogResponse) UnmarshalJSON added in v0.73.0

func (st *CreateCleanRoomOutputCatalogResponse) UnmarshalJSON(b []byte) error

type CreateCleanRoomRequest

type CreateCleanRoomRequest struct {

	// Wire name: 'clean_room'
	CleanRoom CleanRoom `json:"clean_room"`
}

Create a clean room

func (CreateCleanRoomRequest) MarshalJSON added in v0.73.0

func (st CreateCleanRoomRequest) MarshalJSON() ([]byte, error)

func (*CreateCleanRoomRequest) UnmarshalJSON added in v0.73.0

func (st *CreateCleanRoomRequest) UnmarshalJSON(b []byte) error

type DeleteCleanRoomAssetRequest

type DeleteCleanRoomAssetRequest struct {
	// The type of the asset.
	AssetType CleanRoomAssetAssetType `json:"-" tf:"-"`
	// Name of the clean room.
	CleanRoomName string `json:"-" tf:"-"`
	// The fully qualified name of the asset, it is same as the name field in
	// CleanRoomAsset.
	Name string `json:"-" tf:"-"`
}

Delete an asset

func (DeleteCleanRoomAssetRequest) MarshalJSON added in v0.73.0

func (st DeleteCleanRoomAssetRequest) MarshalJSON() ([]byte, error)

func (*DeleteCleanRoomAssetRequest) UnmarshalJSON added in v0.73.0

func (st *DeleteCleanRoomAssetRequest) UnmarshalJSON(b []byte) error

type DeleteCleanRoomAssetResponse

type DeleteCleanRoomAssetResponse struct {
}

Response for delete clean room request. Using an empty message since the generic Empty proto does not externd UnshadedMessageMarker.

func (DeleteCleanRoomAssetResponse) MarshalJSON added in v0.73.0

func (st DeleteCleanRoomAssetResponse) MarshalJSON() ([]byte, error)

func (*DeleteCleanRoomAssetResponse) UnmarshalJSON added in v0.73.0

func (st *DeleteCleanRoomAssetResponse) UnmarshalJSON(b []byte) error

type DeleteCleanRoomRequest

type DeleteCleanRoomRequest struct {
	// Name of the clean room.
	Name string `json:"-" tf:"-"`
}

Delete a clean room

func (DeleteCleanRoomRequest) MarshalJSON added in v0.73.0

func (st DeleteCleanRoomRequest) MarshalJSON() ([]byte, error)

func (*DeleteCleanRoomRequest) UnmarshalJSON added in v0.73.0

func (st *DeleteCleanRoomRequest) UnmarshalJSON(b []byte) error

type DeleteResponse

type DeleteResponse struct {
}

func (DeleteResponse) MarshalJSON added in v0.73.0

func (st DeleteResponse) MarshalJSON() ([]byte, error)

func (*DeleteResponse) UnmarshalJSON added in v0.73.0

func (st *DeleteResponse) UnmarshalJSON(b []byte) error

type GetCleanRoomAssetRequest

type GetCleanRoomAssetRequest struct {
	// The type of the asset.
	AssetType CleanRoomAssetAssetType `json:"-" tf:"-"`
	// Name of the clean room.
	CleanRoomName string `json:"-" tf:"-"`
	// The fully qualified name of the asset, it is same as the name field in
	// CleanRoomAsset.
	Name string `json:"-" tf:"-"`
}

Get an asset

func (GetCleanRoomAssetRequest) MarshalJSON added in v0.73.0

func (st GetCleanRoomAssetRequest) MarshalJSON() ([]byte, error)

func (*GetCleanRoomAssetRequest) UnmarshalJSON added in v0.73.0

func (st *GetCleanRoomAssetRequest) UnmarshalJSON(b []byte) error

type GetCleanRoomRequest

type GetCleanRoomRequest struct {
	Name string `json:"-" tf:"-"`
}

Get a clean room

func (GetCleanRoomRequest) MarshalJSON added in v0.73.0

func (st GetCleanRoomRequest) MarshalJSON() ([]byte, error)

func (*GetCleanRoomRequest) UnmarshalJSON added in v0.73.0

func (st *GetCleanRoomRequest) UnmarshalJSON(b []byte) error

type ListCleanRoomAssetsRequest

type ListCleanRoomAssetsRequest struct {
	// Name of the clean room.
	CleanRoomName string `json:"-" tf:"-"`
	// Opaque pagination token to go to next page based on previous query.
	PageToken string `json:"-" tf:"-"`

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

List assets

func (ListCleanRoomAssetsRequest) MarshalJSON

func (st ListCleanRoomAssetsRequest) MarshalJSON() ([]byte, error)

func (*ListCleanRoomAssetsRequest) UnmarshalJSON

func (st *ListCleanRoomAssetsRequest) UnmarshalJSON(b []byte) error

type ListCleanRoomAssetsResponse

type ListCleanRoomAssetsResponse struct {
	// Assets in the clean room.
	// Wire name: 'assets'
	Assets []CleanRoomAsset `json:"assets,omitempty"`
	// Opaque token to retrieve the next page of results. Absent if there are no
	// more pages. page_token should be set to this value for the next request
	// (for the next page of results).
	// Wire name: 'next_page_token'
	NextPageToken string `json:"next_page_token,omitempty"`

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

func (ListCleanRoomAssetsResponse) MarshalJSON

func (st ListCleanRoomAssetsResponse) MarshalJSON() ([]byte, error)

func (*ListCleanRoomAssetsResponse) UnmarshalJSON

func (st *ListCleanRoomAssetsResponse) UnmarshalJSON(b []byte) error

type ListCleanRoomNotebookTaskRunsRequest

type ListCleanRoomNotebookTaskRunsRequest struct {
	// Name of the clean room.
	CleanRoomName string `json:"-" tf:"-"`
	// Notebook name
	NotebookName string `json:"-" tf:"-"`
	// The maximum number of task runs to return. Currently ignored - all runs
	// will be returned.
	PageSize int `json:"-" tf:"-"`
	// Opaque pagination token to go to next page based on previous query.
	PageToken string `json:"-" tf:"-"`

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

List notebook task runs

func (ListCleanRoomNotebookTaskRunsRequest) MarshalJSON

func (st ListCleanRoomNotebookTaskRunsRequest) MarshalJSON() ([]byte, error)

func (*ListCleanRoomNotebookTaskRunsRequest) UnmarshalJSON

func (st *ListCleanRoomNotebookTaskRunsRequest) UnmarshalJSON(b []byte) error

type ListCleanRoomNotebookTaskRunsResponse

type ListCleanRoomNotebookTaskRunsResponse struct {
	// Opaque token to retrieve the next page of results. Absent if there are no
	// more pages. page_token should be set to this value for the next request
	// (for the next page of results).
	// Wire name: 'next_page_token'
	NextPageToken string `json:"next_page_token,omitempty"`
	// Name of the clean room.
	// Wire name: 'runs'
	Runs []CleanRoomNotebookTaskRun `json:"runs,omitempty"`

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

func (ListCleanRoomNotebookTaskRunsResponse) MarshalJSON

func (st ListCleanRoomNotebookTaskRunsResponse) MarshalJSON() ([]byte, error)

func (*ListCleanRoomNotebookTaskRunsResponse) UnmarshalJSON

func (st *ListCleanRoomNotebookTaskRunsResponse) UnmarshalJSON(b []byte) error

type ListCleanRoomsRequest

type ListCleanRoomsRequest struct {
	// Maximum number of clean rooms to return (i.e., the page length). Defaults
	// to 100.
	PageSize int `json:"-" tf:"-"`
	// Opaque pagination token to go to next page based on previous query.
	PageToken string `json:"-" tf:"-"`

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

List clean rooms

func (ListCleanRoomsRequest) MarshalJSON

func (st ListCleanRoomsRequest) MarshalJSON() ([]byte, error)

func (*ListCleanRoomsRequest) UnmarshalJSON

func (st *ListCleanRoomsRequest) UnmarshalJSON(b []byte) error

type ListCleanRoomsResponse

type ListCleanRoomsResponse struct {

	// Wire name: 'clean_rooms'
	CleanRooms []CleanRoom `json:"clean_rooms,omitempty"`
	// Opaque token to retrieve the next page of results. Absent if there are no
	// more pages. page_token should be set to this value for the next request
	// (for the next page of results).
	// Wire name: 'next_page_token'
	NextPageToken string `json:"next_page_token,omitempty"`

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

func (ListCleanRoomsResponse) MarshalJSON

func (st ListCleanRoomsResponse) MarshalJSON() ([]byte, error)

func (*ListCleanRoomsResponse) UnmarshalJSON

func (st *ListCleanRoomsResponse) UnmarshalJSON(b []byte) error

type UpdateCleanRoomAssetRequest

type UpdateCleanRoomAssetRequest struct {
	// Metadata of the clean room asset
	// Wire name: 'asset'
	Asset CleanRoomAsset `json:"asset"`
	// The type of the asset.
	AssetType CleanRoomAssetAssetType `json:"-" tf:"-"`
	// Name of the clean room.
	CleanRoomName string `json:"-" tf:"-"`
	// A fully qualified name that uniquely identifies the asset within the
	// clean room. This is also the name displayed in the clean room UI.
	//
	// For UC securable assets (tables, volumes, etc.), the format is
	// *shared_catalog*.*shared_schema*.*asset_name*
	//
	// For notebooks, the name is the notebook file name.
	Name string `json:"-" tf:"-"`
}

Update an asset

func (UpdateCleanRoomAssetRequest) MarshalJSON added in v0.73.0

func (st UpdateCleanRoomAssetRequest) MarshalJSON() ([]byte, error)

func (*UpdateCleanRoomAssetRequest) UnmarshalJSON added in v0.73.0

func (st *UpdateCleanRoomAssetRequest) UnmarshalJSON(b []byte) error

type UpdateCleanRoomRequest

type UpdateCleanRoomRequest struct {

	// Wire name: 'clean_room'
	CleanRoom *CleanRoom `json:"clean_room,omitempty"`
	// Name of the clean room.
	Name string `json:"-" tf:"-"`
}

func (UpdateCleanRoomRequest) MarshalJSON added in v0.73.0

func (st UpdateCleanRoomRequest) MarshalJSON() ([]byte, error)

func (*UpdateCleanRoomRequest) UnmarshalJSON added in v0.73.0

func (st *UpdateCleanRoomRequest) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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