const ( // DefaultBaseURI is the default URI used for the service Databricks DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
AddressSpace addressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.
type AddressSpace struct { // AddressPrefixes - A list of address blocks reserved for this virtual network in CIDR notation. AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` }
BaseClient is the base client for Databricks.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
CreatedBy provides details of the entity that created/updated the workspace.
type CreatedBy struct { // Oid - READ-ONLY; The Object ID that created the workspace. Oid *uuid.UUID `json:"oid,omitempty"` // Puid - READ-ONLY; The Personal Object ID corresponding to the object ID above Puid *string `json:"puid,omitempty"` // ApplicationID - READ-ONLY; The application ID of the application that initiated the creation of the workspace. For example, Azure Portal. ApplicationID *uuid.UUID `json:"applicationId,omitempty"` }
func (cb CreatedBy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CreatedBy.
CustomParameterType enumerates the values for custom parameter type.
type CustomParameterType string
const ( // Bool ... Bool CustomParameterType = "Bool" // Object ... Object CustomParameterType = "Object" // String ... String CustomParameterType = "String" )
func PossibleCustomParameterTypeValues() []CustomParameterType
PossibleCustomParameterTypeValues returns an array of possible values for the CustomParameterType const type.
Encryption the object that contains details of encryption used on the workspace.
type Encryption struct { // KeySource - The encryption keySource (provider). Possible values (case-insensitive): Default, Microsoft.Keyvault. Possible values include: 'Default', 'MicrosoftKeyvault' KeySource KeySource `json:"keySource,omitempty"` // KeyName - The name of KeyVault key. KeyName *string `json:"KeyName,omitempty"` // KeyVersion - The version of KeyVault key. KeyVersion *string `json:"keyversion,omitempty"` // KeyVaultURI - The Uri of KeyVault. KeyVaultURI *string `json:"keyvaulturi,omitempty"` }
ErrorDetail ...
type ErrorDetail struct { // Code - The error's code. Code *string `json:"code,omitempty"` // Message - A human readable error message. Message *string `json:"message,omitempty"` // Target - Indicates which property in the request is responsible for the error. Target *string `json:"target,omitempty"` }
ErrorInfo ...
type ErrorInfo struct { // Code - A machine readable error code. Code *string `json:"code,omitempty"` // Message - A human readable error message. Message *string `json:"message,omitempty"` // Details - error details. Details *[]ErrorDetail `json:"details,omitempty"` // Innererror - Inner error details if they exist. Innererror *string `json:"innererror,omitempty"` }
ErrorResponse contains details when the response code indicates an error.
type ErrorResponse struct { // Error - The error details. Error *ErrorInfo `json:"error,omitempty"` }
KeySource enumerates the values for key source.
type KeySource string
const ( // Default ... Default KeySource = "Default" // MicrosoftKeyvault ... MicrosoftKeyvault KeySource = "Microsoft.Keyvault" )
func PossibleKeySourceValues() []KeySource
PossibleKeySourceValues returns an array of possible values for the KeySource const type.
ManagedIdentityConfiguration the Managed Identity details for storage account.
type ManagedIdentityConfiguration struct { // PrincipalID - READ-ONLY; The objectId of the Managed Identity that is linked to the Managed Storage account. PrincipalID *uuid.UUID `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant Id where the Managed Identity is created. TenantID *uuid.UUID `json:"tenantId,omitempty"` // Type - READ-ONLY; The type of Identity created. It can be either SystemAssigned or UserAssigned. Type *string `json:"type,omitempty"` }
func (mic ManagedIdentityConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagedIdentityConfiguration.
Operation REST API operation
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` }
OperationDisplay the object that represents the operation.
type OperationDisplay struct { // Provider - Service provider: Microsoft.ResourceProvider Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed. Resource *string `json:"resource,omitempty"` // Operation - Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationListResult result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of Resource Provider operations supported by the Resource Provider resource provider. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
OperationListResultIterator provides access to a complete listing of Operation values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OperationListResultPage contains a page of Operation values.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
OperationsClient is the ARM Databricks
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists all of the available RP operations.
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
PeeringProvisioningState enumerates the values for peering provisioning state.
type PeeringProvisioningState string
const ( // Deleting ... Deleting PeeringProvisioningState = "Deleting" // Failed ... Failed PeeringProvisioningState = "Failed" // Succeeded ... Succeeded PeeringProvisioningState = "Succeeded" // Updating ... Updating PeeringProvisioningState = "Updating" )
func PossiblePeeringProvisioningStateValues() []PeeringProvisioningState
PossiblePeeringProvisioningStateValues returns an array of possible values for the PeeringProvisioningState const type.
PeeringState enumerates the values for peering state.
type PeeringState string
const ( // Connected ... Connected PeeringState = "Connected" // Disconnected ... Disconnected PeeringState = "Disconnected" // Initiated ... Initiated PeeringState = "Initiated" )
func PossiblePeeringStateValues() []PeeringState
PossiblePeeringStateValues returns an array of possible values for the PeeringState const type.
ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const ( // ProvisioningStateAccepted ... ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled ... ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateCreated ... ProvisioningStateCreated ProvisioningState = "Created" // ProvisioningStateCreating ... ProvisioningStateCreating ProvisioningState = "Creating" // ProvisioningStateDeleted ... ProvisioningStateDeleted ProvisioningState = "Deleted" // ProvisioningStateDeleting ... ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateReady ... ProvisioningStateReady ProvisioningState = "Ready" // ProvisioningStateRunning ... ProvisioningStateRunning ProvisioningState = "Running" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating ... ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
Resource the core properties of ARM resources
type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
Sku SKU for the resource.
type Sku struct { // Name - The SKU name. Name *string `json:"name,omitempty"` // Tier - The SKU tier. Tier *string `json:"tier,omitempty"` }
TrackedResource the resource model definition for a ARM tracked top level resource
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
VNetPeeringClient is the ARM Databricks
type VNetPeeringClient struct { BaseClient }
func NewVNetPeeringClient(subscriptionID string) VNetPeeringClient
NewVNetPeeringClient creates an instance of the VNetPeeringClient client.
func NewVNetPeeringClientWithBaseURI(baseURI string, subscriptionID string) VNetPeeringClient
NewVNetPeeringClientWithBaseURI creates an instance of the VNetPeeringClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client VNetPeeringClient) CreateOrUpdate(ctx context.Context, virtualNetworkPeeringParameters VirtualNetworkPeering, resourceGroupName string, workspaceName string, peeringName string) (result VNetPeeringCreateOrUpdateFuture, err error)
CreateOrUpdate creates vNet Peering for workspace. Parameters: virtualNetworkPeeringParameters - parameters supplied to the create workspace vNet Peering. resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. peeringName - the name of the workspace vNet peering.
func (client VNetPeeringClient) CreateOrUpdatePreparer(ctx context.Context, virtualNetworkPeeringParameters VirtualNetworkPeering, resourceGroupName string, workspaceName string, peeringName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client VNetPeeringClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkPeering, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client VNetPeeringClient) CreateOrUpdateSender(req *http.Request) (future VNetPeeringCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client VNetPeeringClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string) (result VNetPeeringDeleteFuture, err error)
Delete deletes the workspace vNetPeering. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. peeringName - the name of the workspace vNet peering.
func (client VNetPeeringClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client VNetPeeringClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (client VNetPeeringClient) DeleteSender(req *http.Request) (future VNetPeeringDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client VNetPeeringClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string) (result VirtualNetworkPeering, err error)
Get gets the workspace vNet Peering. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace. peeringName - the name of the workspace vNet peering.
func (client VNetPeeringClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, peeringName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client VNetPeeringClient) GetResponder(resp *http.Response) (result VirtualNetworkPeering, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client VNetPeeringClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client VNetPeeringClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result VirtualNetworkPeeringListPage, err error)
ListByWorkspace lists the workspace vNet Peerings. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.
func (client VNetPeeringClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result VirtualNetworkPeeringListIterator, err error)
ListByWorkspaceComplete enumerates all values, automatically crossing page boundaries as required.
func (client VNetPeeringClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
ListByWorkspacePreparer prepares the ListByWorkspace request.
func (client VNetPeeringClient) ListByWorkspaceResponder(resp *http.Response) (result VirtualNetworkPeeringList, err error)
ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.
func (client VNetPeeringClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)
ListByWorkspaceSender sends the ListByWorkspace request. The method will close the http.Response Body if it receives an error.
VNetPeeringCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VNetPeeringCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VNetPeeringClient) (VirtualNetworkPeering, error) }
func (future *VNetPeeringCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VNetPeeringDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type VNetPeeringDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(VNetPeeringClient) (autorest.Response, error) }
func (future *VNetPeeringDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
VirtualNetworkPeering peerings in a VirtualNetwork resource
type VirtualNetworkPeering struct { autorest.Response `json:"-"` // VirtualNetworkPeeringPropertiesFormat - List of properties for vNet Peering *VirtualNetworkPeeringPropertiesFormat `json:"properties,omitempty"` // Name - READ-ONLY; Name of the virtual network peering resource Name *string `json:"name,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Type - READ-ONLY; type of the virtual network peering resource Type *string `json:"type,omitempty"` }
func (vnp VirtualNetworkPeering) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VirtualNetworkPeering.
func (vnp *VirtualNetworkPeering) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for VirtualNetworkPeering struct.
VirtualNetworkPeeringList gets all virtual network peerings under a workspace.
type VirtualNetworkPeeringList struct { autorest.Response `json:"-"` // Value - List of virtual network peerings on workspace. Value *[]VirtualNetworkPeering `json:"value,omitempty"` // NextLink - URL to get the next set of virtual network peering list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
func (vnpl VirtualNetworkPeeringList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
VirtualNetworkPeeringListIterator provides access to a complete listing of VirtualNetworkPeering values.
type VirtualNetworkPeeringListIterator struct {
// contains filtered or unexported fields
}
func NewVirtualNetworkPeeringListIterator(page VirtualNetworkPeeringListPage) VirtualNetworkPeeringListIterator
Creates a new instance of the VirtualNetworkPeeringListIterator type.
func (iter *VirtualNetworkPeeringListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *VirtualNetworkPeeringListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter VirtualNetworkPeeringListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter VirtualNetworkPeeringListIterator) Response() VirtualNetworkPeeringList
Response returns the raw server response from the last page request.
func (iter VirtualNetworkPeeringListIterator) Value() VirtualNetworkPeering
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
VirtualNetworkPeeringListPage contains a page of VirtualNetworkPeering values.
type VirtualNetworkPeeringListPage struct {
// contains filtered or unexported fields
}
func NewVirtualNetworkPeeringListPage(cur VirtualNetworkPeeringList, getNextPage func(context.Context, VirtualNetworkPeeringList) (VirtualNetworkPeeringList, error)) VirtualNetworkPeeringListPage
Creates a new instance of the VirtualNetworkPeeringListPage type.
func (page *VirtualNetworkPeeringListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *VirtualNetworkPeeringListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page VirtualNetworkPeeringListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page VirtualNetworkPeeringListPage) Response() VirtualNetworkPeeringList
Response returns the raw server response from the last page request.
func (page VirtualNetworkPeeringListPage) Values() []VirtualNetworkPeering
Values returns the slice of values for the current page or nil if there are no values.
VirtualNetworkPeeringPropertiesFormat properties of the virtual network peering.
type VirtualNetworkPeeringPropertiesFormat struct { // AllowVirtualNetworkAccess - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space. AllowVirtualNetworkAccess *bool `json:"allowVirtualNetworkAccess,omitempty"` // AllowForwardedTraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network. AllowForwardedTraffic *bool `json:"allowForwardedTraffic,omitempty"` // AllowGatewayTransit - If gateway links can be used in remote virtual networking to link to this virtual network. AllowGatewayTransit *bool `json:"allowGatewayTransit,omitempty"` // UseRemoteGateways - If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway. UseRemoteGateways *bool `json:"useRemoteGateways,omitempty"` // DatabricksVirtualNetwork - The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering). DatabricksVirtualNetwork *VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork `json:"databricksVirtualNetwork,omitempty"` // DatabricksAddressSpace - The reference to the databricks virtual network address space. DatabricksAddressSpace *AddressSpace `json:"databricksAddressSpace,omitempty"` // RemoteVirtualNetwork - The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering). RemoteVirtualNetwork *VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork `json:"remoteVirtualNetwork,omitempty"` // RemoteAddressSpace - The reference to the remote virtual network address space. RemoteAddressSpace *AddressSpace `json:"remoteAddressSpace,omitempty"` // PeeringState - READ-ONLY; The status of the virtual network peering. Possible values include: 'Initiated', 'Connected', 'Disconnected' PeeringState PeeringState `json:"peeringState,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the virtual network peering resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' ProvisioningState PeeringProvisioningState `json:"provisioningState,omitempty"` }
func (vnppf VirtualNetworkPeeringPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VirtualNetworkPeeringPropertiesFormat.
VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork the remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).
type VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork struct { // ID - The Id of the databricks virtual network. ID *string `json:"id,omitempty"` }
VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork the remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).
type VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork struct { // ID - The Id of the remote virtual network. ID *string `json:"id,omitempty"` }
Workspace information about workspace.
type Workspace struct { autorest.Response `json:"-"` // WorkspaceProperties - The workspace properties. *WorkspaceProperties `json:"properties,omitempty"` // Sku - The SKU of the resource. Sku *Sku `json:"sku,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
func (w Workspace) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Workspace.
func (w *Workspace) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Workspace struct.
WorkspaceCustomBooleanParameter the value which should be used for this field.
type WorkspaceCustomBooleanParameter struct { // Type - The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' Type CustomParameterType `json:"type,omitempty"` // Value - The value which should be used for this field. Value *bool `json:"value,omitempty"` }
WorkspaceCustomObjectParameter the value which should be used for this field.
type WorkspaceCustomObjectParameter struct { // Type - The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' Type CustomParameterType `json:"type,omitempty"` // Value - The value which should be used for this field. Value interface{} `json:"value,omitempty"` }
WorkspaceCustomParameters custom Parameters used for Cluster Creation.
type WorkspaceCustomParameters struct { // AmlWorkspaceID - The ID of a Azure Machine Learning workspace to link with Databricks workspace AmlWorkspaceID *WorkspaceCustomStringParameter `json:"amlWorkspaceId,omitempty"` // CustomVirtualNetworkID - The ID of a Virtual Network where this Databricks Cluster should be created CustomVirtualNetworkID *WorkspaceCustomStringParameter `json:"customVirtualNetworkId,omitempty"` // CustomPublicSubnetName - The name of a Public Subnet within the Virtual Network CustomPublicSubnetName *WorkspaceCustomStringParameter `json:"customPublicSubnetName,omitempty"` // CustomPrivateSubnetName - The name of the Private Subnet within the Virtual Network CustomPrivateSubnetName *WorkspaceCustomStringParameter `json:"customPrivateSubnetName,omitempty"` // EnableNoPublicIP - Should the Public IP be Disabled? EnableNoPublicIP *WorkspaceCustomBooleanParameter `json:"enableNoPublicIp,omitempty"` // PrepareEncryption - Prepare the workspace for encryption. Enables the Managed Identity for managed storage account. PrepareEncryption *WorkspaceCustomBooleanParameter `json:"prepareEncryption,omitempty"` // Encryption - Contains the encryption details for Customer-Managed Key (CMK) enabled workspace. Encryption *WorkspaceEncryptionParameter `json:"encryption,omitempty"` // RequireInfrastructureEncryption - A boolean indicating whether or not the DBFS root file system will be enabled with secondary layer of encryption with platform managed keys for data at rest. RequireInfrastructureEncryption *WorkspaceCustomBooleanParameter `json:"requireInfrastructureEncryption,omitempty"` }
WorkspaceCustomStringParameter the Value.
type WorkspaceCustomStringParameter struct { // Type - The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' Type CustomParameterType `json:"type,omitempty"` // Value - The value which should be used for this field. Value *string `json:"value,omitempty"` }
WorkspaceEncryptionParameter the object that contains details of encryption used on the workspace.
type WorkspaceEncryptionParameter struct { // Type - The type of variable that this is. Possible values include: 'Bool', 'Object', 'String' Type CustomParameterType `json:"type,omitempty"` // Value - The value which should be used for this field. Value *Encryption `json:"value,omitempty"` }
WorkspaceListResult list of workspaces.
type WorkspaceListResult struct { autorest.Response `json:"-"` // Value - The array of workspaces. Value *[]Workspace `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
func (wlr WorkspaceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
WorkspaceListResultIterator provides access to a complete listing of Workspace values.
type WorkspaceListResultIterator struct {
// contains filtered or unexported fields
}
func NewWorkspaceListResultIterator(page WorkspaceListResultPage) WorkspaceListResultIterator
Creates a new instance of the WorkspaceListResultIterator type.
func (iter *WorkspaceListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *WorkspaceListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter WorkspaceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter WorkspaceListResultIterator) Response() WorkspaceListResult
Response returns the raw server response from the last page request.
func (iter WorkspaceListResultIterator) Value() Workspace
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
WorkspaceListResultPage contains a page of Workspace values.
type WorkspaceListResultPage struct {
// contains filtered or unexported fields
}
func NewWorkspaceListResultPage(cur WorkspaceListResult, getNextPage func(context.Context, WorkspaceListResult) (WorkspaceListResult, error)) WorkspaceListResultPage
Creates a new instance of the WorkspaceListResultPage type.
func (page *WorkspaceListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *WorkspaceListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page WorkspaceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page WorkspaceListResultPage) Response() WorkspaceListResult
Response returns the raw server response from the last page request.
func (page WorkspaceListResultPage) Values() []Workspace
Values returns the slice of values for the current page or nil if there are no values.
WorkspaceProperties the workspace properties.
type WorkspaceProperties struct { // ManagedResourceGroupID - The managed resource group Id. ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` // Parameters - The workspace's custom parameters. Parameters *WorkspaceCustomParameters `json:"parameters,omitempty"` // ProvisioningState - READ-ONLY; The workspace provisioning state. Possible values include: 'ProvisioningStateAccepted', 'ProvisioningStateRunning', 'ProvisioningStateReady', 'ProvisioningStateCreating', 'ProvisioningStateCreated', 'ProvisioningStateDeleting', 'ProvisioningStateDeleted', 'ProvisioningStateCanceled', 'ProvisioningStateFailed', 'ProvisioningStateSucceeded', 'ProvisioningStateUpdating' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // UIDefinitionURI - The blob URI where the UI definition file is located. UIDefinitionURI *string `json:"uiDefinitionUri,omitempty"` // Authorizations - The workspace provider authorizations. Authorizations *[]WorkspaceProviderAuthorization `json:"authorizations,omitempty"` // CreatedBy - Indicates the Object ID, PUID and Application ID of entity that created the workspace. CreatedBy *CreatedBy `json:"createdBy,omitempty"` // UpdatedBy - Indicates the Object ID, PUID and Application ID of entity that last updated the workspace. UpdatedBy *CreatedBy `json:"updatedBy,omitempty"` // CreatedDateTime - Specifies the date and time when the workspace is created. CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` // WorkspaceID - READ-ONLY; The unique identifier of the databricks workspace in databricks control plane. WorkspaceID *string `json:"workspaceId,omitempty"` // WorkspaceURL - READ-ONLY; The workspace URL which is of the format 'adb-{workspaceId}.{random}.azuredatabricks.net' WorkspaceURL *string `json:"workspaceUrl,omitempty"` // StorageAccountIdentity - The details of Managed Identity of Storage Account StorageAccountIdentity *ManagedIdentityConfiguration `json:"storageAccountIdentity,omitempty"` }
func (wp WorkspaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WorkspaceProperties.
WorkspaceProviderAuthorization the workspace provider authorization.
type WorkspaceProviderAuthorization struct { // PrincipalID - The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the workspace resources. PrincipalID *uuid.UUID `json:"principalId,omitempty"` // RoleDefinitionID - The provider's role definition identifier. This role will define all the permissions that the provider must have on the workspace's container resource group. This role definition cannot have permission to delete the resource group. RoleDefinitionID *uuid.UUID `json:"roleDefinitionId,omitempty"` }
WorkspaceUpdate an update to a workspace.
type WorkspaceUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
func (wu WorkspaceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WorkspaceUpdate.
WorkspacesClient is the ARM Databricks
type WorkspacesClient struct { BaseClient }
func NewWorkspacesClient(subscriptionID string) WorkspacesClient
NewWorkspacesClient creates an instance of the WorkspacesClient client.
func NewWorkspacesClientWithBaseURI(baseURI string, subscriptionID string) WorkspacesClient
NewWorkspacesClientWithBaseURI creates an instance of the WorkspacesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, parameters Workspace, resourceGroupName string, workspaceName string) (result WorkspacesCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new workspace. Parameters: parameters - parameters supplied to the create or update a workspace. resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.
func (client WorkspacesClient) CreateOrUpdatePreparer(ctx context.Context, parameters Workspace, resourceGroupName string, workspaceName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (future WorkspacesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspacesDeleteFuture, err error)
Delete deletes the workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.
func (client WorkspacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client WorkspacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (client WorkspacesClient) DeleteSender(req *http.Request) (future WorkspacesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result Workspace, err error)
Get gets the workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.
func (client WorkspacesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client WorkspacesClient) GetResponder(resp *http.Response) (result Workspace, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client WorkspacesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WorkspaceListResultPage, err error)
ListByResourceGroup gets all the workspaces within a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (client WorkspacesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result WorkspaceListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client WorkspacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client WorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client WorkspacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result WorkspaceListResultPage, err error)
ListBySubscription gets all the workspaces within a subscription.
func (client WorkspacesClient) ListBySubscriptionComplete(ctx context.Context) (result WorkspaceListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client WorkspacesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (client WorkspacesClient) ListBySubscriptionResponder(resp *http.Response) (result WorkspaceListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (client WorkspacesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (client WorkspacesClient) Update(ctx context.Context, parameters WorkspaceUpdate, resourceGroupName string, workspaceName string) (result WorkspacesUpdateFuture, err error)
Update updates a workspace. Parameters: parameters - the update to the workspace. resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace.
func (client WorkspacesClient) UpdatePreparer(ctx context.Context, parameters WorkspaceUpdate, resourceGroupName string, workspaceName string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client WorkspacesClient) UpdateResponder(resp *http.Response) (result Workspace, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client WorkspacesClient) UpdateSender(req *http.Request) (future WorkspacesUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
WorkspacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type WorkspacesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(WorkspacesClient) (Workspace, error) }
func (future *WorkspacesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
WorkspacesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type WorkspacesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(WorkspacesClient) (autorest.Response, error) }
func (future *WorkspacesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
WorkspacesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type WorkspacesUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(WorkspacesClient) (Workspace, error) }
func (future *WorkspacesUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
Name | Synopsis |
---|---|
.. | |
databricksapi | Deprecated: Please note, this package has been deprecated. |