mongodbtasks

package
v0.20240201.1165154 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/mongodbtasks Documentation

The mongodbtasks SDK allows for interaction with the Azure Resource Manager Service datamigration (API Version 2021-06-30).

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/datamigration/2021-06-30/mongodbtasks"

Client Initialization

client := mongodbtasks.NewMongoDbTasksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCommandState

func PossibleValuesForCommandState() []string

func PossibleValuesForMongoDbErrorType

func PossibleValuesForMongoDbErrorType() []string

func PossibleValuesForMongoDbMigrationState

func PossibleValuesForMongoDbMigrationState() []string

func PossibleValuesForResultType

func PossibleValuesForResultType() []string

Types

type CommandProperties

type CommandProperties interface {
}

type CommandState

type CommandState string
const (
	CommandStateAccepted  CommandState = "Accepted"
	CommandStateFailed    CommandState = "Failed"
	CommandStateRunning   CommandState = "Running"
	CommandStateSucceeded CommandState = "Succeeded"
	CommandStateUnknown   CommandState = "Unknown"
)

func (*CommandState) UnmarshalJSON

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

type MongoDbCancelCommand

type MongoDbCancelCommand struct {
	Input *MongoDbCommandInput `json:"input,omitempty"`

	// Fields inherited from CommandProperties
	Errors *[]ODataError `json:"errors,omitempty"`
	State  *CommandState `json:"state,omitempty"`
}

func (MongoDbCancelCommand) MarshalJSON

func (s MongoDbCancelCommand) MarshalJSON() ([]byte, error)

type MongoDbCollectionProgress

type MongoDbCollectionProgress struct {

	// Fields inherited from MongoDbProgress
	BytesCopied     int64                   `json:"bytesCopied"`
	DocumentsCopied int64                   `json:"documentsCopied"`
	ElapsedTime     string                  `json:"elapsedTime"`
	Errors          map[string]MongoDbError `json:"errors"`
	EventsPending   int64                   `json:"eventsPending"`
	EventsReplayed  int64                   `json:"eventsReplayed"`
	LastEventTime   *string                 `json:"lastEventTime,omitempty"`
	LastReplayTime  *string                 `json:"lastReplayTime,omitempty"`
	Name            *string                 `json:"name,omitempty"`
	QualifiedName   *string                 `json:"qualifiedName,omitempty"`
	State           MongoDbMigrationState   `json:"state"`
	TotalBytes      int64                   `json:"totalBytes"`
	TotalDocuments  int64                   `json:"totalDocuments"`
}

func (*MongoDbCollectionProgress) GetLastEventTimeAsTime

func (o *MongoDbCollectionProgress) GetLastEventTimeAsTime() (*time.Time, error)

func (*MongoDbCollectionProgress) GetLastReplayTimeAsTime

func (o *MongoDbCollectionProgress) GetLastReplayTimeAsTime() (*time.Time, error)

func (MongoDbCollectionProgress) MarshalJSON

func (s MongoDbCollectionProgress) MarshalJSON() ([]byte, error)

func (*MongoDbCollectionProgress) SetLastEventTimeAsTime

func (o *MongoDbCollectionProgress) SetLastEventTimeAsTime(input time.Time)

func (*MongoDbCollectionProgress) SetLastReplayTimeAsTime

func (o *MongoDbCollectionProgress) SetLastReplayTimeAsTime(input time.Time)

type MongoDbCommandInput

type MongoDbCommandInput struct {
	ObjectName *string `json:"objectName,omitempty"`
}

type MongoDbDatabaseProgress

type MongoDbDatabaseProgress struct {
	Collections *map[string]MongoDbProgress `json:"collections,omitempty"`

	// Fields inherited from MongoDbProgress
	BytesCopied     int64                   `json:"bytesCopied"`
	DocumentsCopied int64                   `json:"documentsCopied"`
	ElapsedTime     string                  `json:"elapsedTime"`
	Errors          map[string]MongoDbError `json:"errors"`
	EventsPending   int64                   `json:"eventsPending"`
	EventsReplayed  int64                   `json:"eventsReplayed"`
	LastEventTime   *string                 `json:"lastEventTime,omitempty"`
	LastReplayTime  *string                 `json:"lastReplayTime,omitempty"`
	Name            *string                 `json:"name,omitempty"`
	QualifiedName   *string                 `json:"qualifiedName,omitempty"`
	State           MongoDbMigrationState   `json:"state"`
	TotalBytes      int64                   `json:"totalBytes"`
	TotalDocuments  int64                   `json:"totalDocuments"`
}

func (*MongoDbDatabaseProgress) GetLastEventTimeAsTime

func (o *MongoDbDatabaseProgress) GetLastEventTimeAsTime() (*time.Time, error)

func (*MongoDbDatabaseProgress) GetLastReplayTimeAsTime

func (o *MongoDbDatabaseProgress) GetLastReplayTimeAsTime() (*time.Time, error)

func (MongoDbDatabaseProgress) MarshalJSON

func (s MongoDbDatabaseProgress) MarshalJSON() ([]byte, error)

func (*MongoDbDatabaseProgress) SetLastEventTimeAsTime

func (o *MongoDbDatabaseProgress) SetLastEventTimeAsTime(input time.Time)

func (*MongoDbDatabaseProgress) SetLastReplayTimeAsTime

func (o *MongoDbDatabaseProgress) SetLastReplayTimeAsTime(input time.Time)

func (*MongoDbDatabaseProgress) UnmarshalJSON

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

type MongoDbError

type MongoDbError struct {
	Code    *string           `json:"code,omitempty"`
	Count   *int64            `json:"count,omitempty"`
	Message *string           `json:"message,omitempty"`
	Type    *MongoDbErrorType `json:"type,omitempty"`
}

type MongoDbErrorType

type MongoDbErrorType string
const (
	MongoDbErrorTypeError           MongoDbErrorType = "Error"
	MongoDbErrorTypeValidationError MongoDbErrorType = "ValidationError"
	MongoDbErrorTypeWarning         MongoDbErrorType = "Warning"
)

func (*MongoDbErrorType) UnmarshalJSON

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

type MongoDbFinishCommand

type MongoDbFinishCommand struct {
	Input *MongoDbFinishCommandInput `json:"input,omitempty"`

	// Fields inherited from CommandProperties
	Errors *[]ODataError `json:"errors,omitempty"`
	State  *CommandState `json:"state,omitempty"`
}

func (MongoDbFinishCommand) MarshalJSON

func (s MongoDbFinishCommand) MarshalJSON() ([]byte, error)

type MongoDbFinishCommandInput

type MongoDbFinishCommandInput struct {
	Immediate  bool    `json:"immediate"`
	ObjectName *string `json:"objectName,omitempty"`
}

type MongoDbMigrationProgress

type MongoDbMigrationProgress struct {
	Databases *map[string]MongoDbDatabaseProgress `json:"databases,omitempty"`

	// Fields inherited from MongoDbProgress
	BytesCopied     int64                   `json:"bytesCopied"`
	DocumentsCopied int64                   `json:"documentsCopied"`
	ElapsedTime     string                  `json:"elapsedTime"`
	Errors          map[string]MongoDbError `json:"errors"`
	EventsPending   int64                   `json:"eventsPending"`
	EventsReplayed  int64                   `json:"eventsReplayed"`
	LastEventTime   *string                 `json:"lastEventTime,omitempty"`
	LastReplayTime  *string                 `json:"lastReplayTime,omitempty"`
	Name            *string                 `json:"name,omitempty"`
	QualifiedName   *string                 `json:"qualifiedName,omitempty"`
	State           MongoDbMigrationState   `json:"state"`
	TotalBytes      int64                   `json:"totalBytes"`
	TotalDocuments  int64                   `json:"totalDocuments"`
}

func (*MongoDbMigrationProgress) GetLastEventTimeAsTime

func (o *MongoDbMigrationProgress) GetLastEventTimeAsTime() (*time.Time, error)

func (*MongoDbMigrationProgress) GetLastReplayTimeAsTime

func (o *MongoDbMigrationProgress) GetLastReplayTimeAsTime() (*time.Time, error)

func (MongoDbMigrationProgress) MarshalJSON

func (s MongoDbMigrationProgress) MarshalJSON() ([]byte, error)

func (*MongoDbMigrationProgress) SetLastEventTimeAsTime

func (o *MongoDbMigrationProgress) SetLastEventTimeAsTime(input time.Time)

func (*MongoDbMigrationProgress) SetLastReplayTimeAsTime

func (o *MongoDbMigrationProgress) SetLastReplayTimeAsTime(input time.Time)

type MongoDbMigrationState

type MongoDbMigrationState string
const (
	MongoDbMigrationStateCanceled        MongoDbMigrationState = "Canceled"
	MongoDbMigrationStateComplete        MongoDbMigrationState = "Complete"
	MongoDbMigrationStateCopying         MongoDbMigrationState = "Copying"
	MongoDbMigrationStateFailed          MongoDbMigrationState = "Failed"
	MongoDbMigrationStateFinalizing      MongoDbMigrationState = "Finalizing"
	MongoDbMigrationStateInitialReplay   MongoDbMigrationState = "InitialReplay"
	MongoDbMigrationStateInitializing    MongoDbMigrationState = "Initializing"
	MongoDbMigrationStateNotStarted      MongoDbMigrationState = "NotStarted"
	MongoDbMigrationStateReplaying       MongoDbMigrationState = "Replaying"
	MongoDbMigrationStateRestarting      MongoDbMigrationState = "Restarting"
	MongoDbMigrationStateValidatingInput MongoDbMigrationState = "ValidatingInput"
)

func (*MongoDbMigrationState) UnmarshalJSON

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

type MongoDbProgress

type MongoDbProgress interface {
}

type MongoDbRestartCommand

type MongoDbRestartCommand struct {
	Input *MongoDbCommandInput `json:"input,omitempty"`

	// Fields inherited from CommandProperties
	Errors *[]ODataError `json:"errors,omitempty"`
	State  *CommandState `json:"state,omitempty"`
}

func (MongoDbRestartCommand) MarshalJSON

func (s MongoDbRestartCommand) MarshalJSON() ([]byte, error)

type MongoDbTasksClient

type MongoDbTasksClient struct {
	Client *resourcemanager.Client
}

func NewMongoDbTasksClientWithBaseURI

func NewMongoDbTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*MongoDbTasksClient, error)

type ODataError

type ODataError struct {
	Code    *string       `json:"code,omitempty"`
	Details *[]ODataError `json:"details,omitempty"`
	Message *string       `json:"message,omitempty"`
}

type RawCommandPropertiesImpl

type RawCommandPropertiesImpl struct {
	Type   string
	Values map[string]interface{}
}

RawCommandPropertiesImpl 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).

type RawMongoDbProgressImpl

type RawMongoDbProgressImpl struct {
	Type   string
	Values map[string]interface{}
}

RawMongoDbProgressImpl 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).

type ResultType

type ResultType string
const (
	ResultTypeCollection ResultType = "Collection"
	ResultTypeDatabase   ResultType = "Database"
	ResultTypeMigration  ResultType = "Migration"
)

func (*ResultType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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