README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationevents
Documentation
The replicationevents
SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery
(API Version 2023-01-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/2023-01-01/replicationevents"
Client Initialization
client := replicationevents.NewReplicationEventsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ReplicationEventsClient.Get
ctx := context.TODO()
id := replicationevents.NewReplicationEventID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationEventValue")
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: ReplicationEventsClient.List
ctx := context.TODO()
id := replicationevents.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue")
// alternatively `client.List(ctx, id, replicationevents.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, replicationevents.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForHealthErrorCustomerResolvability() []string
- func ValidateReplicationEventID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- type A2AEventDetails
- type Event
- type EventOperationPredicate
- type EventProperties
- type EventProviderSpecificDetails
- type EventSpecificDetails
- type GetOperationResponse
- type HealthError
- type HealthErrorCustomerResolvability
- type HyperVReplica2012EventDetails
- type HyperVReplica2012R2EventDetails
- type HyperVReplicaAzureEventDetails
- type HyperVReplicaBaseEventDetails
- type InMageAzureV2EventDetails
- type InMageRcmEventDetails
- type InMageRcmFailbackEventDetails
- type InnerHealthError
- type JobStatusEventDetails
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type RawEventProviderSpecificDetailsImpl
- type RawEventSpecificDetailsImpl
- type ReplicationEventId
- type ReplicationEventsClient
- func (c ReplicationEventsClient) Get(ctx context.Context, id ReplicationEventId) (result GetOperationResponse, err error)
- func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ReplicationEventsClient) ListComplete(ctx context.Context, id VaultId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ReplicationEventsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type VMwareCbtEventDetails
- type VaultId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForHealthErrorCustomerResolvability ¶
func PossibleValuesForHealthErrorCustomerResolvability() []string
func ValidateReplicationEventID ¶
ValidateReplicationEventID checks that 'input' can be parsed as a Replication Event ID
func ValidateVaultID ¶
ValidateVaultID checks that 'input' can be parsed as a Vault ID
Types ¶
type A2AEventDetails ¶
type A2AEventDetails struct { FabricLocation *string `json:"fabricLocation,omitempty"` FabricName *string `json:"fabricName,omitempty"` FabricObjectId *string `json:"fabricObjectId,omitempty"` ProtectedItemName *string `json:"protectedItemName,omitempty"` RemoteFabricLocation *string `json:"remoteFabricLocation,omitempty"` RemoteFabricName *string `json:"remoteFabricName,omitempty"` }
func (A2AEventDetails) MarshalJSON ¶
func (s A2AEventDetails) MarshalJSON() ([]byte, error)
type Event ¶
type Event struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *EventProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type EventOperationPredicate ¶
func (EventOperationPredicate) Matches ¶
func (p EventOperationPredicate) Matches(input Event) bool
type EventProperties ¶
type EventProperties struct { AffectedObjectCorrelationId *string `json:"affectedObjectCorrelationId,omitempty"` AffectedObjectFriendlyName *string `json:"affectedObjectFriendlyName,omitempty"` Description *string `json:"description,omitempty"` EventCode *string `json:"eventCode,omitempty"` EventSpecificDetails EventSpecificDetails `json:"eventSpecificDetails"` EventType *string `json:"eventType,omitempty"` FabricId *string `json:"fabricId,omitempty"` HealthErrors *[]HealthError `json:"healthErrors,omitempty"` ProviderSpecificDetails EventProviderSpecificDetails `json:"providerSpecificDetails"` Severity *string `json:"severity,omitempty"` TimeOfOccurrence *string `json:"timeOfOccurrence,omitempty"` }
func (*EventProperties) GetTimeOfOccurrenceAsTime ¶
func (o *EventProperties) GetTimeOfOccurrenceAsTime() (*time.Time, error)
func (*EventProperties) SetTimeOfOccurrenceAsTime ¶
func (o *EventProperties) SetTimeOfOccurrenceAsTime(input time.Time)
func (*EventProperties) UnmarshalJSON ¶
func (s *EventProperties) UnmarshalJSON(bytes []byte) error
type EventProviderSpecificDetails ¶
type EventProviderSpecificDetails interface { }
type EventSpecificDetails ¶
type EventSpecificDetails interface { }
type GetOperationResponse ¶
type HealthError ¶
type HealthError struct { CreationTimeUtc *string `json:"creationTimeUtc,omitempty"` CustomerResolvability *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"` EntityId *string `json:"entityId,omitempty"` ErrorCategory *string `json:"errorCategory,omitempty"` ErrorCode *string `json:"errorCode,omitempty"` ErrorId *string `json:"errorId,omitempty"` ErrorLevel *string `json:"errorLevel,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` ErrorSource *string `json:"errorSource,omitempty"` ErrorType *string `json:"errorType,omitempty"` InnerHealthErrors *[]InnerHealthError `json:"innerHealthErrors,omitempty"` PossibleCauses *string `json:"possibleCauses,omitempty"` RecommendedAction *string `json:"recommendedAction,omitempty"` RecoveryProviderErrorMessage *string `json:"recoveryProviderErrorMessage,omitempty"` SummaryMessage *string `json:"summaryMessage,omitempty"` }
func (*HealthError) GetCreationTimeUtcAsTime ¶
func (o *HealthError) GetCreationTimeUtcAsTime() (*time.Time, error)
func (*HealthError) SetCreationTimeUtcAsTime ¶
func (o *HealthError) SetCreationTimeUtcAsTime(input time.Time)
type HealthErrorCustomerResolvability ¶
type HealthErrorCustomerResolvability string
const ( HealthErrorCustomerResolvabilityAllowed HealthErrorCustomerResolvability = "Allowed" HealthErrorCustomerResolvabilityNotAllowed HealthErrorCustomerResolvability = "NotAllowed" )
func (*HealthErrorCustomerResolvability) UnmarshalJSON ¶
func (s *HealthErrorCustomerResolvability) UnmarshalJSON(bytes []byte) error
type HyperVReplica2012EventDetails ¶
type HyperVReplica2012EventDetails struct { ContainerName *string `json:"containerName,omitempty"` FabricName *string `json:"fabricName,omitempty"` RemoteContainerName *string `json:"remoteContainerName,omitempty"` RemoteFabricName *string `json:"remoteFabricName,omitempty"` }
func (HyperVReplica2012EventDetails) MarshalJSON ¶
func (s HyperVReplica2012EventDetails) MarshalJSON() ([]byte, error)
type HyperVReplica2012R2EventDetails ¶
type HyperVReplica2012R2EventDetails struct { ContainerName *string `json:"containerName,omitempty"` FabricName *string `json:"fabricName,omitempty"` RemoteContainerName *string `json:"remoteContainerName,omitempty"` RemoteFabricName *string `json:"remoteFabricName,omitempty"` }
func (HyperVReplica2012R2EventDetails) MarshalJSON ¶
func (s HyperVReplica2012R2EventDetails) MarshalJSON() ([]byte, error)
type HyperVReplicaAzureEventDetails ¶
type HyperVReplicaAzureEventDetails struct { ContainerName *string `json:"containerName,omitempty"` FabricName *string `json:"fabricName,omitempty"` RemoteContainerName *string `json:"remoteContainerName,omitempty"` }
func (HyperVReplicaAzureEventDetails) MarshalJSON ¶
func (s HyperVReplicaAzureEventDetails) MarshalJSON() ([]byte, error)
type HyperVReplicaBaseEventDetails ¶
type HyperVReplicaBaseEventDetails struct { ContainerName *string `json:"containerName,omitempty"` FabricName *string `json:"fabricName,omitempty"` RemoteContainerName *string `json:"remoteContainerName,omitempty"` RemoteFabricName *string `json:"remoteFabricName,omitempty"` }
func (HyperVReplicaBaseEventDetails) MarshalJSON ¶
func (s HyperVReplicaBaseEventDetails) MarshalJSON() ([]byte, error)
type InMageAzureV2EventDetails ¶
type InMageAzureV2EventDetails struct { Category *string `json:"category,omitempty"` Component *string `json:"component,omitempty"` CorrectiveAction *string `json:"correctiveAction,omitempty"` Details *string `json:"details,omitempty"` EventType *string `json:"eventType,omitempty"` SiteName *string `json:"siteName,omitempty"` Summary *string `json:"summary,omitempty"` }
func (InMageAzureV2EventDetails) MarshalJSON ¶
func (s InMageAzureV2EventDetails) MarshalJSON() ([]byte, error)
type InMageRcmEventDetails ¶
type InMageRcmEventDetails struct { ApplianceName *string `json:"applianceName,omitempty"` ComponentDisplayName *string `json:"componentDisplayName,omitempty"` FabricName *string `json:"fabricName,omitempty"` JobId *string `json:"jobId,omitempty"` LatestAgentVersion *string `json:"latestAgentVersion,omitempty"` ProtectedItemName *string `json:"protectedItemName,omitempty"` ServerType *string `json:"serverType,omitempty"` VirtualMachineName *string `json:"vmName,omitempty"` }
func (InMageRcmEventDetails) MarshalJSON ¶
func (s InMageRcmEventDetails) MarshalJSON() ([]byte, error)
type InMageRcmFailbackEventDetails ¶
type InMageRcmFailbackEventDetails struct { ApplianceName *string `json:"applianceName,omitempty"` ComponentDisplayName *string `json:"componentDisplayName,omitempty"` ProtectedItemName *string `json:"protectedItemName,omitempty"` ServerType *string `json:"serverType,omitempty"` VirtualMachineName *string `json:"vmName,omitempty"` }
func (InMageRcmFailbackEventDetails) MarshalJSON ¶
func (s InMageRcmFailbackEventDetails) MarshalJSON() ([]byte, error)
type InnerHealthError ¶
type InnerHealthError struct { CreationTimeUtc *string `json:"creationTimeUtc,omitempty"` CustomerResolvability *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"` EntityId *string `json:"entityId,omitempty"` ErrorCategory *string `json:"errorCategory,omitempty"` ErrorCode *string `json:"errorCode,omitempty"` ErrorId *string `json:"errorId,omitempty"` ErrorLevel *string `json:"errorLevel,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` ErrorSource *string `json:"errorSource,omitempty"` ErrorType *string `json:"errorType,omitempty"` PossibleCauses *string `json:"possibleCauses,omitempty"` RecommendedAction *string `json:"recommendedAction,omitempty"` RecoveryProviderErrorMessage *string `json:"recoveryProviderErrorMessage,omitempty"` SummaryMessage *string `json:"summaryMessage,omitempty"` }
func (*InnerHealthError) GetCreationTimeUtcAsTime ¶
func (o *InnerHealthError) GetCreationTimeUtcAsTime() (*time.Time, error)
func (*InnerHealthError) SetCreationTimeUtcAsTime ¶
func (o *InnerHealthError) SetCreationTimeUtcAsTime(input time.Time)
type JobStatusEventDetails ¶
type JobStatusEventDetails struct { AffectedObjectType *string `json:"affectedObjectType,omitempty"` JobFriendlyName *string `json:"jobFriendlyName,omitempty"` JobId *string `json:"jobId,omitempty"` JobStatus *string `json:"jobStatus,omitempty"` }
func (JobStatusEventDetails) MarshalJSON ¶
func (s JobStatusEventDetails) MarshalJSON() ([]byte, error)
type ListCompleteResult ¶
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
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 ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type RawEventProviderSpecificDetailsImpl ¶
RawEventProviderSpecificDetailsImpl 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 RawEventSpecificDetailsImpl ¶
RawEventSpecificDetailsImpl 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 ReplicationEventId ¶
type ReplicationEventId struct { SubscriptionId string ResourceGroupName string VaultName string ReplicationEventName string }
ReplicationEventId is a struct representing the Resource ID for a Replication Event
func NewReplicationEventID ¶
func NewReplicationEventID(subscriptionId string, resourceGroupName string, vaultName string, replicationEventName string) ReplicationEventId
NewReplicationEventID returns a new ReplicationEventId struct
func ParseReplicationEventID ¶
func ParseReplicationEventID(input string) (*ReplicationEventId, error)
ParseReplicationEventID parses 'input' into a ReplicationEventId
func ParseReplicationEventIDInsensitively ¶
func ParseReplicationEventIDInsensitively(input string) (*ReplicationEventId, error)
ParseReplicationEventIDInsensitively parses 'input' case-insensitively into a ReplicationEventId note: this method should only be used for API response data and not user input
func (*ReplicationEventId) FromParseResult ¶
func (id *ReplicationEventId) FromParseResult(input resourceids.ParseResult) error
func (ReplicationEventId) ID ¶
func (id ReplicationEventId) ID() string
ID returns the formatted Replication Event ID
func (ReplicationEventId) Segments ¶
func (id ReplicationEventId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Event ID
func (ReplicationEventId) String ¶
func (id ReplicationEventId) String() string
String returns a human-readable description of this Replication Event ID
type ReplicationEventsClient ¶
type ReplicationEventsClient struct {
Client *resourcemanager.Client
}
func NewReplicationEventsClientWithBaseURI ¶
func NewReplicationEventsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationEventsClient, error)
func (ReplicationEventsClient) Get ¶
func (c ReplicationEventsClient) Get(ctx context.Context, id ReplicationEventId) (result GetOperationResponse, err error)
Get ...
func (ReplicationEventsClient) List ¶
func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ReplicationEventsClient) ListComplete ¶
func (c ReplicationEventsClient) ListComplete(ctx context.Context, id VaultId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ReplicationEventsClient) ListCompleteMatchingPredicate ¶
func (c ReplicationEventsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, options ListOperationOptions, predicate EventOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type VMwareCbtEventDetails ¶
type VMwareCbtEventDetails struct {
MigrationItemName *string `json:"migrationItemName,omitempty"`
}
func (VMwareCbtEventDetails) MarshalJSON ¶
func (s VMwareCbtEventDetails) MarshalJSON() ([]byte, error)
type VaultId ¶
VaultId is a struct representing the Resource ID for a Vault
func NewVaultID ¶
NewVaultID returns a new VaultId struct
func ParseVaultID ¶
ParseVaultID parses 'input' into a VaultId
func ParseVaultIDInsensitively ¶
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) Segments ¶
func (id VaultId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Vault ID
Source Files ¶
- client.go
- constants.go
- id_replicationevent.go
- id_vault.go
- method_get.go
- method_list.go
- model_a2aeventdetails.go
- model_event.go
- model_eventproperties.go
- model_eventproviderspecificdetails.go
- model_eventspecificdetails.go
- model_healtherror.go
- model_hypervreplica2012eventdetails.go
- model_hypervreplica2012r2eventdetails.go
- model_hypervreplicaazureeventdetails.go
- model_hypervreplicabaseeventdetails.go
- model_inmageazurev2eventdetails.go
- model_inmagercmeventdetails.go
- model_inmagercmfailbackeventdetails.go
- model_innerhealtherror.go
- model_jobstatuseventdetails.go
- model_vmwarecbteventdetails.go
- predicates.go
- version.go