migrationconfigs

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-11-01/migrationconfigs Documentation

The migrationconfigs SDK allows for interaction with the Azure Resource Manager Service servicebus (API Version 2021-11-01).

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-sdk/resource-manager/servicebus/2021-11-01/migrationconfigs"

Client Initialization

client := migrationconfigs.NewMigrationConfigsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MigrationConfigsClient.CompleteMigration

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

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

Example Usage: MigrationConfigsClient.CreateAndStartMigration

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

payload := migrationconfigs.MigrationConfigProperties{
	// ...
}


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

Example Usage: MigrationConfigsClient.Delete

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

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

Example Usage: MigrationConfigsClient.Get

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

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: MigrationConfigsClient.List

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

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

Example Usage: MigrationConfigsClient.Revert

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateNamespaceID

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

ValidateNamespaceID checks that 'input' can be parsed as a Namespace ID

Types

type CompleteMigrationOperationResponse

type CompleteMigrationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateAndStartMigrationOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []MigrationConfigProperties
}

type ListOperationResponse

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

type MigrationConfigProperties

type MigrationConfigProperties struct {
	Id         *string                              `json:"id,omitempty"`
	Location   *string                              `json:"location,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *MigrationConfigPropertiesProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData               `json:"systemData,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type MigrationConfigPropertiesOperationPredicate

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

func (MigrationConfigPropertiesOperationPredicate) Matches

type MigrationConfigPropertiesProperties

type MigrationConfigPropertiesProperties struct {
	MigrationState                    *string `json:"migrationState,omitempty"`
	PendingReplicationOperationsCount *int64  `json:"pendingReplicationOperationsCount,omitempty"`
	PostMigrationName                 string  `json:"postMigrationName"`
	ProvisioningState                 *string `json:"provisioningState,omitempty"`
	TargetNamespace                   string  `json:"targetNamespace"`
}

type MigrationConfigsClient

type MigrationConfigsClient struct {
	Client *resourcemanager.Client
}

func NewMigrationConfigsClientWithBaseURI

func NewMigrationConfigsClientWithBaseURI(api environments.Api) (*MigrationConfigsClient, error)

func (MigrationConfigsClient) CompleteMigration

CompleteMigration ...

func (MigrationConfigsClient) CreateAndStartMigration

CreateAndStartMigration ...

func (MigrationConfigsClient) CreateAndStartMigrationThenPoll

func (c MigrationConfigsClient) CreateAndStartMigrationThenPoll(ctx context.Context, id NamespaceId, input MigrationConfigProperties) error

CreateAndStartMigrationThenPoll performs CreateAndStartMigration then polls until it's completed

func (MigrationConfigsClient) Delete

Delete ...

func (MigrationConfigsClient) Get

Get ...

func (MigrationConfigsClient) List

List ...

func (MigrationConfigsClient) ListComplete

ListComplete retrieves all the results into a single object

func (MigrationConfigsClient) ListCompleteMatchingPredicate

func (c MigrationConfigsClient) ListCompleteMatchingPredicate(ctx context.Context, id NamespaceId, predicate MigrationConfigPropertiesOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MigrationConfigsClient) Revert

Revert ...

type NamespaceId

type NamespaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	NamespaceName     string
}

NamespaceId is a struct representing the Resource ID for a Namespace

func NewNamespaceID

func NewNamespaceID(subscriptionId string, resourceGroupName string, namespaceName string) NamespaceId

NewNamespaceID returns a new NamespaceId struct

func ParseNamespaceID

func ParseNamespaceID(input string) (*NamespaceId, error)

ParseNamespaceID parses 'input' into a NamespaceId

func ParseNamespaceIDInsensitively

func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error)

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

func (NamespaceId) ID

func (id NamespaceId) ID() string

ID returns the formatted Namespace ID

func (NamespaceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Namespace ID

func (NamespaceId) String

func (id NamespaceId) String() string

String returns a human-readable description of this Namespace ID

type RevertOperationResponse

type RevertOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

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