-
Notifications
You must be signed in to change notification settings - Fork 46
/
model_inmageazurev2replicationdetails.go
107 lines (97 loc) · 9.29 KB
/
model_inmageazurev2replicationdetails.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package replicationprotecteditems
import (
"encoding/json"
"fmt"
)
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
var _ ReplicationProviderSpecificSettings = InMageAzureV2ReplicationDetails{}
type InMageAzureV2ReplicationDetails struct {
AgentExpiryDate *string `json:"agentExpiryDate,omitempty"`
AgentVersion *string `json:"agentVersion,omitempty"`
AzureVMDiskDetails *[]AzureVMDiskDetails `json:"azureVMDiskDetails,omitempty"`
AzureVMGeneration *string `json:"azureVmGeneration,omitempty"`
CompressedDataRateInMB *float64 `json:"compressedDataRateInMB,omitempty"`
DataStores *[]string `json:"datastores,omitempty"`
DiscoveryType *string `json:"discoveryType,omitempty"`
DiskResized *string `json:"diskResized,omitempty"`
EnableRdpOnTargetOption *string `json:"enableRdpOnTargetOption,omitempty"`
FirmwareType *string `json:"firmwareType,omitempty"`
IPAddress *string `json:"ipAddress,omitempty"`
InfrastructureVMId *string `json:"infrastructureVmId,omitempty"`
IsAdditionalStatsAvailable *bool `json:"isAdditionalStatsAvailable,omitempty"`
IsAgentUpdateRequired *string `json:"isAgentUpdateRequired,omitempty"`
IsRebootAfterUpdateRequired *string `json:"isRebootAfterUpdateRequired,omitempty"`
LastHeartbeat *string `json:"lastHeartbeat,omitempty"`
LastRecoveryPointReceived *string `json:"lastRecoveryPointReceived,omitempty"`
LastRpoCalculatedTime *string `json:"lastRpoCalculatedTime,omitempty"`
LastUpdateReceivedTime *string `json:"lastUpdateReceivedTime,omitempty"`
LicenseType *string `json:"licenseType,omitempty"`
MasterTargetId *string `json:"masterTargetId,omitempty"`
MultiVMGroupId *string `json:"multiVmGroupId,omitempty"`
MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`
MultiVMSyncStatus *string `json:"multiVmSyncStatus,omitempty"`
OsDiskId *string `json:"osDiskId,omitempty"`
OsType *string `json:"osType,omitempty"`
OsVersion *string `json:"osVersion,omitempty"`
ProcessServerId *string `json:"processServerId,omitempty"`
ProcessServerName *string `json:"processServerName,omitempty"`
ProtectedDisks *[]InMageAzureV2ProtectedDiskDetails `json:"protectedDisks,omitempty"`
ProtectedManagedDisks *[]InMageAzureV2ManagedDiskDetails `json:"protectedManagedDisks,omitempty"`
ProtectionStage *string `json:"protectionStage,omitempty"`
RecoveryAvailabilitySetId *string `json:"recoveryAvailabilitySetId,omitempty"`
RecoveryAzureLogStorageAccountId *string `json:"recoveryAzureLogStorageAccountId,omitempty"`
RecoveryAzureResourceGroupId *string `json:"recoveryAzureResourceGroupId,omitempty"`
RecoveryAzureStorageAccount *string `json:"recoveryAzureStorageAccount,omitempty"`
RecoveryAzureVMName *string `json:"recoveryAzureVMName,omitempty"`
RecoveryAzureVMSize *string `json:"recoveryAzureVMSize,omitempty"`
ReplicaId *string `json:"replicaId,omitempty"`
ResyncProgressPercentage *int64 `json:"resyncProgressPercentage,omitempty"`
RpoInSeconds *int64 `json:"rpoInSeconds,omitempty"`
SeedManagedDiskTags *map[string]string `json:"seedManagedDiskTags,omitempty"`
SelectedRecoveryAzureNetworkId *string `json:"selectedRecoveryAzureNetworkId,omitempty"`
SelectedSourceNicId *string `json:"selectedSourceNicId,omitempty"`
SelectedTfoAzureNetworkId *string `json:"selectedTfoAzureNetworkId,omitempty"`
SourceVMCPUCount *int64 `json:"sourceVmCpuCount,omitempty"`
SourceVMRamSizeInMB *int64 `json:"sourceVmRamSizeInMB,omitempty"`
SqlServerLicenseType *string `json:"sqlServerLicenseType,omitempty"`
SwitchProviderBlockingErrorDetails *[]InMageAzureV2SwitchProviderBlockingErrorDetails `json:"switchProviderBlockingErrorDetails,omitempty"`
SwitchProviderDetails *InMageAzureV2SwitchProviderDetails `json:"switchProviderDetails,omitempty"`
TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`
TargetManagedDiskTags *map[string]string `json:"targetManagedDiskTags,omitempty"`
TargetNicTags *map[string]string `json:"targetNicTags,omitempty"`
TargetProximityPlacementGroupId *string `json:"targetProximityPlacementGroupId,omitempty"`
TargetVMId *string `json:"targetVmId,omitempty"`
TargetVMTags *map[string]string `json:"targetVmTags,omitempty"`
TotalDataTransferred *int64 `json:"totalDataTransferred,omitempty"`
TotalProgressHealth *string `json:"totalProgressHealth,omitempty"`
UncompressedDataRateInMB *float64 `json:"uncompressedDataRateInMB,omitempty"`
UseManagedDisks *string `json:"useManagedDisks,omitempty"`
VCenterInfrastructureId *string `json:"vCenterInfrastructureId,omitempty"`
VMId *string `json:"vmId,omitempty"`
VMNics *[]VMNicDetails `json:"vmNics,omitempty"`
VMProtectionState *string `json:"vmProtectionState,omitempty"`
VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`
ValidationErrors *[]HealthError `json:"validationErrors,omitempty"`
VhdName *string `json:"vhdName,omitempty"`
// Fields inherited from ReplicationProviderSpecificSettings
}
var _ json.Marshaler = InMageAzureV2ReplicationDetails{}
func (s InMageAzureV2ReplicationDetails) MarshalJSON() ([]byte, error) {
type wrapper InMageAzureV2ReplicationDetails
wrapped := wrapper(s)
encoded, err := json.Marshal(wrapped)
if err != nil {
return nil, fmt.Errorf("marshaling InMageAzureV2ReplicationDetails: %+v", err)
}
var decoded map[string]interface{}
if err := json.Unmarshal(encoded, &decoded); err != nil {
return nil, fmt.Errorf("unmarshaling InMageAzureV2ReplicationDetails: %+v", err)
}
decoded["instanceType"] = "InMageAzureV2"
encoded, err = json.Marshal(decoded)
if err != nil {
return nil, fmt.Errorf("re-marshaling InMageAzureV2ReplicationDetails: %+v", err)
}
return encoded, nil
}