Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForReason() []string
- func PossibleValuesForScriptType() []string
- func ValidateScriptID(input interface{}, key string) (warnings []string, errors []error)
- type CheckNameAvailabilityOperationResponse
- type CheckNameResult
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByDatabaseOperationResponse
- type ProvisioningState
- type Reason
- type Script
- type ScriptCheckNameRequest
- type ScriptId
- type ScriptListResult
- type ScriptProperties
- type ScriptType
- type ScriptsClient
- func (c ScriptsClient) CheckNameAvailability(ctx context.Context, id commonids.KustoDatabaseId, ...) (result CheckNameAvailabilityOperationResponse, err error)
- func (c ScriptsClient) CreateOrUpdate(ctx context.Context, id ScriptId, input Script) (result CreateOrUpdateOperationResponse, err error)
- func (c ScriptsClient) CreateOrUpdateThenPoll(ctx context.Context, id ScriptId, input Script) error
- func (c ScriptsClient) Delete(ctx context.Context, id ScriptId) (result DeleteOperationResponse, err error)
- func (c ScriptsClient) DeleteThenPoll(ctx context.Context, id ScriptId) error
- func (c ScriptsClient) Get(ctx context.Context, id ScriptId) (result GetOperationResponse, err error)
- func (c ScriptsClient) ListByDatabase(ctx context.Context, id commonids.KustoDatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c ScriptsClient) Update(ctx context.Context, id ScriptId, input Script) (result UpdateOperationResponse, err error)
- func (c ScriptsClient) UpdateThenPoll(ctx context.Context, id ScriptId, input Script) error
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForReason ¶
func PossibleValuesForReason() []string
func PossibleValuesForScriptType ¶
func PossibleValuesForScriptType() []string
func ValidateScriptID ¶
ValidateScriptID checks that 'input' can be parsed as a Script ID
Types ¶
type CheckNameAvailabilityOperationResponse ¶
type CheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckNameResult }
type CheckNameResult ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ScriptListResult }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMoving ProvisioningState = "Moving" ProvisioningStateRunning ProvisioningState = "Running" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type Script ¶
type Script struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ScriptProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ScriptCheckNameRequest ¶
type ScriptCheckNameRequest struct { Name string `json:"name"` Type ScriptType `json:"type"` }
type ScriptId ¶
type ScriptId struct { SubscriptionId string ResourceGroupName string ClusterName string DatabaseName string ScriptName string }
ScriptId is a struct representing the Resource ID for a Script
func NewScriptID ¶
func NewScriptID(subscriptionId string, resourceGroupName string, clusterName string, databaseName string, scriptName string) ScriptId
NewScriptID returns a new ScriptId struct
func ParseScriptID ¶
ParseScriptID parses 'input' into a ScriptId
func ParseScriptIDInsensitively ¶
ParseScriptIDInsensitively parses 'input' case-insensitively into a ScriptId note: this method should only be used for API response data and not user input
func (*ScriptId) FromParseResult ¶
func (id *ScriptId) FromParseResult(input resourceids.ParseResult) error
func (ScriptId) Segments ¶
func (id ScriptId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Script ID
type ScriptListResult ¶
type ScriptListResult struct {
Value *[]Script `json:"value,omitempty"`
}
type ScriptProperties ¶
type ScriptProperties struct { ContinueOnErrors *bool `json:"continueOnErrors,omitempty"` ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ScriptContent *string `json:"scriptContent,omitempty"` ScriptUrl *string `json:"scriptUrl,omitempty"` ScriptUrlSasToken *string `json:"scriptUrlSasToken,omitempty"` }
type ScriptType ¶
type ScriptType string
const (
ScriptTypeMicrosoftPointKustoClustersDatabasesScripts ScriptType = "Microsoft.Kusto/clusters/databases/scripts"
)
func (*ScriptType) UnmarshalJSON ¶
func (s *ScriptType) UnmarshalJSON(bytes []byte) error
type ScriptsClient ¶
type ScriptsClient struct {
Client *resourcemanager.Client
}
func NewScriptsClientWithBaseURI ¶
func NewScriptsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScriptsClient, error)
func (ScriptsClient) CheckNameAvailability ¶
func (c ScriptsClient) CheckNameAvailability(ctx context.Context, id commonids.KustoDatabaseId, input ScriptCheckNameRequest) (result CheckNameAvailabilityOperationResponse, err error)
CheckNameAvailability ...
func (ScriptsClient) CreateOrUpdate ¶
func (c ScriptsClient) CreateOrUpdate(ctx context.Context, id ScriptId, input Script) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ScriptsClient) CreateOrUpdateThenPoll ¶
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ScriptsClient) Delete ¶
func (c ScriptsClient) Delete(ctx context.Context, id ScriptId) (result DeleteOperationResponse, err error)
Delete ...
func (ScriptsClient) DeleteThenPoll ¶
func (c ScriptsClient) DeleteThenPoll(ctx context.Context, id ScriptId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ScriptsClient) Get ¶
func (c ScriptsClient) Get(ctx context.Context, id ScriptId) (result GetOperationResponse, err error)
Get ...
func (ScriptsClient) ListByDatabase ¶
func (c ScriptsClient) ListByDatabase(ctx context.Context, id commonids.KustoDatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (ScriptsClient) Update ¶
func (c ScriptsClient) Update(ctx context.Context, id ScriptId, input Script) (result UpdateOperationResponse, err error)
Update ...
func (ScriptsClient) UpdateThenPoll ¶
UpdateThenPoll performs Update then polls until it's completed
Source Files ¶
- client.go
- constants.go
- id_script.go
- method_checknameavailability.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbydatabase.go
- method_update.go
- model_checknameresult.go
- model_script.go
- model_scriptchecknamerequest.go
- model_scriptlistresult.go
- model_scriptproperties.go
- version.go