replicationjobs

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: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationjobs Documentation

The replicationjobs SDK allows for interaction with Azure Resource Manager recoveryservicessiterecovery (API Version 2022-10-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/recoveryservicessiterecovery/2022-10-01/replicationjobs"

Client Initialization

client := replicationjobs.NewReplicationJobsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationJobsClient.Cancel

ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "jobName")

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

Example Usage: ReplicationJobsClient.Export

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

payload := replicationjobs.JobQueryParameter{
	// ...
}


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

Example Usage: ReplicationJobsClient.Get

ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "jobName")

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

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

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

Example Usage: ReplicationJobsClient.Restart

ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "jobName")

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

Example Usage: ReplicationJobsClient.Resume

ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "jobName")

payload := replicationjobs.ResumeJobParams{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForExportJobOutputSerializationType

func PossibleValuesForExportJobOutputSerializationType() []string

func ValidateReplicationJobID

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

ValidateReplicationJobID checks that 'input' can be parsed as a Replication Job ID

func ValidateVaultID

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

ValidateVaultID checks that 'input' can be parsed as a Vault ID

Types

type ASRTask

type ASRTask struct {
	AllowedActions         *[]string          `json:"allowedActions,omitempty"`
	CustomDetails          TaskTypeDetails    `json:"customDetails"`
	EndTime                *string            `json:"endTime,omitempty"`
	Errors                 *[]JobErrorDetails `json:"errors,omitempty"`
	FriendlyName           *string            `json:"friendlyName,omitempty"`
	GroupTaskCustomDetails GroupTaskDetails   `json:"groupTaskCustomDetails"`
	Name                   *string            `json:"name,omitempty"`
	StartTime              *string            `json:"startTime,omitempty"`
	State                  *string            `json:"state,omitempty"`
	StateDescription       *string            `json:"stateDescription,omitempty"`
	TaskId                 *string            `json:"taskId,omitempty"`
	TaskType               *string            `json:"taskType,omitempty"`
}

func (*ASRTask) GetEndTimeAsTime

func (o *ASRTask) GetEndTimeAsTime() (*time.Time, error)

func (*ASRTask) GetStartTimeAsTime

func (o *ASRTask) GetStartTimeAsTime() (*time.Time, error)

func (*ASRTask) SetEndTimeAsTime

func (o *ASRTask) SetEndTimeAsTime(input time.Time)

func (*ASRTask) SetStartTimeAsTime

func (o *ASRTask) SetStartTimeAsTime(input time.Time)

func (*ASRTask) UnmarshalJSON

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

type AsrJobDetails

type AsrJobDetails struct {
	AffectedObjectDetails *map[string]string `json:"affectedObjectDetails,omitempty"`
	InstanceType          string             `json:"instanceType"`
}

func (AsrJobDetails) JobDetails added in v0.20240920.1135249

func (s AsrJobDetails) JobDetails() BaseJobDetailsImpl

func (AsrJobDetails) MarshalJSON

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

type AutomationRunbookTaskDetails

type AutomationRunbookTaskDetails struct {
	AccountName         *string `json:"accountName,omitempty"`
	CloudServiceName    *string `json:"cloudServiceName,omitempty"`
	IsPrimarySideScript *bool   `json:"isPrimarySideScript,omitempty"`
	JobId               *string `json:"jobId,omitempty"`
	JobOutput           *string `json:"jobOutput,omitempty"`
	Name                *string `json:"name,omitempty"`
	RunbookId           *string `json:"runbookId,omitempty"`
	RunbookName         *string `json:"runbookName,omitempty"`
	SubscriptionId      *string `json:"subscriptionId,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (AutomationRunbookTaskDetails) MarshalJSON

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

func (AutomationRunbookTaskDetails) TaskTypeDetails added in v0.20240920.1135249

type BaseGroupTaskDetailsImpl added in v0.20240920.1135249

type BaseGroupTaskDetailsImpl struct {
	ChildTasks   *[]ASRTask `json:"childTasks,omitempty"`
	InstanceType string     `json:"instanceType"`
}

func (BaseGroupTaskDetailsImpl) GroupTaskDetails added in v0.20240920.1135249

type BaseJobDetailsImpl added in v0.20240920.1135249

type BaseJobDetailsImpl struct {
	AffectedObjectDetails *map[string]string `json:"affectedObjectDetails,omitempty"`
	InstanceType          string             `json:"instanceType"`
}

func (BaseJobDetailsImpl) JobDetails added in v0.20240920.1135249

func (s BaseJobDetailsImpl) JobDetails() BaseJobDetailsImpl

type BaseTaskTypeDetailsImpl added in v0.20240920.1135249

type BaseTaskTypeDetailsImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseTaskTypeDetailsImpl) TaskTypeDetails added in v0.20240920.1135249

type CancelOperationResponse

type CancelOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Job
}

type ConsistencyCheckTaskDetails

type ConsistencyCheckTaskDetails struct {
	VMDetails *[]InconsistentVMDetails `json:"vmDetails,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (ConsistencyCheckTaskDetails) MarshalJSON

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

func (ConsistencyCheckTaskDetails) TaskTypeDetails added in v0.20240920.1135249

type ExportJobDetails

type ExportJobDetails struct {
	BlobUri  *string `json:"blobUri,omitempty"`
	SasToken *string `json:"sasToken,omitempty"`

	AffectedObjectDetails *map[string]string `json:"affectedObjectDetails,omitempty"`
	InstanceType          string             `json:"instanceType"`
}

func (ExportJobDetails) JobDetails added in v0.20240920.1135249

func (s ExportJobDetails) JobDetails() BaseJobDetailsImpl

func (ExportJobDetails) MarshalJSON

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

type ExportJobOutputSerializationType

type ExportJobOutputSerializationType string
const (
	ExportJobOutputSerializationTypeExcel ExportJobOutputSerializationType = "Excel"
	ExportJobOutputSerializationTypeJson  ExportJobOutputSerializationType = "Json"
	ExportJobOutputSerializationTypeXml   ExportJobOutputSerializationType = "Xml"
)

func (*ExportJobOutputSerializationType) UnmarshalJSON

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

type ExportOperationResponse

type ExportOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Job
}

type FabricReplicationGroupTaskDetails

type FabricReplicationGroupTaskDetails struct {
	SkippedReason       *string `json:"skippedReason,omitempty"`
	SkippedReasonString *string `json:"skippedReasonString,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (FabricReplicationGroupTaskDetails) MarshalJSON

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

func (FabricReplicationGroupTaskDetails) TaskTypeDetails added in v0.20240920.1135249

type FailoverJobDetails

type FailoverJobDetails struct {
	ProtectedItemDetails *[]FailoverReplicationProtectedItemDetails `json:"protectedItemDetails,omitempty"`

	AffectedObjectDetails *map[string]string `json:"affectedObjectDetails,omitempty"`
	InstanceType          string             `json:"instanceType"`
}

func (FailoverJobDetails) JobDetails added in v0.20240920.1135249

func (s FailoverJobDetails) JobDetails() BaseJobDetailsImpl

func (FailoverJobDetails) MarshalJSON

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

type FailoverReplicationProtectedItemDetails

type FailoverReplicationProtectedItemDetails struct {
	FriendlyName            *string `json:"friendlyName,omitempty"`
	Name                    *string `json:"name,omitempty"`
	NetworkConnectionStatus *string `json:"networkConnectionStatus,omitempty"`
	NetworkFriendlyName     *string `json:"networkFriendlyName,omitempty"`
	RecoveryPointId         *string `json:"recoveryPointId,omitempty"`
	RecoveryPointTime       *string `json:"recoveryPointTime,omitempty"`
	Subnet                  *string `json:"subnet,omitempty"`
	TestVMFriendlyName      *string `json:"testVmFriendlyName,omitempty"`
	TestVMName              *string `json:"testVmName,omitempty"`
}

func (*FailoverReplicationProtectedItemDetails) GetRecoveryPointTimeAsTime

func (o *FailoverReplicationProtectedItemDetails) GetRecoveryPointTimeAsTime() (*time.Time, error)

func (*FailoverReplicationProtectedItemDetails) SetRecoveryPointTimeAsTime

func (o *FailoverReplicationProtectedItemDetails) SetRecoveryPointTimeAsTime(input time.Time)

type GetOperationResponse

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

type GroupTaskDetails

type GroupTaskDetails interface {
	GroupTaskDetails() BaseGroupTaskDetailsImpl
}

func UnmarshalGroupTaskDetailsImplementation added in v0.20240920.1135249

func UnmarshalGroupTaskDetailsImplementation(input []byte) (GroupTaskDetails, error)

type InconsistentVMDetails

type InconsistentVMDetails struct {
	CloudName          *string   `json:"cloudName,omitempty"`
	Details            *[]string `json:"details,omitempty"`
	ErrorIds           *[]string `json:"errorIds,omitempty"`
	VirtualMachineName *string   `json:"vmName,omitempty"`
}

type InlineWorkflowTaskDetails

type InlineWorkflowTaskDetails struct {
	WorkflowIds *[]string `json:"workflowIds,omitempty"`

	ChildTasks   *[]ASRTask `json:"childTasks,omitempty"`
	InstanceType string     `json:"instanceType"`
}

func (InlineWorkflowTaskDetails) GroupTaskDetails added in v0.20240920.1135249

func (InlineWorkflowTaskDetails) MarshalJSON

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

type Job

type Job struct {
	Id         *string        `json:"id,omitempty"`
	Location   *string        `json:"location,omitempty"`
	Name       *string        `json:"name,omitempty"`
	Properties *JobProperties `json:"properties,omitempty"`
	Type       *string        `json:"type,omitempty"`
}

type JobDetails

type JobDetails interface {
	JobDetails() BaseJobDetailsImpl
}

func UnmarshalJobDetailsImplementation added in v0.20240920.1135249

func UnmarshalJobDetailsImplementation(input []byte) (JobDetails, error)

type JobEntity

type JobEntity struct {
	JobFriendlyName    *string `json:"jobFriendlyName,omitempty"`
	JobId              *string `json:"jobId,omitempty"`
	JobScenarioName    *string `json:"jobScenarioName,omitempty"`
	TargetInstanceType *string `json:"targetInstanceType,omitempty"`
	TargetObjectId     *string `json:"targetObjectId,omitempty"`
	TargetObjectName   *string `json:"targetObjectName,omitempty"`
}

type JobErrorDetails

type JobErrorDetails struct {
	CreationTime         *string        `json:"creationTime,omitempty"`
	ErrorLevel           *string        `json:"errorLevel,omitempty"`
	ProviderErrorDetails *ProviderError `json:"providerErrorDetails,omitempty"`
	ServiceErrorDetails  *ServiceError  `json:"serviceErrorDetails,omitempty"`
	TaskId               *string        `json:"taskId,omitempty"`
}

func (*JobErrorDetails) GetCreationTimeAsTime

func (o *JobErrorDetails) GetCreationTimeAsTime() (*time.Time, error)

func (*JobErrorDetails) SetCreationTimeAsTime

func (o *JobErrorDetails) SetCreationTimeAsTime(input time.Time)

type JobOperationPredicate

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

func (JobOperationPredicate) Matches

func (p JobOperationPredicate) Matches(input Job) bool

type JobProperties

type JobProperties struct {
	ActivityId         *string            `json:"activityId,omitempty"`
	AllowedActions     *[]string          `json:"allowedActions,omitempty"`
	CustomDetails      JobDetails         `json:"customDetails"`
	EndTime            *string            `json:"endTime,omitempty"`
	Errors             *[]JobErrorDetails `json:"errors,omitempty"`
	FriendlyName       *string            `json:"friendlyName,omitempty"`
	ScenarioName       *string            `json:"scenarioName,omitempty"`
	StartTime          *string            `json:"startTime,omitempty"`
	State              *string            `json:"state,omitempty"`
	StateDescription   *string            `json:"stateDescription,omitempty"`
	TargetInstanceType *string            `json:"targetInstanceType,omitempty"`
	TargetObjectId     *string            `json:"targetObjectId,omitempty"`
	TargetObjectName   *string            `json:"targetObjectName,omitempty"`
	Tasks              *[]ASRTask         `json:"tasks,omitempty"`
}

func (*JobProperties) GetEndTimeAsTime

func (o *JobProperties) GetEndTimeAsTime() (*time.Time, error)

func (*JobProperties) GetStartTimeAsTime

func (o *JobProperties) GetStartTimeAsTime() (*time.Time, error)

func (*JobProperties) SetEndTimeAsTime

func (o *JobProperties) SetEndTimeAsTime(input time.Time)

func (*JobProperties) SetStartTimeAsTime

func (o *JobProperties) SetStartTimeAsTime(input time.Time)

func (*JobProperties) UnmarshalJSON

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

type JobQueryParameter

type JobQueryParameter struct {
	AffectedObjectTypes *string                           `json:"affectedObjectTypes,omitempty"`
	EndTime             *string                           `json:"endTime,omitempty"`
	FabricId            *string                           `json:"fabricId,omitempty"`
	JobName             *string                           `json:"jobName,omitempty"`
	JobOutputType       *ExportJobOutputSerializationType `json:"jobOutputType,omitempty"`
	JobStatus           *string                           `json:"jobStatus,omitempty"`
	StartTime           *string                           `json:"startTime,omitempty"`
	TimezoneOffset      *float64                          `json:"timezoneOffset,omitempty"`
}

type JobTaskDetails

type JobTaskDetails struct {
	JobTask *JobEntity `json:"jobTask,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (JobTaskDetails) MarshalJSON

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

func (JobTaskDetails) TaskTypeDetails added in v0.20240920.1135249

func (s JobTaskDetails) TaskTypeDetails() BaseTaskTypeDetailsImpl

type ListCompleteResult

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

type ListCustomPager added in v0.20240628.1153531

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

type ListOperationOptions

type ListOperationOptions struct {
	Filter *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        *[]Job
}

type ManualActionTaskDetails

type ManualActionTaskDetails struct {
	Instructions *string `json:"instructions,omitempty"`
	Name         *string `json:"name,omitempty"`
	Observation  *string `json:"observation,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (ManualActionTaskDetails) MarshalJSON

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

func (ManualActionTaskDetails) TaskTypeDetails added in v0.20240920.1135249

type ProviderError

type ProviderError struct {
	ErrorCode         *int64  `json:"errorCode,omitempty"`
	ErrorId           *string `json:"errorId,omitempty"`
	ErrorMessage      *string `json:"errorMessage,omitempty"`
	PossibleCauses    *string `json:"possibleCauses,omitempty"`
	RecommendedAction *string `json:"recommendedAction,omitempty"`
}

type RawGroupTaskDetailsImpl

type RawGroupTaskDetailsImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawGroupTaskDetailsImpl 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 (RawGroupTaskDetailsImpl) GroupTaskDetails added in v0.20240920.1135249

type RawJobDetailsImpl

type RawJobDetailsImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawJobDetailsImpl 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 (RawJobDetailsImpl) JobDetails added in v0.20240920.1135249

func (s RawJobDetailsImpl) JobDetails() BaseJobDetailsImpl

type RawTaskTypeDetailsImpl

type RawTaskTypeDetailsImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawTaskTypeDetailsImpl 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 (RawTaskTypeDetailsImpl) TaskTypeDetails added in v0.20240920.1135249

func (s RawTaskTypeDetailsImpl) TaskTypeDetails() BaseTaskTypeDetailsImpl

type RecoveryPlanGroupTaskDetails

type RecoveryPlanGroupTaskDetails struct {
	GroupId     *string `json:"groupId,omitempty"`
	Name        *string `json:"name,omitempty"`
	RpGroupType *string `json:"rpGroupType,omitempty"`

	ChildTasks   *[]ASRTask `json:"childTasks,omitempty"`
	InstanceType string     `json:"instanceType"`
}

func (RecoveryPlanGroupTaskDetails) GroupTaskDetails added in v0.20240920.1135249

func (RecoveryPlanGroupTaskDetails) MarshalJSON

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

type RecoveryPlanShutdownGroupTaskDetails

type RecoveryPlanShutdownGroupTaskDetails struct {
	ChildTasks   *[]ASRTask `json:"childTasks,omitempty"`
	InstanceType string     `json:"instanceType"`
}

func (RecoveryPlanShutdownGroupTaskDetails) GroupTaskDetails added in v0.20240920.1135249

func (RecoveryPlanShutdownGroupTaskDetails) MarshalJSON

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

type ReplicationJobId

type ReplicationJobId struct {
	SubscriptionId     string
	ResourceGroupName  string
	VaultName          string
	ReplicationJobName string
}

ReplicationJobId is a struct representing the Resource ID for a Replication Job

func NewReplicationJobID

func NewReplicationJobID(subscriptionId string, resourceGroupName string, vaultName string, replicationJobName string) ReplicationJobId

NewReplicationJobID returns a new ReplicationJobId struct

func ParseReplicationJobID

func ParseReplicationJobID(input string) (*ReplicationJobId, error)

ParseReplicationJobID parses 'input' into a ReplicationJobId

func ParseReplicationJobIDInsensitively

func ParseReplicationJobIDInsensitively(input string) (*ReplicationJobId, error)

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

func (*ReplicationJobId) FromParseResult

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

func (ReplicationJobId) ID

func (id ReplicationJobId) ID() string

ID returns the formatted Replication Job ID

func (ReplicationJobId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Replication Job ID

func (ReplicationJobId) String

func (id ReplicationJobId) String() string

String returns a human-readable description of this Replication Job ID

type ReplicationJobsClient

type ReplicationJobsClient struct {
	Client *resourcemanager.Client
}

func NewReplicationJobsClientWithBaseURI

func NewReplicationJobsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationJobsClient, error)

func (ReplicationJobsClient) Cancel

Cancel ...

func (ReplicationJobsClient) CancelThenPoll

func (c ReplicationJobsClient) CancelThenPoll(ctx context.Context, id ReplicationJobId) error

CancelThenPoll performs Cancel then polls until it's completed

func (ReplicationJobsClient) Export

Export ...

func (ReplicationJobsClient) ExportThenPoll

func (c ReplicationJobsClient) ExportThenPoll(ctx context.Context, id VaultId, input JobQueryParameter) error

ExportThenPoll performs Export then polls until it's completed

func (ReplicationJobsClient) Get

Get ...

func (ReplicationJobsClient) List

List ...

func (ReplicationJobsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ReplicationJobsClient) ListCompleteMatchingPredicate

func (c ReplicationJobsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, options ListOperationOptions, predicate JobOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationJobsClient) Restart

Restart ...

func (ReplicationJobsClient) RestartThenPoll

func (c ReplicationJobsClient) RestartThenPoll(ctx context.Context, id ReplicationJobId) error

RestartThenPoll performs Restart then polls until it's completed

func (ReplicationJobsClient) Resume

Resume ...

func (ReplicationJobsClient) ResumeThenPoll

ResumeThenPoll performs Resume then polls until it's completed

type RestartOperationResponse

type RestartOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Job
}

type ResumeJobParams

type ResumeJobParams struct {
	Properties *ResumeJobParamsProperties `json:"properties,omitempty"`
}

type ResumeJobParamsProperties

type ResumeJobParamsProperties struct {
	Comments *string `json:"comments,omitempty"`
}

type ResumeOperationResponse

type ResumeOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Job
}

type ScriptActionTaskDetails

type ScriptActionTaskDetails struct {
	IsPrimarySideScript *bool   `json:"isPrimarySideScript,omitempty"`
	Name                *string `json:"name,omitempty"`
	Output              *string `json:"output,omitempty"`
	Path                *string `json:"path,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (ScriptActionTaskDetails) MarshalJSON

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

func (ScriptActionTaskDetails) TaskTypeDetails added in v0.20240920.1135249

type ServiceError

type ServiceError struct {
	ActivityId        *string `json:"activityId,omitempty"`
	Code              *string `json:"code,omitempty"`
	Message           *string `json:"message,omitempty"`
	PossibleCauses    *string `json:"possibleCauses,omitempty"`
	RecommendedAction *string `json:"recommendedAction,omitempty"`
}

type SwitchProtectionJobDetails

type SwitchProtectionJobDetails struct {
	NewReplicationProtectedItemId *string `json:"newReplicationProtectedItemId,omitempty"`

	AffectedObjectDetails *map[string]string `json:"affectedObjectDetails,omitempty"`
	InstanceType          string             `json:"instanceType"`
}

func (SwitchProtectionJobDetails) JobDetails added in v0.20240920.1135249

func (SwitchProtectionJobDetails) MarshalJSON

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

type TaskTypeDetails

type TaskTypeDetails interface {
	TaskTypeDetails() BaseTaskTypeDetailsImpl
}

func UnmarshalTaskTypeDetailsImplementation added in v0.20240920.1135249

func UnmarshalTaskTypeDetailsImplementation(input []byte) (TaskTypeDetails, error)

type TestFailoverJobDetails

type TestFailoverJobDetails struct {
	Comments             *string                                    `json:"comments,omitempty"`
	NetworkFriendlyName  *string                                    `json:"networkFriendlyName,omitempty"`
	NetworkName          *string                                    `json:"networkName,omitempty"`
	NetworkType          *string                                    `json:"networkType,omitempty"`
	ProtectedItemDetails *[]FailoverReplicationProtectedItemDetails `json:"protectedItemDetails,omitempty"`
	TestFailoverStatus   *string                                    `json:"testFailoverStatus,omitempty"`

	AffectedObjectDetails *map[string]string `json:"affectedObjectDetails,omitempty"`
	InstanceType          string             `json:"instanceType"`
}

func (TestFailoverJobDetails) JobDetails added in v0.20240920.1135249

func (TestFailoverJobDetails) MarshalJSON

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

type VMNicUpdatesTaskDetails

type VMNicUpdatesTaskDetails struct {
	Name  *string `json:"name,omitempty"`
	NicId *string `json:"nicId,omitempty"`
	VMId  *string `json:"vmId,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (VMNicUpdatesTaskDetails) MarshalJSON

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

func (VMNicUpdatesTaskDetails) TaskTypeDetails added in v0.20240920.1135249

type VaultId

type VaultId struct {
	SubscriptionId    string
	ResourceGroupName string
	VaultName         string
}

VaultId is a struct representing the Resource ID for a Vault

func NewVaultID

func NewVaultID(subscriptionId string, resourceGroupName string, vaultName string) VaultId

NewVaultID returns a new VaultId struct

func ParseVaultID

func ParseVaultID(input string) (*VaultId, error)

ParseVaultID parses 'input' into a VaultId

func ParseVaultIDInsensitively

func ParseVaultIDInsensitively(input string) (*VaultId, error)

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

func (*VaultId) FromParseResult

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

func (VaultId) ID

func (id VaultId) ID() string

ID returns the formatted Vault ID

func (VaultId) Segments

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

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

func (VaultId) String

func (id VaultId) String() string

String returns a human-readable description of this Vault ID

type VirtualMachineTaskDetails

type VirtualMachineTaskDetails struct {
	SkippedReason       *string `json:"skippedReason,omitempty"`
	SkippedReasonString *string `json:"skippedReasonString,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (VirtualMachineTaskDetails) MarshalJSON

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

func (VirtualMachineTaskDetails) TaskTypeDetails added in v0.20240920.1135249

Jump to

Keyboard shortcuts

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