managedinstances

package
v0.20240903.1111904 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances Documentation

The managedinstances SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2023-08-01-preview).

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/sql/2023-08-01-preview/managedinstances"

Client Initialization

client := managedinstances.NewManagedInstancesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedInstancesClient.CreateOrUpdate

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

payload := managedinstances.ManagedInstance{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ManagedInstancesClient.Delete

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ManagedInstancesClient.Failover

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

if err := client.FailoverThenPoll(ctx, id, managedinstances.DefaultFailoverOperationOptions()); err != nil {
	// handle the error
}

Example Usage: ManagedInstancesClient.Get

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

read, err := client.Get(ctx, id, managedinstances.DefaultGetOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ManagedInstancesClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.List(ctx, id, managedinstances.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, managedinstances.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ManagedInstancesClient.ListByInstancePool

ctx := context.TODO()
id := managedinstances.NewInstancePoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "instancePoolValue")

// alternatively `client.ListByInstancePool(ctx, id, managedinstances.DefaultListByInstancePoolOperationOptions())` can be used to do batched pagination
items, err := client.ListByInstancePoolComplete(ctx, id, managedinstances.DefaultListByInstancePoolOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ManagedInstancesClient.ListByManagedInstance

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

// alternatively `client.ListByManagedInstance(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions())` can be used to do batched pagination
items, err := client.ListByManagedInstanceComplete(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ManagedInstancesClient.ListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id, managedinstances.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id, managedinstances.DefaultListByResourceGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ManagedInstancesClient.ListOutboundNetworkDependenciesByManagedInstance

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

// alternatively `client.ListOutboundNetworkDependenciesByManagedInstance(ctx, id)` can be used to do batched pagination
items, err := client.ListOutboundNetworkDependenciesByManagedInstanceComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ManagedInstancesClient.RefreshStatus

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

if err := client.RefreshStatusThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ManagedInstancesClient.Start

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

if err := client.StartThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ManagedInstancesClient.Stop

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

if err := client.StopThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ManagedInstancesClient.Update

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

payload := managedinstances.ManagedInstanceUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAdministratorType

func PossibleValuesForAdministratorType() []string

func PossibleValuesForAggregationFunctionType

func PossibleValuesForAggregationFunctionType() []string

func PossibleValuesForAuthMetadataLookupModes

func PossibleValuesForAuthMetadataLookupModes() []string

func PossibleValuesForBackupStorageRedundancy

func PossibleValuesForBackupStorageRedundancy() []string

func PossibleValuesForExternalGovernanceStatus

func PossibleValuesForExternalGovernanceStatus() []string

func PossibleValuesForFreemiumType

func PossibleValuesForFreemiumType() []string

func PossibleValuesForHybridSecondaryUsage

func PossibleValuesForHybridSecondaryUsage() []string

func PossibleValuesForHybridSecondaryUsageDetected

func PossibleValuesForHybridSecondaryUsageDetected() []string

func PossibleValuesForManagedInstanceDatabaseFormat

func PossibleValuesForManagedInstanceDatabaseFormat() []string

func PossibleValuesForManagedInstanceLicenseType

func PossibleValuesForManagedInstanceLicenseType() []string

func PossibleValuesForManagedInstanceProxyOverride

func PossibleValuesForManagedInstanceProxyOverride() []string

func PossibleValuesForManagedServerCreateMode

func PossibleValuesForManagedServerCreateMode() []string

func PossibleValuesForMetricType

func PossibleValuesForMetricType() []string

func PossibleValuesForPrincipalType

func PossibleValuesForPrincipalType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForQueryMetricUnitType

func PossibleValuesForQueryMetricUnitType() []string

func PossibleValuesForQueryTimeGrainType

func PossibleValuesForQueryTimeGrainType() []string

func PossibleValuesForReplicaType

func PossibleValuesForReplicaType() []string

func PossibleValuesForServicePrincipalType

func PossibleValuesForServicePrincipalType() []string

func ValidateInstancePoolID

func ValidateInstancePoolID(input interface{}, key string) (warnings []string, errors []error)

ValidateInstancePoolID checks that 'input' can be parsed as a Instance Pool ID

Types

type AdministratorType

type AdministratorType string
const (
	AdministratorTypeActiveDirectory AdministratorType = "ActiveDirectory"
)

func (*AdministratorType) UnmarshalJSON

func (s *AdministratorType) UnmarshalJSON(bytes []byte) error

type AggregationFunctionType

type AggregationFunctionType string
const (
	AggregationFunctionTypeAvg   AggregationFunctionType = "avg"
	AggregationFunctionTypeMax   AggregationFunctionType = "max"
	AggregationFunctionTypeMin   AggregationFunctionType = "min"
	AggregationFunctionTypeStdev AggregationFunctionType = "stdev"
	AggregationFunctionTypeSum   AggregationFunctionType = "sum"
)

func (*AggregationFunctionType) UnmarshalJSON

func (s *AggregationFunctionType) UnmarshalJSON(bytes []byte) error

type AuthMetadataLookupModes

type AuthMetadataLookupModes string
const (
	AuthMetadataLookupModesAzureAD AuthMetadataLookupModes = "AzureAD"
	AuthMetadataLookupModesPaired  AuthMetadataLookupModes = "Paired"
	AuthMetadataLookupModesWindows AuthMetadataLookupModes = "Windows"
)

func (*AuthMetadataLookupModes) UnmarshalJSON

func (s *AuthMetadataLookupModes) UnmarshalJSON(bytes []byte) error

type BackupStorageRedundancy

type BackupStorageRedundancy string
const (
	BackupStorageRedundancyGeo     BackupStorageRedundancy = "Geo"
	BackupStorageRedundancyGeoZone BackupStorageRedundancy = "GeoZone"
	BackupStorageRedundancyLocal   BackupStorageRedundancy = "Local"
	BackupStorageRedundancyZone    BackupStorageRedundancy = "Zone"
)

func (*BackupStorageRedundancy) UnmarshalJSON

func (s *BackupStorageRedundancy) UnmarshalJSON(bytes []byte) error

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagedInstance
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type EndpointDependency

type EndpointDependency struct {
	DomainName      *string           `json:"domainName,omitempty"`
	EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"`
}

type EndpointDetail

type EndpointDetail struct {
	Port *int64 `json:"port,omitempty"`
}

type ExternalGovernanceStatus

type ExternalGovernanceStatus string
const (
	ExternalGovernanceStatusDisabled ExternalGovernanceStatus = "Disabled"
	ExternalGovernanceStatusEnabled  ExternalGovernanceStatus = "Enabled"
)

func (*ExternalGovernanceStatus) UnmarshalJSON

func (s *ExternalGovernanceStatus) UnmarshalJSON(bytes []byte) error

type FailoverOperationOptions

type FailoverOperationOptions struct {
	ReplicaType *ReplicaType
}

func DefaultFailoverOperationOptions

func DefaultFailoverOperationOptions() FailoverOperationOptions

func (FailoverOperationOptions) ToHeaders

func (o FailoverOperationOptions) ToHeaders() *client.Headers

func (FailoverOperationOptions) ToOData

func (o FailoverOperationOptions) ToOData() *odata.Query

func (FailoverOperationOptions) ToQuery

type FailoverOperationResponse

type FailoverOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type FreemiumType

type FreemiumType string
const (
	FreemiumTypeFreemium FreemiumType = "Freemium"
	FreemiumTypeRegular  FreemiumType = "Regular"
)

func (*FreemiumType) UnmarshalJSON

func (s *FreemiumType) UnmarshalJSON(bytes []byte) error

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagedInstance
}

type HybridSecondaryUsage

type HybridSecondaryUsage string
const (
	HybridSecondaryUsageActive  HybridSecondaryUsage = "Active"
	HybridSecondaryUsagePassive HybridSecondaryUsage = "Passive"
)

func (*HybridSecondaryUsage) UnmarshalJSON

func (s *HybridSecondaryUsage) UnmarshalJSON(bytes []byte) error

type HybridSecondaryUsageDetected

type HybridSecondaryUsageDetected string
const (
	HybridSecondaryUsageDetectedActive  HybridSecondaryUsageDetected = "Active"
	HybridSecondaryUsageDetectedPassive HybridSecondaryUsageDetected = "Passive"
)

func (*HybridSecondaryUsageDetected) UnmarshalJSON

func (s *HybridSecondaryUsageDetected) UnmarshalJSON(bytes []byte) error

type InstancePoolId

type InstancePoolId struct {
	SubscriptionId    string
	ResourceGroupName string
	InstancePoolName  string
}

InstancePoolId is a struct representing the Resource ID for a Instance Pool

func NewInstancePoolID

func NewInstancePoolID(subscriptionId string, resourceGroupName string, instancePoolName string) InstancePoolId

NewInstancePoolID returns a new InstancePoolId struct

func ParseInstancePoolID

func ParseInstancePoolID(input string) (*InstancePoolId, error)

ParseInstancePoolID parses 'input' into a InstancePoolId

func ParseInstancePoolIDInsensitively

func ParseInstancePoolIDInsensitively(input string) (*InstancePoolId, error)

ParseInstancePoolIDInsensitively parses 'input' case-insensitively into a InstancePoolId note: this method should only be used for API response data and not user input

func (*InstancePoolId) FromParseResult

func (id *InstancePoolId) FromParseResult(input resourceids.ParseResult) error

func (InstancePoolId) ID

func (id InstancePoolId) ID() string

ID returns the formatted Instance Pool ID

func (InstancePoolId) Segments

func (id InstancePoolId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Instance Pool ID

func (InstancePoolId) String

func (id InstancePoolId) String() string

String returns a human-readable description of this Instance Pool ID

type ListByInstancePoolCompleteResult

type ListByInstancePoolCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ManagedInstance
}

type ListByInstancePoolCustomPager

type ListByInstancePoolCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByInstancePoolCustomPager) NextPageLink() *odata.Link

type ListByInstancePoolOperationOptions

type ListByInstancePoolOperationOptions struct {
	Expand *string
}

func DefaultListByInstancePoolOperationOptions

func DefaultListByInstancePoolOperationOptions() ListByInstancePoolOperationOptions

func (ListByInstancePoolOperationOptions) ToHeaders

func (ListByInstancePoolOperationOptions) ToOData

func (ListByInstancePoolOperationOptions) ToQuery

type ListByInstancePoolOperationResponse

type ListByInstancePoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedInstance
}

type ListByManagedInstanceCompleteResult

type ListByManagedInstanceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []TopQueries
}

type ListByManagedInstanceCustomPager

type ListByManagedInstanceCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link

type ListByManagedInstanceOperationOptions

type ListByManagedInstanceOperationOptions struct {
	AggregationFunction *AggregationFunctionType
	Databases           *string
	EndTime             *string
	Interval            *QueryTimeGrainType
	NumberOfQueries     *int64
	ObservationMetric   *MetricType
	StartTime           *string
}

func DefaultListByManagedInstanceOperationOptions

func DefaultListByManagedInstanceOperationOptions() ListByManagedInstanceOperationOptions

func (ListByManagedInstanceOperationOptions) ToHeaders

func (ListByManagedInstanceOperationOptions) ToOData

func (ListByManagedInstanceOperationOptions) ToQuery

type ListByManagedInstanceOperationResponse

type ListByManagedInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]TopQueries
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ManagedInstance
}

type ListByResourceGroupCustomPager

type ListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link

type ListByResourceGroupOperationOptions

type ListByResourceGroupOperationOptions struct {
	Expand *string
}

func DefaultListByResourceGroupOperationOptions

func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions

func (ListByResourceGroupOperationOptions) ToHeaders

func (ListByResourceGroupOperationOptions) ToOData

func (ListByResourceGroupOperationOptions) ToQuery

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedInstance
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ManagedInstance
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationOptions

type ListOperationOptions struct {
	Expand *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedInstance
}

type ListOutboundNetworkDependenciesByManagedInstanceCompleteResult

type ListOutboundNetworkDependenciesByManagedInstanceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []OutboundEnvironmentEndpoint
}

type ListOutboundNetworkDependenciesByManagedInstanceCustomPager

type ListOutboundNetworkDependenciesByManagedInstanceCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListOutboundNetworkDependenciesByManagedInstanceOperationResponse

type ListOutboundNetworkDependenciesByManagedInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]OutboundEnvironmentEndpoint
}

type ManagedInstance

type ManagedInstance struct {
	Id         *string                                  `json:"id,omitempty"`
	Identity   *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"`
	Location   string                                   `json:"location"`
	Name       *string                                  `json:"name,omitempty"`
	Properties *ManagedInstanceProperties               `json:"properties,omitempty"`
	Sku        *Sku                                     `json:"sku,omitempty"`
	Tags       *map[string]string                       `json:"tags,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type ManagedInstanceDatabaseFormat

type ManagedInstanceDatabaseFormat string
const (
	ManagedInstanceDatabaseFormatAlwaysUpToDate         ManagedInstanceDatabaseFormat = "AlwaysUpToDate"
	ManagedInstanceDatabaseFormatSQLServerTwoZeroTwoTwo ManagedInstanceDatabaseFormat = "SQLServer2022"
)

func (*ManagedInstanceDatabaseFormat) UnmarshalJSON

func (s *ManagedInstanceDatabaseFormat) UnmarshalJSON(bytes []byte) error

type ManagedInstanceExternalAdministrator

type ManagedInstanceExternalAdministrator struct {
	AdministratorType         *AdministratorType `json:"administratorType,omitempty"`
	AzureADOnlyAuthentication *bool              `json:"azureADOnlyAuthentication,omitempty"`
	Login                     *string            `json:"login,omitempty"`
	PrincipalType             *PrincipalType     `json:"principalType,omitempty"`
	Sid                       *string            `json:"sid,omitempty"`
	TenantId                  *string            `json:"tenantId,omitempty"`
}

type ManagedInstanceLicenseType

type ManagedInstanceLicenseType string
const (
	ManagedInstanceLicenseTypeBasePrice       ManagedInstanceLicenseType = "BasePrice"
	ManagedInstanceLicenseTypeLicenseIncluded ManagedInstanceLicenseType = "LicenseIncluded"
)

func (*ManagedInstanceLicenseType) UnmarshalJSON

func (s *ManagedInstanceLicenseType) UnmarshalJSON(bytes []byte) error

type ManagedInstanceOperationPredicate

type ManagedInstanceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (ManagedInstanceOperationPredicate) Matches

type ManagedInstancePecProperty

type ManagedInstancePecProperty struct {
	Id         *string                                             `json:"id,omitempty"`
	Properties *ManagedInstancePrivateEndpointConnectionProperties `json:"properties,omitempty"`
}

type ManagedInstancePrivateEndpointConnectionProperties

type ManagedInstancePrivateEndpointConnectionProperties struct {
	PrivateEndpoint                   *ManagedInstancePrivateEndpointProperty                   `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState *ManagedInstancePrivateLinkServiceConnectionStateProperty `json:"privateLinkServiceConnectionState,omitempty"`
	ProvisioningState                 *string                                                   `json:"provisioningState,omitempty"`
}

type ManagedInstancePrivateEndpointProperty

type ManagedInstancePrivateEndpointProperty struct {
	Id *string `json:"id,omitempty"`
}

type ManagedInstancePrivateLinkServiceConnectionStateProperty

type ManagedInstancePrivateLinkServiceConnectionStateProperty struct {
	ActionsRequired *string `json:"actionsRequired,omitempty"`
	Description     string  `json:"description"`
	Status          string  `json:"status"`
}

type ManagedInstanceProperties

type ManagedInstanceProperties struct {
	AdministratorLogin               *string                               `json:"administratorLogin,omitempty"`
	AdministratorLoginPassword       *string                               `json:"administratorLoginPassword,omitempty"`
	Administrators                   *ManagedInstanceExternalAdministrator `json:"administrators,omitempty"`
	AuthenticationMetadata           *AuthMetadataLookupModes              `json:"authenticationMetadata,omitempty"`
	Collation                        *string                               `json:"collation,omitempty"`
	CreateTime                       *string                               `json:"createTime,omitempty"`
	CurrentBackupStorageRedundancy   *BackupStorageRedundancy              `json:"currentBackupStorageRedundancy,omitempty"`
	DatabaseFormat                   *ManagedInstanceDatabaseFormat        `json:"databaseFormat,omitempty"`
	DnsZone                          *string                               `json:"dnsZone,omitempty"`
	DnsZonePartner                   *string                               `json:"dnsZonePartner,omitempty"`
	ExternalGovernanceStatus         *ExternalGovernanceStatus             `json:"externalGovernanceStatus,omitempty"`
	FullyQualifiedDomainName         *string                               `json:"fullyQualifiedDomainName,omitempty"`
	HybridSecondaryUsage             *HybridSecondaryUsage                 `json:"hybridSecondaryUsage,omitempty"`
	HybridSecondaryUsageDetected     *HybridSecondaryUsageDetected         `json:"hybridSecondaryUsageDetected,omitempty"`
	InstancePoolId                   *string                               `json:"instancePoolId,omitempty"`
	IsGeneralPurposeV2               *bool                                 `json:"isGeneralPurposeV2,omitempty"`
	KeyId                            *string                               `json:"keyId,omitempty"`
	LicenseType                      *ManagedInstanceLicenseType           `json:"licenseType,omitempty"`
	MaintenanceConfigurationId       *string                               `json:"maintenanceConfigurationId,omitempty"`
	ManagedInstanceCreateMode        *ManagedServerCreateMode              `json:"managedInstanceCreateMode,omitempty"`
	MinimalTlsVersion                *string                               `json:"minimalTlsVersion,omitempty"`
	PricingModel                     *FreemiumType                         `json:"pricingModel,omitempty"`
	PrimaryUserAssignedIdentityId    *string                               `json:"primaryUserAssignedIdentityId,omitempty"`
	PrivateEndpointConnections       *[]ManagedInstancePecProperty         `json:"privateEndpointConnections,omitempty"`
	ProvisioningState                *ProvisioningState                    `json:"provisioningState,omitempty"`
	ProxyOverride                    *ManagedInstanceProxyOverride         `json:"proxyOverride,omitempty"`
	PublicDataEndpointEnabled        *bool                                 `json:"publicDataEndpointEnabled,omitempty"`
	RequestedBackupStorageRedundancy *BackupStorageRedundancy              `json:"requestedBackupStorageRedundancy,omitempty"`
	RestorePointInTime               *string                               `json:"restorePointInTime,omitempty"`
	ServicePrincipal                 *ServicePrincipal                     `json:"servicePrincipal,omitempty"`
	SourceManagedInstanceId          *string                               `json:"sourceManagedInstanceId,omitempty"`
	State                            *string                               `json:"state,omitempty"`
	StorageIOps                      *int64                                `json:"storageIOps,omitempty"`
	StorageSizeInGB                  *int64                                `json:"storageSizeInGB,omitempty"`
	StorageThroughputMBps            *int64                                `json:"storageThroughputMBps,omitempty"`
	SubnetId                         *string                               `json:"subnetId,omitempty"`
	TimezoneId                       *string                               `json:"timezoneId,omitempty"`
	TotalMemoryMB                    *int64                                `json:"totalMemoryMB,omitempty"`
	VCores                           *int64                                `json:"vCores,omitempty"`
	VirtualClusterId                 *string                               `json:"virtualClusterId,omitempty"`
	ZoneRedundant                    *bool                                 `json:"zoneRedundant,omitempty"`
}

func (*ManagedInstanceProperties) GetCreateTimeAsTime

func (o *ManagedInstanceProperties) GetCreateTimeAsTime() (*time.Time, error)

func (*ManagedInstanceProperties) GetRestorePointInTimeAsTime

func (o *ManagedInstanceProperties) GetRestorePointInTimeAsTime() (*time.Time, error)

func (*ManagedInstanceProperties) SetCreateTimeAsTime

func (o *ManagedInstanceProperties) SetCreateTimeAsTime(input time.Time)

func (*ManagedInstanceProperties) SetRestorePointInTimeAsTime

func (o *ManagedInstanceProperties) SetRestorePointInTimeAsTime(input time.Time)

type ManagedInstanceProxyOverride

type ManagedInstanceProxyOverride string
const (
	ManagedInstanceProxyOverrideDefault  ManagedInstanceProxyOverride = "Default"
	ManagedInstanceProxyOverrideProxy    ManagedInstanceProxyOverride = "Proxy"
	ManagedInstanceProxyOverrideRedirect ManagedInstanceProxyOverride = "Redirect"
)

func (*ManagedInstanceProxyOverride) UnmarshalJSON

func (s *ManagedInstanceProxyOverride) UnmarshalJSON(bytes []byte) error

type ManagedInstanceUpdate

type ManagedInstanceUpdate struct {
	Identity   *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"`
	Properties *ManagedInstanceProperties               `json:"properties,omitempty"`
	Sku        *Sku                                     `json:"sku,omitempty"`
	Tags       *map[string]string                       `json:"tags,omitempty"`
}

type ManagedInstancesClient

type ManagedInstancesClient struct {
	Client *resourcemanager.Client
}

func NewManagedInstancesClientWithBaseURI

func NewManagedInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstancesClient, error)

func (ManagedInstancesClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagedInstancesClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ManagedInstancesClient) Delete

Delete ...

func (ManagedInstancesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ManagedInstancesClient) Failover

Failover ...

func (ManagedInstancesClient) FailoverThenPoll

FailoverThenPoll performs Failover then polls until it's completed

func (ManagedInstancesClient) Get

Get ...

func (ManagedInstancesClient) List

List ...

func (ManagedInstancesClient) ListByInstancePool

ListByInstancePool ...

func (ManagedInstancesClient) ListByInstancePoolComplete

ListByInstancePoolComplete retrieves all the results into a single object

func (ManagedInstancesClient) ListByInstancePoolCompleteMatchingPredicate

func (c ManagedInstancesClient) ListByInstancePoolCompleteMatchingPredicate(ctx context.Context, id InstancePoolId, options ListByInstancePoolOperationOptions, predicate ManagedInstanceOperationPredicate) (result ListByInstancePoolCompleteResult, err error)

ListByInstancePoolCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagedInstancesClient) ListByManagedInstance

ListByManagedInstance ...

func (ManagedInstancesClient) ListByManagedInstanceComplete

ListByManagedInstanceComplete retrieves all the results into a single object

func (ManagedInstancesClient) ListByManagedInstanceCompleteMatchingPredicate

ListByManagedInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagedInstancesClient) ListByResourceGroup

ListByResourceGroup ...

func (ManagedInstancesClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (ManagedInstancesClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagedInstancesClient) ListComplete

ListComplete retrieves all the results into a single object

func (ManagedInstancesClient) ListCompleteMatchingPredicate

func (c ManagedInstancesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate ManagedInstanceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstance

ListOutboundNetworkDependenciesByManagedInstance ...

func (ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstanceComplete

ListOutboundNetworkDependenciesByManagedInstanceComplete retrieves all the results into a single object

func (ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstanceCompleteMatchingPredicate

func (c ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstanceCompleteMatchingPredicate(ctx context.Context, id commonids.SqlManagedInstanceId, predicate OutboundEnvironmentEndpointOperationPredicate) (result ListOutboundNetworkDependenciesByManagedInstanceCompleteResult, err error)

ListOutboundNetworkDependenciesByManagedInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ManagedInstancesClient) RefreshStatus

RefreshStatus ...

func (ManagedInstancesClient) RefreshStatusThenPoll

func (c ManagedInstancesClient) RefreshStatusThenPoll(ctx context.Context, id commonids.SqlManagedInstanceId) error

RefreshStatusThenPoll performs RefreshStatus then polls until it's completed

func (ManagedInstancesClient) Start

Start ...

func (ManagedInstancesClient) StartThenPoll

StartThenPoll performs Start then polls until it's completed

func (ManagedInstancesClient) Stop

Stop ...

func (ManagedInstancesClient) StopThenPoll

StopThenPoll performs Stop then polls until it's completed

func (ManagedInstancesClient) Update

Update ...

func (ManagedInstancesClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type ManagedServerCreateMode

type ManagedServerCreateMode string
const (
	ManagedServerCreateModeDefault            ManagedServerCreateMode = "Default"
	ManagedServerCreateModePointInTimeRestore ManagedServerCreateMode = "PointInTimeRestore"
)

func (*ManagedServerCreateMode) UnmarshalJSON

func (s *ManagedServerCreateMode) UnmarshalJSON(bytes []byte) error

type MetricType

type MetricType string
const (
	MetricTypeCpu      MetricType = "cpu"
	MetricTypeDtu      MetricType = "dtu"
	MetricTypeDuration MetricType = "duration"
	MetricTypeIo       MetricType = "io"
	MetricTypeLogIo    MetricType = "logIo"
)

func (*MetricType) UnmarshalJSON

func (s *MetricType) UnmarshalJSON(bytes []byte) error

type OutboundEnvironmentEndpoint

type OutboundEnvironmentEndpoint struct {
	Category  *string               `json:"category,omitempty"`
	Endpoints *[]EndpointDependency `json:"endpoints,omitempty"`
}

type OutboundEnvironmentEndpointOperationPredicate

type OutboundEnvironmentEndpointOperationPredicate struct {
	Category *string
}

func (OutboundEnvironmentEndpointOperationPredicate) Matches

type PrincipalType

type PrincipalType string
const (
	PrincipalTypeApplication PrincipalType = "Application"
	PrincipalTypeGroup       PrincipalType = "Group"
	PrincipalTypeUser        PrincipalType = "User"
)

func (*PrincipalType) UnmarshalJSON

func (s *PrincipalType) UnmarshalJSON(bytes []byte) error

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled   ProvisioningState = "Canceled"
	ProvisioningStateCreated    ProvisioningState = "Created"
	ProvisioningStateFailed     ProvisioningState = "Failed"
	ProvisioningStateInProgress ProvisioningState = "InProgress"
	ProvisioningStateSucceeded  ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type QueryMetricInterval

type QueryMetricInterval struct {
	ExecutionCount    *int64                   `json:"executionCount,omitempty"`
	IntervalStartTime *string                  `json:"intervalStartTime,omitempty"`
	IntervalType      *QueryTimeGrainType      `json:"intervalType,omitempty"`
	Metrics           *[]QueryMetricProperties `json:"metrics,omitempty"`
}

type QueryMetricProperties

type QueryMetricProperties struct {
	Avg         *float64             `json:"avg,omitempty"`
	DisplayName *string              `json:"displayName,omitempty"`
	Max         *float64             `json:"max,omitempty"`
	Min         *float64             `json:"min,omitempty"`
	Name        *string              `json:"name,omitempty"`
	Stdev       *float64             `json:"stdev,omitempty"`
	Sum         *float64             `json:"sum,omitempty"`
	Unit        *QueryMetricUnitType `json:"unit,omitempty"`
	Value       *float64             `json:"value,omitempty"`
}

type QueryMetricUnitType

type QueryMetricUnitType string
const (
	QueryMetricUnitTypeCount        QueryMetricUnitType = "count"
	QueryMetricUnitTypeKB           QueryMetricUnitType = "KB"
	QueryMetricUnitTypeMicroseconds QueryMetricUnitType = "microseconds"
	QueryMetricUnitTypePercentage   QueryMetricUnitType = "percentage"
)

func (*QueryMetricUnitType) UnmarshalJSON

func (s *QueryMetricUnitType) UnmarshalJSON(bytes []byte) error

type QueryStatisticsProperties

type QueryStatisticsProperties struct {
	DatabaseName *string                `json:"databaseName,omitempty"`
	EndTime      *string                `json:"endTime,omitempty"`
	Intervals    *[]QueryMetricInterval `json:"intervals,omitempty"`
	QueryId      *string                `json:"queryId,omitempty"`
	StartTime    *string                `json:"startTime,omitempty"`
}

type QueryTimeGrainType

type QueryTimeGrainType string
const (
	QueryTimeGrainTypePOneD  QueryTimeGrainType = "P1D"
	QueryTimeGrainTypePTOneH QueryTimeGrainType = "PT1H"
)

func (*QueryTimeGrainType) UnmarshalJSON

func (s *QueryTimeGrainType) UnmarshalJSON(bytes []byte) error

type RefreshExternalGovernanceStatusOperationResultMI

type RefreshExternalGovernanceStatusOperationResultMI struct {
	Id         *string                                                     `json:"id,omitempty"`
	Name       *string                                                     `json:"name,omitempty"`
	Properties *RefreshExternalGovernanceStatusOperationResultPropertiesMI `json:"properties,omitempty"`
	Type       *string                                                     `json:"type,omitempty"`
}

type RefreshExternalGovernanceStatusOperationResultPropertiesMI

type RefreshExternalGovernanceStatusOperationResultPropertiesMI struct {
	ErrorMessage        *string `json:"errorMessage,omitempty"`
	ManagedInstanceName *string `json:"managedInstanceName,omitempty"`
	QueuedTime          *string `json:"queuedTime,omitempty"`
	RequestId           *string `json:"requestId,omitempty"`
	RequestType         *string `json:"requestType,omitempty"`
	Status              *string `json:"status,omitempty"`
}

type RefreshStatusOperationResponse

type RefreshStatusOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RefreshExternalGovernanceStatusOperationResultMI
}

type ReplicaType

type ReplicaType string
const (
	ReplicaTypePrimary           ReplicaType = "Primary"
	ReplicaTypeReadableSecondary ReplicaType = "ReadableSecondary"
)

func (*ReplicaType) UnmarshalJSON

func (s *ReplicaType) UnmarshalJSON(bytes []byte) error

type ServicePrincipal

type ServicePrincipal struct {
	ClientId    *string               `json:"clientId,omitempty"`
	PrincipalId *string               `json:"principalId,omitempty"`
	TenantId    *string               `json:"tenantId,omitempty"`
	Type        *ServicePrincipalType `json:"type,omitempty"`
}

type ServicePrincipalType

type ServicePrincipalType string
const (
	ServicePrincipalTypeNone           ServicePrincipalType = "None"
	ServicePrincipalTypeSystemAssigned ServicePrincipalType = "SystemAssigned"
)

func (*ServicePrincipalType) UnmarshalJSON

func (s *ServicePrincipalType) UnmarshalJSON(bytes []byte) error

type Sku

type Sku struct {
	Capacity *int64  `json:"capacity,omitempty"`
	Family   *string `json:"family,omitempty"`
	Name     string  `json:"name"`
	Size     *string `json:"size,omitempty"`
	Tier     *string `json:"tier,omitempty"`
}

type StartOperationResponse

type StartOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagedInstance
}

type StopOperationResponse

type StopOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagedInstance
}

type TopQueries

type TopQueries struct {
	AggregationFunction *string                      `json:"aggregationFunction,omitempty"`
	EndTime             *string                      `json:"endTime,omitempty"`
	IntervalType        *QueryTimeGrainType          `json:"intervalType,omitempty"`
	NumberOfQueries     *int64                       `json:"numberOfQueries,omitempty"`
	ObservationMetric   *string                      `json:"observationMetric,omitempty"`
	Queries             *[]QueryStatisticsProperties `json:"queries,omitempty"`
	StartTime           *string                      `json:"startTime,omitempty"`
}

type TopQueriesOperationPredicate

type TopQueriesOperationPredicate struct {
	AggregationFunction *string
	EndTime             *string
	NumberOfQueries     *int64
	ObservationMetric   *string
	StartTime           *string
}

func (TopQueriesOperationPredicate) Matches

func (p TopQueriesOperationPredicate) Matches(input TopQueries) bool

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagedInstance
}

Jump to

Keyboard shortcuts

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