README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases
Documentation
The databases
SDK allows for interaction with Azure Resource Manager kusto
(API Version 2023-08-15
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases"
Client Initialization
client := databases.NewDatabasesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DatabasesClient.AddPrincipals
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
payload := databases.DatabasePrincipalListRequest{
// ...
}
read, err := client.AddPrincipals(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DatabasesClient.CheckNameAvailability
ctx := context.TODO()
id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName")
payload := databases.CheckNameRequest{
// ...
}
read, err := client.CheckNameAvailability(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DatabasesClient.CreateOrUpdate
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
payload := databases.Database{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload, databases.DefaultCreateOrUpdateOperationOptions()); err != nil {
// handle the error
}
Example Usage: DatabasesClient.DatabaseInviteFollower
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
payload := databases.DatabaseInviteFollowerRequest{
// ...
}
read, err := client.DatabaseInviteFollower(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DatabasesClient.Delete
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: DatabasesClient.Get
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DatabasesClient.ListByCluster
ctx := context.TODO()
id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName")
// alternatively `client.ListByCluster(ctx, id, databases.DefaultListByClusterOperationOptions())` can be used to do batched pagination
items, err := client.ListByClusterComplete(ctx, id, databases.DefaultListByClusterOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: DatabasesClient.ListPrincipals
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
read, err := client.ListPrincipals(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DatabasesClient.RemovePrincipals
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
payload := databases.DatabasePrincipalListRequest{
// ...
}
read, err := client.RemovePrincipals(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DatabasesClient.Update
ctx := context.TODO()
id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName")
payload := databases.Database{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload, databases.DefaultUpdateOperationOptions()); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func PossibleValuesForCallerRole() []string
- func PossibleValuesForDatabasePrincipalRole() []string
- func PossibleValuesForDatabasePrincipalType() []string
- func PossibleValuesForDatabaseShareOrigin() []string
- func PossibleValuesForKind() []string
- func PossibleValuesForPrincipalsModificationKind() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForReason() []string
- func PossibleValuesForType() []string
- type AddPrincipalsOperationResponse
- type BaseDatabaseImpl
- type CallerRole
- type CheckNameAvailabilityOperationResponse
- type CheckNameRequest
- type CheckNameResult
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type Database
- type DatabaseInviteFollowerOperationResponse
- type DatabaseInviteFollowerRequest
- type DatabaseInviteFollowerResult
- type DatabaseOperationPredicate
- type DatabasePrincipal
- type DatabasePrincipalListRequest
- type DatabasePrincipalListResult
- type DatabasePrincipalRole
- type DatabasePrincipalType
- type DatabaseShareOrigin
- type DatabaseStatistics
- type DatabasesClient
- func (c DatabasesClient) AddPrincipals(ctx context.Context, id commonids.KustoDatabaseId, ...) (result AddPrincipalsOperationResponse, err error)
- func (c DatabasesClient) CheckNameAvailability(ctx context.Context, id commonids.KustoClusterId, input CheckNameRequest) (result CheckNameAvailabilityOperationResponse, err error)
- func (c DatabasesClient) CreateOrUpdate(ctx context.Context, id commonids.KustoDatabaseId, input Database, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c DatabasesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.KustoDatabaseId, input Database, ...) error
- func (c DatabasesClient) DatabaseInviteFollower(ctx context.Context, id commonids.KustoDatabaseId, ...) (result DatabaseInviteFollowerOperationResponse, err error)
- func (c DatabasesClient) Delete(ctx context.Context, id commonids.KustoDatabaseId) (result DeleteOperationResponse, err error)
- func (c DatabasesClient) DeleteThenPoll(ctx context.Context, id commonids.KustoDatabaseId) error
- func (c DatabasesClient) Get(ctx context.Context, id commonids.KustoDatabaseId) (result GetOperationResponse, err error)
- func (c DatabasesClient) ListByCluster(ctx context.Context, id commonids.KustoClusterId, ...) (result ListByClusterOperationResponse, err error)
- func (c DatabasesClient) ListByClusterComplete(ctx context.Context, id commonids.KustoClusterId, ...) (ListByClusterCompleteResult, error)
- func (c DatabasesClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id commonids.KustoClusterId, ...) (result ListByClusterCompleteResult, err error)
- func (c DatabasesClient) ListPrincipals(ctx context.Context, id commonids.KustoDatabaseId) (result ListPrincipalsOperationResponse, err error)
- func (c DatabasesClient) RemovePrincipals(ctx context.Context, id commonids.KustoDatabaseId, ...) (result RemovePrincipalsOperationResponse, err error)
- func (c DatabasesClient) Update(ctx context.Context, id commonids.KustoDatabaseId, input Database, ...) (result UpdateOperationResponse, err error)
- func (c DatabasesClient) UpdateThenPoll(ctx context.Context, id commonids.KustoDatabaseId, input Database, ...) error
- type DeleteOperationResponse
- type GetOperationResponse
- type KeyVaultProperties
- type Kind
- type ListByClusterCompleteResult
- type ListByClusterCustomPager
- type ListByClusterOperationOptions
- type ListByClusterOperationResponse
- type ListPrincipalsOperationResponse
- type PrincipalsModificationKind
- type ProvisioningState
- type RawDatabaseImpl
- type ReadOnlyFollowingDatabase
- type ReadOnlyFollowingDatabaseProperties
- type ReadWriteDatabase
- type ReadWriteDatabaseProperties
- type Reason
- type RemovePrincipalsOperationResponse
- type SuspensionDetails
- type TableLevelSharingProperties
- type Type
- type UpdateOperationOptions
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCallerRole ¶
func PossibleValuesForCallerRole() []string
func PossibleValuesForDatabasePrincipalRole ¶
func PossibleValuesForDatabasePrincipalRole() []string
func PossibleValuesForDatabasePrincipalType ¶
func PossibleValuesForDatabasePrincipalType() []string
func PossibleValuesForDatabaseShareOrigin ¶
func PossibleValuesForDatabaseShareOrigin() []string
func PossibleValuesForKind ¶
func PossibleValuesForKind() []string
func PossibleValuesForPrincipalsModificationKind ¶
func PossibleValuesForPrincipalsModificationKind() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForReason ¶
func PossibleValuesForReason() []string
func PossibleValuesForType ¶
func PossibleValuesForType() []string
Types ¶
type AddPrincipalsOperationResponse ¶
type AddPrincipalsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabasePrincipalListResult }
type BaseDatabaseImpl ¶ added in v0.20240920.1135249
type BaseDatabaseImpl struct { Id *string `json:"id,omitempty"` Kind Kind `json:"kind"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
func (BaseDatabaseImpl) Database ¶ added in v0.20240920.1135249
func (s BaseDatabaseImpl) Database() BaseDatabaseImpl
type CallerRole ¶
type CallerRole string
const ( CallerRoleAdmin CallerRole = "Admin" CallerRoleNone CallerRole = "None" )
func (*CallerRole) UnmarshalJSON ¶
func (s *CallerRole) UnmarshalJSON(bytes []byte) error
type CheckNameAvailabilityOperationResponse ¶
type CheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckNameResult }
type CheckNameRequest ¶
type CheckNameResult ¶
type CreateOrUpdateOperationOptions ¶
type CreateOrUpdateOperationOptions struct {
CallerRole *CallerRole
}
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type Database ¶
type Database interface {
Database() BaseDatabaseImpl
}
func UnmarshalDatabaseImplementation ¶ added in v0.20240920.1135249
type DatabaseInviteFollowerOperationResponse ¶
type DatabaseInviteFollowerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabaseInviteFollowerResult }
type DatabaseInviteFollowerRequest ¶
type DatabaseInviteFollowerRequest struct { InviteeEmail string `json:"inviteeEmail"` TableLevelSharingProperties *TableLevelSharingProperties `json:"tableLevelSharingProperties,omitempty"` }
type DatabaseInviteFollowerResult ¶
type DatabaseInviteFollowerResult struct {
GeneratedInvitation *string `json:"generatedInvitation,omitempty"`
}
type DatabaseOperationPredicate ¶
type DatabaseOperationPredicate struct { }
func (DatabaseOperationPredicate) Matches ¶
func (p DatabaseOperationPredicate) Matches(input Database) bool
type DatabasePrincipal ¶
type DatabasePrincipal struct { AppId *string `json:"appId,omitempty"` Email *string `json:"email,omitempty"` Fqn *string `json:"fqn,omitempty"` Name string `json:"name"` Role DatabasePrincipalRole `json:"role"` TenantName *string `json:"tenantName,omitempty"` Type DatabasePrincipalType `json:"type"` }
type DatabasePrincipalListRequest ¶
type DatabasePrincipalListRequest struct {
Value *[]DatabasePrincipal `json:"value,omitempty"`
}
type DatabasePrincipalListResult ¶
type DatabasePrincipalListResult struct {
Value *[]DatabasePrincipal `json:"value,omitempty"`
}
type DatabasePrincipalRole ¶
type DatabasePrincipalRole string
const ( DatabasePrincipalRoleAdmin DatabasePrincipalRole = "Admin" DatabasePrincipalRoleIngestor DatabasePrincipalRole = "Ingestor" DatabasePrincipalRoleMonitor DatabasePrincipalRole = "Monitor" DatabasePrincipalRoleUnrestrictedViewer DatabasePrincipalRole = "UnrestrictedViewer" DatabasePrincipalRoleUser DatabasePrincipalRole = "User" DatabasePrincipalRoleViewer DatabasePrincipalRole = "Viewer" )
func (*DatabasePrincipalRole) UnmarshalJSON ¶
func (s *DatabasePrincipalRole) UnmarshalJSON(bytes []byte) error
type DatabasePrincipalType ¶
type DatabasePrincipalType string
const ( DatabasePrincipalTypeApp DatabasePrincipalType = "App" DatabasePrincipalTypeGroup DatabasePrincipalType = "Group" DatabasePrincipalTypeUser DatabasePrincipalType = "User" )
func (*DatabasePrincipalType) UnmarshalJSON ¶
func (s *DatabasePrincipalType) UnmarshalJSON(bytes []byte) error
type DatabaseShareOrigin ¶
type DatabaseShareOrigin string
const ()
func (*DatabaseShareOrigin) UnmarshalJSON ¶
func (s *DatabaseShareOrigin) UnmarshalJSON(bytes []byte) error
type DatabaseStatistics ¶
type DatabaseStatistics struct {
Size *float64 `json:"size,omitempty"`
}
type DatabasesClient ¶
type DatabasesClient struct {
Client *resourcemanager.Client
}
func NewDatabasesClientWithBaseURI ¶
func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error)
func (DatabasesClient) AddPrincipals ¶
func (c DatabasesClient) AddPrincipals(ctx context.Context, id commonids.KustoDatabaseId, input DatabasePrincipalListRequest) (result AddPrincipalsOperationResponse, err error)
AddPrincipals ...
func (DatabasesClient) CheckNameAvailability ¶
func (c DatabasesClient) CheckNameAvailability(ctx context.Context, id commonids.KustoClusterId, input CheckNameRequest) (result CheckNameAvailabilityOperationResponse, err error)
CheckNameAvailability ...
func (DatabasesClient) CreateOrUpdate ¶
func (c DatabasesClient) CreateOrUpdate(ctx context.Context, id commonids.KustoDatabaseId, input Database, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DatabasesClient) CreateOrUpdateThenPoll ¶
func (c DatabasesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.KustoDatabaseId, input Database, options CreateOrUpdateOperationOptions) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (DatabasesClient) DatabaseInviteFollower ¶
func (c DatabasesClient) DatabaseInviteFollower(ctx context.Context, id commonids.KustoDatabaseId, input DatabaseInviteFollowerRequest) (result DatabaseInviteFollowerOperationResponse, err error)
DatabaseInviteFollower ...
func (DatabasesClient) Delete ¶
func (c DatabasesClient) Delete(ctx context.Context, id commonids.KustoDatabaseId) (result DeleteOperationResponse, err error)
Delete ...
func (DatabasesClient) DeleteThenPoll ¶
func (c DatabasesClient) DeleteThenPoll(ctx context.Context, id commonids.KustoDatabaseId) error
DeleteThenPoll performs Delete then polls until it's completed
func (DatabasesClient) Get ¶
func (c DatabasesClient) Get(ctx context.Context, id commonids.KustoDatabaseId) (result GetOperationResponse, err error)
Get ...
func (DatabasesClient) ListByCluster ¶
func (c DatabasesClient) ListByCluster(ctx context.Context, id commonids.KustoClusterId, options ListByClusterOperationOptions) (result ListByClusterOperationResponse, err error)
ListByCluster ...
func (DatabasesClient) ListByClusterComplete ¶
func (c DatabasesClient) ListByClusterComplete(ctx context.Context, id commonids.KustoClusterId, options ListByClusterOperationOptions) (ListByClusterCompleteResult, error)
ListByClusterComplete retrieves all the results into a single object
func (DatabasesClient) ListByClusterCompleteMatchingPredicate ¶
func (c DatabasesClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id commonids.KustoClusterId, options ListByClusterOperationOptions, predicate DatabaseOperationPredicate) (result ListByClusterCompleteResult, err error)
ListByClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DatabasesClient) ListPrincipals ¶
func (c DatabasesClient) ListPrincipals(ctx context.Context, id commonids.KustoDatabaseId) (result ListPrincipalsOperationResponse, err error)
ListPrincipals ...
func (DatabasesClient) RemovePrincipals ¶
func (c DatabasesClient) RemovePrincipals(ctx context.Context, id commonids.KustoDatabaseId, input DatabasePrincipalListRequest) (result RemovePrincipalsOperationResponse, err error)
RemovePrincipals ...
func (DatabasesClient) Update ¶
func (c DatabasesClient) Update(ctx context.Context, id commonids.KustoDatabaseId, input Database, options UpdateOperationOptions) (result UpdateOperationResponse, err error)
Update ...
func (DatabasesClient) UpdateThenPoll ¶
func (c DatabasesClient) UpdateThenPoll(ctx context.Context, id commonids.KustoDatabaseId, input Database, options UpdateOperationOptions) error
UpdateThenPoll performs Update then polls until it's completed
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type KeyVaultProperties ¶
type ListByClusterCustomPager ¶ added in v0.20240628.1153531
func (*ListByClusterCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByClusterCustomPager) NextPageLink() *odata.Link
type ListByClusterOperationOptions ¶
type ListByClusterOperationOptions struct {
Top *int64
}
func DefaultListByClusterOperationOptions ¶
func DefaultListByClusterOperationOptions() ListByClusterOperationOptions
func (ListByClusterOperationOptions) ToHeaders ¶
func (o ListByClusterOperationOptions) ToHeaders() *client.Headers
func (ListByClusterOperationOptions) ToOData ¶
func (o ListByClusterOperationOptions) ToOData() *odata.Query
func (ListByClusterOperationOptions) ToQuery ¶
func (o ListByClusterOperationOptions) ToQuery() *client.QueryParams
type ListPrincipalsOperationResponse ¶
type ListPrincipalsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabasePrincipalListResult }
type PrincipalsModificationKind ¶
type PrincipalsModificationKind string
const ( PrincipalsModificationKindNone PrincipalsModificationKind = "None" PrincipalsModificationKindReplace PrincipalsModificationKind = "Replace" PrincipalsModificationKindUnion PrincipalsModificationKind = "Union" )
func (*PrincipalsModificationKind) UnmarshalJSON ¶
func (s *PrincipalsModificationKind) UnmarshalJSON(bytes []byte) error
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 RawDatabaseImpl ¶
type RawDatabaseImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawDatabaseImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawDatabaseImpl) Database ¶ added in v0.20240920.1135249
func (s RawDatabaseImpl) Database() BaseDatabaseImpl
type ReadOnlyFollowingDatabase ¶
type ReadOnlyFollowingDatabase struct { Properties *ReadOnlyFollowingDatabaseProperties `json:"properties,omitempty"` Id *string `json:"id,omitempty"` Kind Kind `json:"kind"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
func (ReadOnlyFollowingDatabase) Database ¶ added in v0.20240920.1135249
func (s ReadOnlyFollowingDatabase) Database() BaseDatabaseImpl
func (ReadOnlyFollowingDatabase) MarshalJSON ¶
func (s ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error)
type ReadOnlyFollowingDatabaseProperties ¶
type ReadOnlyFollowingDatabaseProperties struct { AttachedDatabaseConfigurationName *string `json:"attachedDatabaseConfigurationName,omitempty"` HotCachePeriod *string `json:"hotCachePeriod,omitempty"` LeaderClusterResourceId *string `json:"leaderClusterResourceId,omitempty"` OriginalDatabaseName *string `json:"originalDatabaseName,omitempty"` PrincipalsModificationKind *PrincipalsModificationKind `json:"principalsModificationKind,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` SoftDeletePeriod *string `json:"softDeletePeriod,omitempty"` Statistics *DatabaseStatistics `json:"statistics,omitempty"` SuspensionDetails *SuspensionDetails `json:"suspensionDetails,omitempty"` TableLevelSharingProperties *TableLevelSharingProperties `json:"tableLevelSharingProperties,omitempty"` }
type ReadWriteDatabase ¶
type ReadWriteDatabase struct { Properties *ReadWriteDatabaseProperties `json:"properties,omitempty"` Id *string `json:"id,omitempty"` Kind Kind `json:"kind"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
func (ReadWriteDatabase) Database ¶ added in v0.20240920.1135249
func (s ReadWriteDatabase) Database() BaseDatabaseImpl
func (ReadWriteDatabase) MarshalJSON ¶
func (s ReadWriteDatabase) MarshalJSON() ([]byte, error)
type ReadWriteDatabaseProperties ¶
type ReadWriteDatabaseProperties struct { HotCachePeriod *string `json:"hotCachePeriod,omitempty"` IsFollowed *bool `json:"isFollowed,omitempty"` KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` SoftDeletePeriod *string `json:"softDeletePeriod,omitempty"` Statistics *DatabaseStatistics `json:"statistics,omitempty"` SuspensionDetails *SuspensionDetails `json:"suspensionDetails,omitempty"` }
type RemovePrincipalsOperationResponse ¶
type RemovePrincipalsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabasePrincipalListResult }
type SuspensionDetails ¶
type SuspensionDetails struct {
SuspensionStartDate *string `json:"suspensionStartDate,omitempty"`
}
func (*SuspensionDetails) GetSuspensionStartDateAsTime ¶
func (o *SuspensionDetails) GetSuspensionStartDateAsTime() (*time.Time, error)
func (*SuspensionDetails) SetSuspensionStartDateAsTime ¶
func (o *SuspensionDetails) SetSuspensionStartDateAsTime(input time.Time)
type TableLevelSharingProperties ¶
type TableLevelSharingProperties struct { ExternalTablesToExclude *[]string `json:"externalTablesToExclude,omitempty"` ExternalTablesToInclude *[]string `json:"externalTablesToInclude,omitempty"` FunctionsToExclude *[]string `json:"functionsToExclude,omitempty"` FunctionsToInclude *[]string `json:"functionsToInclude,omitempty"` MaterializedViewsToExclude *[]string `json:"materializedViewsToExclude,omitempty"` MaterializedViewsToInclude *[]string `json:"materializedViewsToInclude,omitempty"` TablesToExclude *[]string `json:"tablesToExclude,omitempty"` TablesToInclude *[]string `json:"tablesToInclude,omitempty"` }
type UpdateOperationOptions ¶
type UpdateOperationOptions struct {
CallerRole *CallerRole
}
func DefaultUpdateOperationOptions ¶
func DefaultUpdateOperationOptions() UpdateOperationOptions
func (UpdateOperationOptions) ToHeaders ¶
func (o UpdateOperationOptions) ToHeaders() *client.Headers
func (UpdateOperationOptions) ToOData ¶
func (o UpdateOperationOptions) ToOData() *odata.Query
func (UpdateOperationOptions) ToQuery ¶
func (o UpdateOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- constants.go
- method_addprincipals.go
- method_checknameavailability.go
- method_createorupdate.go
- method_databaseinvitefollower.go
- method_delete.go
- method_get.go
- method_listbycluster.go
- method_listprincipals.go
- method_removeprincipals.go
- method_update.go
- model_checknamerequest.go
- model_checknameresult.go
- model_database.go
- model_databaseinvitefollowerrequest.go
- model_databaseinvitefollowerresult.go
- model_databaseprincipal.go
- model_databaseprincipallistrequest.go
- model_databaseprincipallistresult.go
- model_databasestatistics.go
- model_keyvaultproperties.go
- model_readonlyfollowingdatabase.go
- model_readonlyfollowingdatabaseproperties.go
- model_readwritedatabase.go
- model_readwritedatabaseproperties.go
- model_suspensiondetails.go
- model_tablelevelsharingproperties.go
- predicates.go
- version.go