managedinstancedtcs

package
v0.20240923.1142107 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

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

The managedinstancedtcs SDK allows for interaction with Azure Resource Manager 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/managedinstancedtcs"

Client Initialization

client := managedinstancedtcs.NewManagedInstanceDtcsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedInstanceDtcsClient.CreateOrUpdate

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

payload := managedinstancedtcs.ManagedInstanceDtc{
	// ...
}


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

Example Usage: ManagedInstanceDtcsClient.Get

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

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: ManagedInstanceDtcsClient.ListByManagedInstance

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

Types

type CreateOrUpdateOperationResponse

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

type GetOperationResponse

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

type ListByManagedInstanceCompleteResult

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

type ListByManagedInstanceCustomPager

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

type ListByManagedInstanceOperationResponse

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

type ManagedInstanceDtc

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

type ManagedInstanceDtcOperationPredicate

type ManagedInstanceDtcOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ManagedInstanceDtcOperationPredicate) Matches

type ManagedInstanceDtcProperties

type ManagedInstanceDtcProperties struct {
	DtcEnabled                  *bool                               `json:"dtcEnabled,omitempty"`
	DtcHostNameDnsSuffix        *string                             `json:"dtcHostNameDnsSuffix,omitempty"`
	ExternalDnsSuffixSearchList *[]string                           `json:"externalDnsSuffixSearchList,omitempty"`
	ProvisioningState           *ProvisioningState                  `json:"provisioningState,omitempty"`
	SecuritySettings            *ManagedInstanceDtcSecuritySettings `json:"securitySettings,omitempty"`
}

type ManagedInstanceDtcSecuritySettings

type ManagedInstanceDtcSecuritySettings struct {
	SnaLu6point2TransactionsEnabled         *bool                                                      `json:"snaLu6point2TransactionsEnabled,omitempty"`
	TransactionManagerCommunicationSettings *ManagedInstanceDtcTransactionManagerCommunicationSettings `json:"transactionManagerCommunicationSettings,omitempty"`
	XaTransactionsDefaultTimeout            *int64                                                     `json:"xaTransactionsDefaultTimeout,omitempty"`
	XaTransactionsEnabled                   *bool                                                      `json:"xaTransactionsEnabled,omitempty"`
	XaTransactionsMaximumTimeout            *int64                                                     `json:"xaTransactionsMaximumTimeout,omitempty"`
}

type ManagedInstanceDtcTransactionManagerCommunicationSettings

type ManagedInstanceDtcTransactionManagerCommunicationSettings struct {
	AllowInboundEnabled  *bool   `json:"allowInboundEnabled,omitempty"`
	AllowOutboundEnabled *bool   `json:"allowOutboundEnabled,omitempty"`
	Authentication       *string `json:"authentication,omitempty"`
}

type ManagedInstanceDtcsClient

type ManagedInstanceDtcsClient struct {
	Client *resourcemanager.Client
}

func NewManagedInstanceDtcsClientWithBaseURI

func NewManagedInstanceDtcsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceDtcsClient, error)

func (ManagedInstanceDtcsClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagedInstanceDtcsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ManagedInstanceDtcsClient) Get

Get ...

func (ManagedInstanceDtcsClient) ListByManagedInstance

ListByManagedInstance ...

func (ManagedInstanceDtcsClient) ListByManagedInstanceComplete

ListByManagedInstanceComplete retrieves all the results into a single object

func (ManagedInstanceDtcsClient) ListByManagedInstanceCompleteMatchingPredicate

func (c ManagedInstanceDtcsClient) ListByManagedInstanceCompleteMatchingPredicate(ctx context.Context, id commonids.SqlManagedInstanceId, predicate ManagedInstanceDtcOperationPredicate) (result ListByManagedInstanceCompleteResult, err error)

ListByManagedInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

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

Jump to

Keyboard shortcuts

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