func GetAccessLevelEnumStringValues() []string
GetAccessLevelEnumStringValues Enumerates the set of values in String for AccessLevelEnum
func GetActionTypeEnumStringValues() []string
GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum
func GetAssetLifecycleStateEnumStringValues() []string
GetAssetLifecycleStateEnumStringValues Enumerates the set of values in String for AssetLifecycleStateEnum
func GetAssetSourceConnectionLifecycleStateEnumStringValues() []string
GetAssetSourceConnectionLifecycleStateEnumStringValues Enumerates the set of values in String for AssetSourceConnectionLifecycleStateEnum
func GetAssetSourceConnectionTypeEnumStringValues() []string
GetAssetSourceConnectionTypeEnumStringValues Enumerates the set of values in String for AssetSourceConnectionTypeEnum
func GetAssetSourceCredentialsTypeEnumStringValues() []string
GetAssetSourceCredentialsTypeEnumStringValues Enumerates the set of values in String for AssetSourceCredentialsTypeEnum
func GetAssetSourceLifecycleStateEnumStringValues() []string
GetAssetSourceLifecycleStateEnumStringValues Enumerates the set of values in String for AssetSourceLifecycleStateEnum
func GetAssetSourceTypeEnumStringValues() []string
GetAssetSourceTypeEnumStringValues Enumerates the set of values in String for AssetSourceTypeEnum
func GetAssetTypeEnumStringValues() []string
GetAssetTypeEnumStringValues Enumerates the set of values in String for AssetTypeEnum
func GetCompatibilityMessageNameEnumStringValues() []string
GetCompatibilityMessageNameEnumStringValues Enumerates the set of values in String for CompatibilityMessageNameEnum
func GetCompatibilityMessageSeverityEnumStringValues() []string
GetCompatibilityMessageSeverityEnumStringValues Enumerates the set of values in String for CompatibilityMessageSeverityEnum
func GetCreateTargetAssetDetailsTypeEnumStringValues() []string
GetCreateTargetAssetDetailsTypeEnumStringValues Enumerates the set of values in String for CreateTargetAssetDetailsTypeEnum
func GetDiscoveryScheduleLifecycleStateEnumStringValues() []string
GetDiscoveryScheduleLifecycleStateEnumStringValues Enumerates the set of values in String for DiscoveryScheduleLifecycleStateEnum
func GetEnvironmentTypeEnumStringValues() []string
GetEnvironmentTypeEnumStringValues Enumerates the set of values in String for EnvironmentTypeEnum
func GetHydratedVolumeVolumeTypeEnumStringValues() []string
GetHydratedVolumeVolumeTypeEnumStringValues Enumerates the set of values in String for HydratedVolumeVolumeTypeEnum
func GetInstanceAgentPluginConfigDetailsDesiredStateEnumStringValues() []string
GetInstanceAgentPluginConfigDetailsDesiredStateEnumStringValues Enumerates the set of values in String for InstanceAgentPluginConfigDetailsDesiredStateEnum
func GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues() []string
GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues Enumerates the set of values in String for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum
func GetListAvailableShapesSortByEnumStringValues() []string
GetListAvailableShapesSortByEnumStringValues Enumerates the set of values in String for ListAvailableShapesSortByEnum
func GetListAvailableShapesSortOrderEnumStringValues() []string
GetListAvailableShapesSortOrderEnumStringValues Enumerates the set of values in String for ListAvailableShapesSortOrderEnum
func GetListMigrationAssetsSortByEnumStringValues() []string
GetListMigrationAssetsSortByEnumStringValues Enumerates the set of values in String for ListMigrationAssetsSortByEnum
func GetListMigrationAssetsSortOrderEnumStringValues() []string
GetListMigrationAssetsSortOrderEnumStringValues Enumerates the set of values in String for ListMigrationAssetsSortOrderEnum
func GetListMigrationPlansSortByEnumStringValues() []string
GetListMigrationPlansSortByEnumStringValues Enumerates the set of values in String for ListMigrationPlansSortByEnum
func GetListMigrationPlansSortOrderEnumStringValues() []string
GetListMigrationPlansSortOrderEnumStringValues Enumerates the set of values in String for ListMigrationPlansSortOrderEnum
func GetListMigrationsSortByEnumStringValues() []string
GetListMigrationsSortByEnumStringValues Enumerates the set of values in String for ListMigrationsSortByEnum
func GetListMigrationsSortOrderEnumStringValues() []string
GetListMigrationsSortOrderEnumStringValues Enumerates the set of values in String for ListMigrationsSortOrderEnum
func GetListReplicationSchedulesSortByEnumStringValues() []string
GetListReplicationSchedulesSortByEnumStringValues Enumerates the set of values in String for ListReplicationSchedulesSortByEnum
func GetListReplicationSchedulesSortOrderEnumStringValues() []string
GetListReplicationSchedulesSortOrderEnumStringValues Enumerates the set of values in String for ListReplicationSchedulesSortOrderEnum
func GetListTargetAssetsSortByEnumStringValues() []string
GetListTargetAssetsSortByEnumStringValues Enumerates the set of values in String for ListTargetAssetsSortByEnum
func GetListTargetAssetsSortOrderEnumStringValues() []string
GetListTargetAssetsSortOrderEnumStringValues Enumerates the set of values in String for ListTargetAssetsSortOrderEnum
func GetListWorkRequestErrorsSortByEnumStringValues() []string
GetListWorkRequestErrorsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortByEnum
func GetListWorkRequestErrorsSortOrderEnumStringValues() []string
GetListWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortOrderEnum
func GetListWorkRequestLogsSortByEnumStringValues() []string
GetListWorkRequestLogsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortByEnum
func GetListWorkRequestLogsSortOrderEnumStringValues() []string
GetListWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortOrderEnum
func GetListWorkRequestsOperationTypeEnumStringValues() []string
GetListWorkRequestsOperationTypeEnumStringValues Enumerates the set of values in String for ListWorkRequestsOperationTypeEnum
func GetListWorkRequestsSortByEnumStringValues() []string
GetListWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortByEnum
func GetListWorkRequestsSortOrderEnumStringValues() []string
GetListWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortOrderEnum
func GetListWorkRequestsStatusEnumStringValues() []string
GetListWorkRequestsStatusEnumStringValues Enumerates the set of values in String for ListWorkRequestsStatusEnum
func GetLogicalUnitLunStatusEnumStringValues() []string
GetLogicalUnitLunStatusEnumStringValues Enumerates the set of values in String for LogicalUnitLunStatusEnum
func GetMetricTimeWindowEnumStringValues() []string
GetMetricTimeWindowEnumStringValues Enumerates the set of values in String for MetricTimeWindowEnum
func GetMetricTypeEnumStringValues() []string
GetMetricTypeEnumStringValues Enumerates the set of values in String for MetricTypeEnum
func GetMigrationAssetLifecycleStateEnumStringValues() []string
GetMigrationAssetLifecycleStateEnumStringValues Enumerates the set of values in String for MigrationAssetLifecycleStateEnum
func GetMigrationAssetNotificationsEnumStringValues() []string
GetMigrationAssetNotificationsEnumStringValues Enumerates the set of values in String for MigrationAssetNotificationsEnum
func GetMigrationAssetSummaryNotificationsEnumStringValues() []string
GetMigrationAssetSummaryNotificationsEnumStringValues Enumerates the set of values in String for MigrationAssetSummaryNotificationsEnum
func GetMigrationBandwidthAssignmentMethodEnumStringValues() []string
GetMigrationBandwidthAssignmentMethodEnumStringValues Enumerates the set of values in String for MigrationBandwidthAssignmentMethodEnum
func GetMigrationLifecycleStateEnumStringValues() []string
GetMigrationLifecycleStateEnumStringValues Enumerates the set of values in String for MigrationLifecycleStateEnum
func GetMigrationMigrationTypeEnumStringValues() []string
GetMigrationMigrationTypeEnumStringValues Enumerates the set of values in String for MigrationMigrationTypeEnum
func GetMigrationPlanLifecycleStateEnumStringValues() []string
GetMigrationPlanLifecycleStateEnumStringValues Enumerates the set of values in String for MigrationPlanLifecycleStateEnum
func GetOlvmBiosTypeTypeEnumStringValues() []string
GetOlvmBiosTypeTypeEnumStringValues Enumerates the set of values in String for OlvmBiosTypeTypeEnum
func GetOlvmBootDeviceEnumStringValues() []string
GetOlvmBootDeviceEnumStringValues Enumerates the set of values in String for OlvmBootDeviceEnum
func GetOlvmBootProtocolProtocolEnumStringValues() []string
GetOlvmBootProtocolProtocolEnumStringValues Enumerates the set of values in String for OlvmBootProtocolProtocolEnum
func GetOlvmClusterPropertiesFipsModeEnumStringValues() []string
GetOlvmClusterPropertiesFipsModeEnumStringValues Enumerates the set of values in String for OlvmClusterPropertiesFipsModeEnum
func GetOlvmClusterPropertiesFirewallTypeEnumStringValues() []string
GetOlvmClusterPropertiesFirewallTypeEnumStringValues Enumerates the set of values in String for OlvmClusterPropertiesFirewallTypeEnum
func GetOlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnumStringValues() []string
GetOlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnumStringValues Enumerates the set of values in String for OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum
func GetOlvmClusterPropertiesSwitchTypeEnumStringValues() []string
GetOlvmClusterPropertiesSwitchTypeEnumStringValues Enumerates the set of values in String for OlvmClusterPropertiesSwitchTypeEnum
func GetOlvmConfigurationConfigurationTypeEnumStringValues() []string
GetOlvmConfigurationConfigurationTypeEnumStringValues Enumerates the set of values in String for OlvmConfigurationConfigurationTypeEnum
func GetOlvmCpuArchitectureEnumStringValues() []string
GetOlvmCpuArchitectureEnumStringValues Enumerates the set of values in String for OlvmCpuArchitectureEnum
func GetOlvmCpuModeEnumStringValues() []string
GetOlvmCpuModeEnumStringValues Enumerates the set of values in String for OlvmCpuModeEnum
func GetOlvmDataCenterDataCenterStatusEnumStringValues() []string
GetOlvmDataCenterDataCenterStatusEnumStringValues Enumerates the set of values in String for OlvmDataCenterDataCenterStatusEnum
func GetOlvmDataCenterQuotaModeTypeEnumStringValues() []string
GetOlvmDataCenterQuotaModeTypeEnumStringValues Enumerates the set of values in String for OlvmDataCenterQuotaModeTypeEnum
func GetOlvmDataCenterStorageFormatEnumStringValues() []string
GetOlvmDataCenterStorageFormatEnumStringValues Enumerates the set of values in String for OlvmDataCenterStorageFormatEnum
func GetOlvmDisplayDisplayTypeEnumStringValues() []string
GetOlvmDisplayDisplayTypeEnumStringValues Enumerates the set of values in String for OlvmDisplayDisplayTypeEnum
func GetOlvmErrorHandlingOnErrorEnumStringValues() []string
GetOlvmErrorHandlingOnErrorEnumStringValues Enumerates the set of values in String for OlvmErrorHandlingOnErrorEnum
func GetOlvmHostAutoNumaStatusEnumStringValues() []string
GetOlvmHostAutoNumaStatusEnumStringValues Enumerates the set of values in String for OlvmHostAutoNumaStatusEnum
func GetOlvmHostExternalStatusEnumStringValues() []string
GetOlvmHostExternalStatusEnumStringValues Enumerates the set of values in String for OlvmHostExternalStatusEnum
func GetOlvmHostKdumpStatusEnumStringValues() []string
GetOlvmHostKdumpStatusEnumStringValues Enumerates the set of values in String for OlvmHostKdumpStatusEnum
func GetOlvmHostStatusStatusEnumStringValues() []string
GetOlvmHostStatusStatusEnumStringValues Enumerates the set of values in String for OlvmHostStatusStatusEnum
func GetOlvmHostTypeHostTypeEnumStringValues() []string
GetOlvmHostTypeHostTypeEnumStringValues Enumerates the set of values in String for OlvmHostTypeHostTypeEnum
func GetOlvmHostVgpuPlacementEnumStringValues() []string
GetOlvmHostVgpuPlacementEnumStringValues Enumerates the set of values in String for OlvmHostVgpuPlacementEnum
func GetOlvmInitializationCloudInitNetworkProtocolEnumStringValues() []string
GetOlvmInitializationCloudInitNetworkProtocolEnumStringValues Enumerates the set of values in String for OlvmInitializationCloudInitNetworkProtocolEnum
func GetOlvmIpIpVersionEnumStringValues() []string
GetOlvmIpIpVersionEnumStringValues Enumerates the set of values in String for OlvmIpIpVersionEnum
func GetOlvmMigrationOptionsAutoConvergeEnumStringValues() []string
GetOlvmMigrationOptionsAutoConvergeEnumStringValues Enumerates the set of values in String for OlvmMigrationOptionsAutoConvergeEnum
func GetOlvmMigrationOptionsCompressedEnumStringValues() []string
GetOlvmMigrationOptionsCompressedEnumStringValues Enumerates the set of values in String for OlvmMigrationOptionsCompressedEnum
func GetOlvmMigrationOptionsEncryptedEnumStringValues() []string
GetOlvmMigrationOptionsEncryptedEnumStringValues Enumerates the set of values in String for OlvmMigrationOptionsEncryptedEnum
func GetOlvmMigrationOptionsParallelMigrationsPolicyEnumStringValues() []string
GetOlvmMigrationOptionsParallelMigrationsPolicyEnumStringValues Enumerates the set of values in String for OlvmMigrationOptionsParallelMigrationsPolicyEnum
func GetOlvmPmProxyTypeEnumStringValues() []string
GetOlvmPmProxyTypeEnumStringValues Enumerates the set of values in String for OlvmPmProxyTypeEnum
func GetOlvmPowerManagementStatusEnumStringValues() []string
GetOlvmPowerManagementStatusEnumStringValues Enumerates the set of values in String for OlvmPowerManagementStatusEnum
func GetOlvmSelinuxSeLinuxModeEnumStringValues() []string
GetOlvmSelinuxSeLinuxModeEnumStringValues Enumerates the set of values in String for OlvmSelinuxSeLinuxModeEnum
func GetOlvmSerialNumberPolicyEnumStringValues() []string
GetOlvmSerialNumberPolicyEnumStringValues Enumerates the set of values in String for OlvmSerialNumberPolicyEnum
func GetOlvmSpmSpmStatusEnumStringValues() []string
GetOlvmSpmSpmStatusEnumStringValues Enumerates the set of values in String for OlvmSpmSpmStatusEnum
func GetOlvmStorageDomainPropertiesExternalStatusEnumStringValues() []string
GetOlvmStorageDomainPropertiesExternalStatusEnumStringValues Enumerates the set of values in String for OlvmStorageDomainPropertiesExternalStatusEnum
func GetOlvmStorageDomainPropertiesStorageDomainStatusEnumStringValues() []string
GetOlvmStorageDomainPropertiesStorageDomainStatusEnumStringValues Enumerates the set of values in String for OlvmStorageDomainPropertiesStorageDomainStatusEnum
func GetOlvmStorageDomainPropertiesStorageDomainTypeEnumStringValues() []string
GetOlvmStorageDomainPropertiesStorageDomainTypeEnumStringValues Enumerates the set of values in String for OlvmStorageDomainPropertiesStorageDomainTypeEnum
func GetOlvmStorageDomainPropertiesStorageFormatEnumStringValues() []string
GetOlvmStorageDomainPropertiesStorageFormatEnumStringValues Enumerates the set of values in String for OlvmStorageDomainPropertiesStorageFormatEnum
func GetOlvmTemplatePropertiesAutoPinningPolicyEnumStringValues() []string
GetOlvmTemplatePropertiesAutoPinningPolicyEnumStringValues Enumerates the set of values in String for OlvmTemplatePropertiesAutoPinningPolicyEnum
func GetOlvmTemplatePropertiesCpuPinningPolicyEnumStringValues() []string
GetOlvmTemplatePropertiesCpuPinningPolicyEnumStringValues Enumerates the set of values in String for OlvmTemplatePropertiesCpuPinningPolicyEnum
func GetOlvmTemplatePropertiesStatusEnumStringValues() []string
GetOlvmTemplatePropertiesStatusEnumStringValues Enumerates the set of values in String for OlvmTemplatePropertiesStatusEnum
func GetOlvmTemplatePropertiesStorageErrorResumeBehaviorEnumStringValues() []string
GetOlvmTemplatePropertiesStorageErrorResumeBehaviorEnumStringValues Enumerates the set of values in String for OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum
func GetOlvmUsbUsbTypeEnumStringValues() []string
GetOlvmUsbUsbTypeEnumStringValues Enumerates the set of values in String for OlvmUsbUsbTypeEnum
func GetOlvmVirtualMachineAutoPinningPolicyEnumStringValues() []string
GetOlvmVirtualMachineAutoPinningPolicyEnumStringValues Enumerates the set of values in String for OlvmVirtualMachineAutoPinningPolicyEnum
func GetOlvmVirtualMachineCpuPinningPolicyEnumStringValues() []string
GetOlvmVirtualMachineCpuPinningPolicyEnumStringValues Enumerates the set of values in String for OlvmVirtualMachineCpuPinningPolicyEnum
func GetOlvmVirtualMachineNumaTuneModeEnumStringValues() []string
GetOlvmVirtualMachineNumaTuneModeEnumStringValues Enumerates the set of values in String for OlvmVirtualMachineNumaTuneModeEnum
func GetOlvmVirtualMachineStorageErrorResumeBehaviorEnumStringValues() []string
GetOlvmVirtualMachineStorageErrorResumeBehaviorEnumStringValues Enumerates the set of values in String for OlvmVirtualMachineStorageErrorResumeBehaviorEnum
func GetOlvmVmPlacementPolicyVmAffinityEnumStringValues() []string
GetOlvmVmPlacementPolicyVmAffinityEnumStringValues Enumerates the set of values in String for OlvmVmPlacementPolicyVmAffinityEnum
func GetOlvmVmStatusStatusEnumStringValues() []string
GetOlvmVmStatusStatusEnumStringValues Enumerates the set of values in String for OlvmVmStatusStatusEnum
func GetOlvmVmTypeVmTypeEnumStringValues() []string
GetOlvmVmTypeVmTypeEnumStringValues Enumerates the set of values in String for OlvmVmTypeVmTypeEnum
func GetOlvmVnicProfilePropertiesPassThroughEnumStringValues() []string
GetOlvmVnicProfilePropertiesPassThroughEnumStringValues Enumerates the set of values in String for OlvmVnicProfilePropertiesPassThroughEnum
func GetOperationStatusEnumStringValues() []string
GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum
func GetOperationTypeEnumStringValues() []string
GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum
func GetPercentileResourceAssessmentStrategyPercentileEnumStringValues() []string
GetPercentileResourceAssessmentStrategyPercentileEnumStringValues Enumerates the set of values in String for PercentileResourceAssessmentStrategyPercentileEnum
func GetPreemptionActionTypeEnumStringValues() []string
GetPreemptionActionTypeEnumStringValues Enumerates the set of values in String for PreemptionActionTypeEnum
func GetReplicationLocationDetailReplicationLocationTypeEnumStringValues() []string
GetReplicationLocationDetailReplicationLocationTypeEnumStringValues Enumerates the set of values in String for ReplicationLocationDetailReplicationLocationTypeEnum
func GetReplicationProgressLastReplicationStatusEnumStringValues() []string
GetReplicationProgressLastReplicationStatusEnumStringValues Enumerates the set of values in String for ReplicationProgressLastReplicationStatusEnum
func GetReplicationProgressStatusEnumStringValues() []string
GetReplicationProgressStatusEnumStringValues Enumerates the set of values in String for ReplicationProgressStatusEnum
func GetReplicationScheduleLifecycleStateEnumStringValues() []string
GetReplicationScheduleLifecycleStateEnumStringValues Enumerates the set of values in String for ReplicationScheduleLifecycleStateEnum
func GetResourceAssessmentStrategyResourceTypeEnumStringValues() []string
GetResourceAssessmentStrategyResourceTypeEnumStringValues Enumerates the set of values in String for ResourceAssessmentStrategyResourceTypeEnum
func GetResourceAssessmentStrategyStrategyTypeEnumStringValues() []string
GetResourceAssessmentStrategyStrategyTypeEnumStringValues Enumerates the set of values in String for ResourceAssessmentStrategyStrategyTypeEnum
func GetRngSourceEnumStringValues() []string
GetRngSourceEnumStringValues Enumerates the set of values in String for RngSourceEnum
func GetSortOrderEnumStringValues() []string
GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum
func GetStorageNfsVersionEnumStringValues() []string
GetStorageNfsVersionEnumStringValues Enumerates the set of values in String for StorageNfsVersionEnum
func GetStorageTypeEnumStringValues() []string
GetStorageTypeEnumStringValues Enumerates the set of values in String for StorageTypeEnum
func GetTargetAssetLifecycleStateEnumStringValues() []string
GetTargetAssetLifecycleStateEnumStringValues Enumerates the set of values in String for TargetAssetLifecycleStateEnum
func GetTargetAssetSummaryTypeEnumStringValues() []string
GetTargetAssetSummaryTypeEnumStringValues Enumerates the set of values in String for TargetAssetSummaryTypeEnum
func GetTargetAssetTypeEnumStringValues() []string
GetTargetAssetTypeEnumStringValues Enumerates the set of values in String for TargetAssetTypeEnum
func GetTargetEnvironmentTargetEnvironmentTypeEnumStringValues() []string
GetTargetEnvironmentTargetEnvironmentTypeEnumStringValues Enumerates the set of values in String for TargetEnvironmentTargetEnvironmentTypeEnum
func GetUpdateTargetAssetDetailsTypeEnumStringValues() []string
GetUpdateTargetAssetDetailsTypeEnumStringValues Enumerates the set of values in String for UpdateTargetAssetDetailsTypeEnum
func GetVmTargetAssetPreferredShapeTypeEnumStringValues() []string
GetVmTargetAssetPreferredShapeTypeEnumStringValues Enumerates the set of values in String for VmTargetAssetPreferredShapeTypeEnum
AccessLevelEnum Enum with underlying type: string
type AccessLevelEnum string
Set of constants representing the allowable values for AccessLevelEnum
const (
AccessLevelAccessible AccessLevelEnum = "ACCESSIBLE"
AccessLevelRestricted AccessLevelEnum = "RESTRICTED"
)
func GetAccessLevelEnumValues() []AccessLevelEnum
GetAccessLevelEnumValues Enumerates the set of values for AccessLevelEnum
func GetMappingAccessLevelEnum(val string) (AccessLevelEnum, bool)
GetMappingAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum
ActionTypeEnum Enum with underlying type: string
type ActionTypeEnum string
Set of constants representing the allowable values for ActionTypeEnum
const (
ActionTypeCreated ActionTypeEnum = "CREATED"
ActionTypeUpdated ActionTypeEnum = "UPDATED"
ActionTypeDeleted ActionTypeEnum = "DELETED"
ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS"
ActionTypeRelated ActionTypeEnum = "RELATED"
ActionTypeFailed ActionTypeEnum = "FAILED"
)
func GetActionTypeEnumValues() []ActionTypeEnum
GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum
func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)
GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum
AsIsResourceAssessmentStrategy The 'As-Is' based strategy.
type AsIsResourceAssessmentStrategy struct {
// The real resource usage is multiplied to this number before making any recommendation.
AdjustmentMultiplier *float32 `mandatory:"false" json:"adjustmentMultiplier"`
// The type of resource.
ResourceType ResourceAssessmentStrategyResourceTypeEnum `mandatory:"true" json:"resourceType"`
}
func (m AsIsResourceAssessmentStrategy) GetResourceType() ResourceAssessmentStrategyResourceTypeEnum
GetResourceType returns ResourceType
func (m AsIsResourceAssessmentStrategy) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m AsIsResourceAssessmentStrategy) String() string
func (m AsIsResourceAssessmentStrategy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Asset Description of an asset.
type Asset interface {
// Inventory ID to which an asset belongs to.
GetInventoryId() *string
// Asset OCID that is immutable on creation.
GetId() *string
// The OCID of the compartment to which an asset belongs to.
GetCompartmentId() *string
// The source key that the asset belongs to.
GetSourceKey() *string
// The key of the asset from the external environment.
GetExternalAssetKey() *string
// The time when the asset was created. An RFC3339 formatted datetime string.
GetTimeCreated() *common.SDKTime
// The time when the asset was updated. An RFC3339 formatted datetime string.
GetTimeUpdated() *common.SDKTime
// The current state of the asset.
GetLifecycleState() AssetLifecycleStateEnum
// Asset display name.
GetDisplayName() *string
// List of asset source OCID.
GetAssetSourceIds() []string
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
GetFreeformTags() map[string]string
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
GetDefinedTags() map[string]map[string]interface{}
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
GetSystemTags() map[string]map[string]interface{}
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
GetEnvironmentType() EnvironmentTypeEnum
}
AssetAggregation The result of an analytics aggregation on a set of assets.
type AssetAggregation struct {
// Aggregated property.
AggregatedProperty *string `mandatory:"true" json:"aggregatedProperty"`
// The dimensions along which assets can be aggregated for analytics.
Dimensions map[string]string `mandatory:"false" json:"dimensions"`
// Returns the total number of observations from the group of assets.
Count *int64 `mandatory:"false" json:"count"`
// Returns the highest value from all the assets.
Max *float64 `mandatory:"false" json:"max"`
// Returns the value of sum divided by count from the group of assets.
Mean *float64 `mandatory:"false" json:"mean"`
// Returns the lowest value from the group of assets.
Min *float64 `mandatory:"false" json:"min"`
// Returns all values added together from the group of assets.
Sum *float64 `mandatory:"false" json:"sum"`
}
func (m AssetAggregation) String() string
func (m AssetAggregation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetAggregationCollection The result of an analytics aggregation on a set of assets.
type AssetAggregationCollection struct {
// List of asset aggregations.
Items []AssetAggregation `mandatory:"true" json:"items"`
}
func (m AssetAggregationCollection) String() string
func (m AssetAggregationCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetCollection Results of a set of asset summary.
type AssetCollection struct {
// List of assets.
Items []AssetSummary `mandatory:"true" json:"items"`
}
func (m AssetCollection) String() string
func (m AssetCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetLifecycleStateEnum Enum with underlying type: string
type AssetLifecycleStateEnum string
Set of constants representing the allowable values for AssetLifecycleStateEnum
const (
AssetLifecycleStateActive AssetLifecycleStateEnum = "ACTIVE"
AssetLifecycleStateDeleted AssetLifecycleStateEnum = "DELETED"
)
func GetAssetLifecycleStateEnumValues() []AssetLifecycleStateEnum
GetAssetLifecycleStateEnumValues Enumerates the set of values for AssetLifecycleStateEnum
func GetMappingAssetLifecycleStateEnum(val string) (AssetLifecycleStateEnum, bool)
GetMappingAssetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
AssetSource Asset source.
type AssetSource interface {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
GetId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
GetCompartmentId() *string
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
GetDisplayName() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
GetEnvironmentId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
GetInventoryId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
GetAssetsCompartmentId() *string
// The current state of the asset source.
GetLifecycleState() AssetSourceLifecycleStateEnum
// The detailed state of the asset source.
GetLifecycleDetails() *string
// The time when the asset source was created in the RFC3339 format.
GetTimeCreated() *common.SDKTime
// The point in time that the asset source was last updated in the RFC3339 format.
GetTimeUpdated() *common.SDKTime
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an attached discovery schedule.
GetDiscoveryScheduleId() *string
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
GetFreeformTags() map[string]string
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
GetDefinedTags() map[string]map[string]interface{}
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
GetSystemTags() map[string]map[string]interface{}
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
GetEnvironmentType() EnvironmentTypeEnum
}
AssetSourceCollection Results of an asset source search. Contains asset source items.
type AssetSourceCollection struct {
// List of asset sources.
Items []AssetSourceSummary `mandatory:"true" json:"items"`
}
func (m AssetSourceCollection) String() string
func (m *AssetSourceCollection) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m AssetSourceCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetSourceConnection Descriptor of a connection to an asset source.
type AssetSourceConnection struct {
// The type of connection for an asset source.
ConnectionType AssetSourceConnectionTypeEnum `mandatory:"true" json:"connectionType"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud bridge connector used for migration operations.
ConnectorId *string `mandatory:"true" json:"connectorId"`
// Type-specific identifier for an asset source.
AssetSourceKey *string `mandatory:"true" json:"assetSourceKey"`
// The current state of the connection.
LifecycleState AssetSourceConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The detailed sub-state of the connection.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
}
func (m AssetSourceConnection) String() string
func (m AssetSourceConnection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetSourceConnectionCollection List of connections for an asset source.
type AssetSourceConnectionCollection struct {
// List of connections.
Items []AssetSourceConnection `mandatory:"true" json:"items"`
}
func (m AssetSourceConnectionCollection) String() string
func (m AssetSourceConnectionCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetSourceConnectionLifecycleStateEnum Enum with underlying type: string
type AssetSourceConnectionLifecycleStateEnum string
Set of constants representing the allowable values for AssetSourceConnectionLifecycleStateEnum
const (
AssetSourceConnectionLifecycleStateActive AssetSourceConnectionLifecycleStateEnum = "ACTIVE"
AssetSourceConnectionLifecycleStateUpdating AssetSourceConnectionLifecycleStateEnum = "UPDATING"
AssetSourceConnectionLifecycleStateNeedsAttention AssetSourceConnectionLifecycleStateEnum = "NEEDS_ATTENTION"
AssetSourceConnectionLifecycleStateDeleted AssetSourceConnectionLifecycleStateEnum = "DELETED"
AssetSourceConnectionLifecycleStateCreating AssetSourceConnectionLifecycleStateEnum = "CREATING"
)
func GetAssetSourceConnectionLifecycleStateEnumValues() []AssetSourceConnectionLifecycleStateEnum
GetAssetSourceConnectionLifecycleStateEnumValues Enumerates the set of values for AssetSourceConnectionLifecycleStateEnum
func GetMappingAssetSourceConnectionLifecycleStateEnum(val string) (AssetSourceConnectionLifecycleStateEnum, bool)
GetMappingAssetSourceConnectionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
AssetSourceConnectionTypeEnum Enum with underlying type: string
type AssetSourceConnectionTypeEnum string
Set of constants representing the allowable values for AssetSourceConnectionTypeEnum
const (
AssetSourceConnectionTypeDiscovery AssetSourceConnectionTypeEnum = "DISCOVERY"
AssetSourceConnectionTypeReplication AssetSourceConnectionTypeEnum = "REPLICATION"
)
func GetAssetSourceConnectionTypeEnumValues() []AssetSourceConnectionTypeEnum
GetAssetSourceConnectionTypeEnumValues Enumerates the set of values for AssetSourceConnectionTypeEnum
func GetMappingAssetSourceConnectionTypeEnum(val string) (AssetSourceConnectionTypeEnum, bool)
GetMappingAssetSourceConnectionTypeEnum performs case Insensitive comparison on enum value and return the desired enum
AssetSourceCredentials Credentials for an asset source.
type AssetSourceCredentials struct {
// Authentication type
Type AssetSourceCredentialsTypeEnum `mandatory:"true" json:"type"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the secret in a vault.
// If the type of the credentials is `BASIC`, the secret must contain the username and
// password in JSON format, which is in the form of `{ "username": "<User>", "password": "example-password" }`.
// If the type of the credentials is `API_KEY`, the secret must contain the accessKeyId and
// secretAccessKey in JSON format,
// which is in the form of `{ "accessKeyId": "<AccessKey>", "secretAccessKey": "<AccessKeyValue>" }`.
SecretId *string `mandatory:"true" json:"secretId"`
}
func (m AssetSourceCredentials) String() string
func (m AssetSourceCredentials) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetSourceCredentialsTypeEnum Enum with underlying type: string
type AssetSourceCredentialsTypeEnum string
Set of constants representing the allowable values for AssetSourceCredentialsTypeEnum
const (
AssetSourceCredentialsTypeBasic AssetSourceCredentialsTypeEnum = "BASIC"
AssetSourceCredentialsTypeApiKey AssetSourceCredentialsTypeEnum = "API_KEY"
)
func GetAssetSourceCredentialsTypeEnumValues() []AssetSourceCredentialsTypeEnum
GetAssetSourceCredentialsTypeEnumValues Enumerates the set of values for AssetSourceCredentialsTypeEnum
func GetMappingAssetSourceCredentialsTypeEnum(val string) (AssetSourceCredentialsTypeEnum, bool)
GetMappingAssetSourceCredentialsTypeEnum performs case Insensitive comparison on enum value and return the desired enum
AssetSourceLifecycleStateEnum Enum with underlying type: string
type AssetSourceLifecycleStateEnum string
Set of constants representing the allowable values for AssetSourceLifecycleStateEnum
const (
AssetSourceLifecycleStateCreating AssetSourceLifecycleStateEnum = "CREATING"
AssetSourceLifecycleStateActive AssetSourceLifecycleStateEnum = "ACTIVE"
AssetSourceLifecycleStateDeleting AssetSourceLifecycleStateEnum = "DELETING"
AssetSourceLifecycleStateDeleted AssetSourceLifecycleStateEnum = "DELETED"
AssetSourceLifecycleStateFailed AssetSourceLifecycleStateEnum = "FAILED"
AssetSourceLifecycleStateUpdating AssetSourceLifecycleStateEnum = "UPDATING"
AssetSourceLifecycleStateNeedsAttention AssetSourceLifecycleStateEnum = "NEEDS_ATTENTION"
)
func GetAssetSourceLifecycleStateEnumValues() []AssetSourceLifecycleStateEnum
GetAssetSourceLifecycleStateEnumValues Enumerates the set of values for AssetSourceLifecycleStateEnum
func GetMappingAssetSourceLifecycleStateEnum(val string) (AssetSourceLifecycleStateEnum, bool)
GetMappingAssetSourceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
AssetSourceSummary Summary of an asset source provided in the list.
type AssetSourceSummary interface {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
GetId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
GetCompartmentId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
GetEnvironmentId() *string
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
GetDisplayName() *string
// The current state of the asset source.
GetLifecycleState() AssetSourceLifecycleStateEnum
// The detailed state of the asset source.
GetLifecycleDetails() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
GetInventoryId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
GetAssetsCompartmentId() *string
// The time when the asset source was created in RFC3339 format.
GetTimeCreated() *common.SDKTime
// The point in time that the asset source was last updated in RFC3339 format.
GetTimeUpdated() *common.SDKTime
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
GetFreeformTags() map[string]string
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
GetDefinedTags() map[string]map[string]interface{}
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
GetSystemTags() map[string]map[string]interface{}
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
GetEnvironmentType() EnvironmentTypeEnum
}
AssetSourceTypeEnum Enum with underlying type: string
type AssetSourceTypeEnum string
Set of constants representing the allowable values for AssetSourceTypeEnum
const (
AssetSourceTypeVmware AssetSourceTypeEnum = "VMWARE"
AssetSourceTypeAws AssetSourceTypeEnum = "AWS"
AssetSourceTypeOlvm AssetSourceTypeEnum = "OLVM"
)
func GetAssetSourceTypeEnumValues() []AssetSourceTypeEnum
GetAssetSourceTypeEnumValues Enumerates the set of values for AssetSourceTypeEnum
func GetMappingAssetSourceTypeEnum(val string) (AssetSourceTypeEnum, bool)
GetMappingAssetSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
AssetSummary Summary of the asset.
type AssetSummary struct {
// Inventory ID that the asset belongs to.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// Asset OCID that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment that the asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key to which the asset belongs.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
// The type of asset.
AssetType AssetTypeEnum `mandatory:"true" json:"assetType"`
// The time when the asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// The current state of the asset.
LifecycleState AssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m AssetSummary) String() string
func (m AssetSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AssetTypeEnum Enum with underlying type: string
type AssetTypeEnum string
Set of constants representing the allowable values for AssetTypeEnum
const (
AssetTypeVmwareVm AssetTypeEnum = "VMWARE_VM"
AssetTypeVm AssetTypeEnum = "VM"
AssetTypeAwsEc2 AssetTypeEnum = "AWS_EC2"
AssetTypeAwsEbs AssetTypeEnum = "AWS_EBS"
)
func GetAssetTypeEnumValues() []AssetTypeEnum
GetAssetTypeEnumValues Enumerates the set of values for AssetTypeEnum
func GetMappingAssetTypeEnum(val string) (AssetTypeEnum, bool)
GetMappingAssetTypeEnum performs case Insensitive comparison on enum value and return the desired enum
AvailableShapeSummary Sumarized information about a shape.
type AvailableShapeSummary struct {
// Availability domain of the shape.
AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"`
// Shape name and availability domain. Used for pagination.
PaginationToken *string `mandatory:"true" json:"paginationToken"`
// Name of the shape.
Shape *string `mandatory:"true" json:"shape"`
// Description of the processor.
ProcessorDescription *string `mandatory:"true" json:"processorDescription"`
// Number of CPUs.
Ocpus *float32 `mandatory:"true" json:"ocpus"`
// Amount of memory for the shape.
MemoryInGBs *float32 `mandatory:"true" json:"memoryInGBs"`
// Minimum CPUs required.
MinTotalBaselineOcpusRequired *float32 `mandatory:"false" json:"minTotalBaselineOcpusRequired"`
// Shape bandwidth.
NetworkingBandwidthInGbps *float32 `mandatory:"false" json:"networkingBandwidthInGbps"`
// Maximum number of virtual network interfaces that can be attached.
MaxVnicAttachments *int `mandatory:"false" json:"maxVnicAttachments"`
// Number of GPUs.
Gpus *int `mandatory:"false" json:"gpus"`
// Description of the GPUs.
GpuDescription *string `mandatory:"false" json:"gpuDescription"`
// Number of local disks.
LocalDisks *int `mandatory:"false" json:"localDisks"`
// Total size of local disks for shape.
LocalDisksTotalSizeInGBs *float32 `mandatory:"false" json:"localDisksTotalSizeInGBs"`
// Description of local disks.
LocalDiskDescription *string `mandatory:"false" json:"localDiskDescription"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m AvailableShapeSummary) String() string
func (m AvailableShapeSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AvailableShapesCollection Results of an available shapes search. Contains list of shapes.
type AvailableShapesCollection struct {
// Available shapes list.
Items []AvailableShapeSummary `mandatory:"true" json:"items"`
}
func (m AvailableShapesCollection) String() string
func (m AvailableShapesCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AverageResourceAssessmentStrategy The strategy based on average usage.
type AverageResourceAssessmentStrategy struct {
// The real resource usage is multiplied to this number before making any recommendation.
AdjustmentMultiplier *float32 `mandatory:"false" json:"adjustmentMultiplier"`
// The type of resource.
ResourceType ResourceAssessmentStrategyResourceTypeEnum `mandatory:"true" json:"resourceType"`
// The current state of the migration plan.
MetricType MetricTypeEnum `mandatory:"false" json:"metricType,omitempty"`
// The current state of the migration plan.
MetricTimeWindow MetricTimeWindowEnum `mandatory:"false" json:"metricTimeWindow,omitempty"`
}
func (m AverageResourceAssessmentStrategy) GetResourceType() ResourceAssessmentStrategyResourceTypeEnum
GetResourceType returns ResourceType
func (m AverageResourceAssessmentStrategy) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m AverageResourceAssessmentStrategy) String() string
func (m AverageResourceAssessmentStrategy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsAssetSource AWS asset source. Used for discovery of EC2 instances and EBS volumes registered for the AWS account.
type AwsAssetSource struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// The detailed state of the asset source.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The time when the asset source was created in the RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The point in time that the asset source was last updated in the RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"true" json:"discoveryCredentials"`
// AWS region information, from where the resources are discovered.
AwsRegion *string `mandatory:"true" json:"awsRegion"`
// The key of customer's aws account to be discovered/migrated.
AwsAccountKey *string `mandatory:"true" json:"awsAccountKey"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an attached discovery schedule.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// Flag indicating whether cost data collection is enabled for assets, originating from this asset source.
IsCostInformationCollected *bool `mandatory:"false" json:"isCostInformationCollected"`
// The current state of the asset source.
LifecycleState AssetSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m AwsAssetSource) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m AwsAssetSource) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m AwsAssetSource) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m AwsAssetSource) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m AwsAssetSource) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m AwsAssetSource) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m AwsAssetSource) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m AwsAssetSource) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m AwsAssetSource) GetId() *string
GetId returns Id
func (m AwsAssetSource) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m AwsAssetSource) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m AwsAssetSource) GetLifecycleState() AssetSourceLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m AwsAssetSource) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m AwsAssetSource) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m AwsAssetSource) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m AwsAssetSource) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m AwsAssetSource) String() string
func (m AwsAssetSource) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsAssetSourceSummary Summary of an AWS asset source provided in the list.
type AwsAssetSourceSummary struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The detailed state of the asset source.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// AWS region information, from where the resources are discovered.
AwsRegion *string `mandatory:"true" json:"awsRegion"`
// The key of customer's aws account to be discovered/migrated.
AwsAccountKey *string `mandatory:"true" json:"awsAccountKey"`
// The time when the asset source was created in RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The point in time that the asset source was last updated in RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// The current state of the asset source.
LifecycleState AssetSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m AwsAssetSourceSummary) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m AwsAssetSourceSummary) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m AwsAssetSourceSummary) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m AwsAssetSourceSummary) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m AwsAssetSourceSummary) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m AwsAssetSourceSummary) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m AwsAssetSourceSummary) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m AwsAssetSourceSummary) GetId() *string
GetId returns Id
func (m AwsAssetSourceSummary) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m AwsAssetSourceSummary) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m AwsAssetSourceSummary) GetLifecycleState() AssetSourceLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m AwsAssetSourceSummary) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m AwsAssetSourceSummary) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m AwsAssetSourceSummary) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m AwsAssetSourceSummary) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m AwsAssetSourceSummary) String() string
func (m AwsAssetSourceSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsEbsAsset AWS EBS type of asset.
type AwsEbsAsset struct {
// Inventory ID to which an asset belongs to.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// Asset OCID that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment to which an asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key that the asset belongs to.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
// The time when the asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
AwsEbs *AwsEbsProperties `mandatory:"true" json:"awsEbs"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// The current state of the asset.
LifecycleState AssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m AwsEbsAsset) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m AwsEbsAsset) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m AwsEbsAsset) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m AwsEbsAsset) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m AwsEbsAsset) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m AwsEbsAsset) GetExternalAssetKey() *string
GetExternalAssetKey returns ExternalAssetKey
func (m AwsEbsAsset) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m AwsEbsAsset) GetId() *string
GetId returns Id
func (m AwsEbsAsset) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m AwsEbsAsset) GetLifecycleState() AssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m AwsEbsAsset) GetSourceKey() *string
GetSourceKey returns SourceKey
func (m AwsEbsAsset) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m AwsEbsAsset) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m AwsEbsAsset) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m AwsEbsAsset) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m AwsEbsAsset) String() string
func (m AwsEbsAsset) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsEbsAssetDetails AWS EBS type of asset.
type AwsEbsAssetDetails struct {
AwsEbs *AwsEbsProperties `mandatory:"true" json:"awsEbs"`
}
func (m AwsEbsAssetDetails) String() string
func (m AwsEbsAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsEbsProperties AWS EBS volume related properties.
type AwsEbsProperties struct {
// Indicates whether the volume is encrypted.
IsEncrypted *bool `mandatory:"true" json:"isEncrypted"`
// Indicates whether Amazon EBS Multi-Attach is enabled.
IsMultiAttachEnabled *bool `mandatory:"true" json:"isMultiAttachEnabled"`
// The size of the volume, in GiBs.
SizeInGiBs *int `mandatory:"true" json:"sizeInGiBs"`
// The ID of the volume.
VolumeKey *string `mandatory:"true" json:"volumeKey"`
// The volume type.
VolumeType *string `mandatory:"true" json:"volumeType"`
// Information about the volume attachments.
Attachments []VolumeAttachment `mandatory:"false" json:"attachments"`
// The Availability Zone for the volume.
AvailabilityZone *string `mandatory:"false" json:"availabilityZone"`
// The number of I/O operations per second.
Iops *int `mandatory:"false" json:"iops"`
// The volume state.
Status *string `mandatory:"false" json:"status"`
// Any tags assigned to the volume.
Tags []Tag `mandatory:"false" json:"tags"`
// The throughput that the volume supports, in MiB/s.
Throughput *int `mandatory:"false" json:"throughput"`
}
func (m AwsEbsProperties) String() string
func (m AwsEbsProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsEc2Asset AWS EC2 type of asset.
type AwsEc2Asset struct {
// Inventory ID to which an asset belongs to.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// Asset OCID that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment to which an asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key that the asset belongs to.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
// The time when the asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
Compute *ComputeProperties `mandatory:"true" json:"compute"`
Vm *VmProperties `mandatory:"true" json:"vm"`
AwsEc2 *AwsEc2Properties `mandatory:"true" json:"awsEc2"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
AwsEc2Cost *MonthlyCostSummary `mandatory:"false" json:"awsEc2Cost"`
AttachedEbsVolumesCost *MonthlyCostSummary `mandatory:"false" json:"attachedEbsVolumesCost"`
// The current state of the asset.
LifecycleState AssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m AwsEc2Asset) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m AwsEc2Asset) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m AwsEc2Asset) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m AwsEc2Asset) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m AwsEc2Asset) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m AwsEc2Asset) GetExternalAssetKey() *string
GetExternalAssetKey returns ExternalAssetKey
func (m AwsEc2Asset) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m AwsEc2Asset) GetId() *string
GetId returns Id
func (m AwsEc2Asset) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m AwsEc2Asset) GetLifecycleState() AssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m AwsEc2Asset) GetSourceKey() *string
GetSourceKey returns SourceKey
func (m AwsEc2Asset) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m AwsEc2Asset) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m AwsEc2Asset) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m AwsEc2Asset) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m AwsEc2Asset) String() string
func (m AwsEc2Asset) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsEc2AssetDetails AWS EC2 type of asset.
type AwsEc2AssetDetails struct {
Compute *ComputeProperties `mandatory:"true" json:"compute"`
Vm *VmProperties `mandatory:"true" json:"vm"`
AwsEc2 *AwsEc2Properties `mandatory:"true" json:"awsEc2"`
AwsEc2Cost *MonthlyCostSummary `mandatory:"false" json:"awsEc2Cost"`
AttachedEbsVolumesCost *MonthlyCostSummary `mandatory:"false" json:"attachedEbsVolumesCost"`
}
func (m AwsEc2AssetDetails) String() string
func (m AwsEc2AssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AwsEc2Properties AWS virtual machine related properties.
type AwsEc2Properties struct {
// The architecture of the image.
Architecture *string `mandatory:"true" json:"architecture"`
// The ID of the instance.
InstanceKey *string `mandatory:"true" json:"instanceKey"`
// The instance type.
InstanceType *string `mandatory:"true" json:"instanceType"`
// The device name of the root device volume.
RootDeviceName *string `mandatory:"true" json:"rootDeviceName"`
State *InstanceState `mandatory:"true" json:"state"`
// The boot mode of the instance.
BootMode *string `mandatory:"false" json:"bootMode"`
// The ID of the Capacity Reservation.
CapacityReservationKey *string `mandatory:"false" json:"capacityReservationKey"`
// Indicates if the elastic inference accelerators attached to an instance
AreElasticInferenceAcceleratorsPresent *bool `mandatory:"false" json:"areElasticInferenceAcceleratorsPresent"`
// Indicates whether the instance is enabled for AWS Nitro Enclaves.
IsEnclaveOptions *bool `mandatory:"false" json:"isEnclaveOptions"`
// Indicates whether the instance is enabled for hibernation.
IsHibernationOptions *bool `mandatory:"false" json:"isHibernationOptions"`
// The ID of the AMI used to launch the instance.
ImageKey *string `mandatory:"false" json:"imageKey"`
// Indicates whether this is a Spot Instance or a Scheduled Instance.
InstanceLifecycle *string `mandatory:"false" json:"instanceLifecycle"`
// The public IPv4 address, or the Carrier IP address assigned to the instance.
IpAddress *string `mandatory:"false" json:"ipAddress"`
// The IPv6 address assigned to the instance.
Ipv6Address *string `mandatory:"false" json:"ipv6Address"`
// The kernel associated with this instance, if applicable.
KernelKey *string `mandatory:"false" json:"kernelKey"`
// The time the instance was launched.
TimeLaunch *common.SDKTime `mandatory:"false" json:"timeLaunch"`
// The license configurations for the instance.
Licenses []string `mandatory:"false" json:"licenses"`
// Provides information on the recovery and maintenance options of your instance.
MaintenanceOptions *string `mandatory:"false" json:"maintenanceOptions"`
// The monitoring for the instance.
Monitoring *string `mandatory:"false" json:"monitoring"`
// The network interfaces for the instance.
NetworkInterfaces []InstanceNetworkInterface `mandatory:"false" json:"networkInterfaces"`
Placement *Placement `mandatory:"false" json:"placement"`
// (IPv4 only) The private DNS hostname name assigned to the instance.
PrivateDnsName *string `mandatory:"false" json:"privateDnsName"`
// The private IPv4 address assigned to the instance.
PrivateIpAddress *string `mandatory:"false" json:"privateIpAddress"`
// The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
RootDeviceType *string `mandatory:"false" json:"rootDeviceType"`
// The security groups for the instance.
SecurityGroups []GroupIdentifier `mandatory:"false" json:"securityGroups"`
// Indicates whether source/destination checking is enabled.
IsSourceDestCheck *bool `mandatory:"false" json:"isSourceDestCheck"`
// If the request is a Spot Instance request, this value will be true.
IsSpotInstance *bool `mandatory:"false" json:"isSpotInstance"`
// Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
SriovNetSupport *string `mandatory:"false" json:"sriovNetSupport"`
// EC2-VPC The ID of the subnet in which the instance is running.
SubnetKey *string `mandatory:"false" json:"subnetKey"`
// Any tags assigned to the instance.
Tags []Tag `mandatory:"false" json:"tags"`
// If the instance is configured for NitroTPM support, the value is v2.0.
TpmSupport *string `mandatory:"false" json:"tpmSupport"`
// The virtualization type of the instance.
VirtualizationType *string `mandatory:"false" json:"virtualizationType"`
// EC2-VPC The ID of the VPC in which the instance is running.
VpcKey *string `mandatory:"false" json:"vpcKey"`
}
func (m AwsEc2Properties) String() string
func (m AwsEc2Properties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CancelWorkRequestRequest wrapper for the CancelWorkRequest operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequestRequest.
type CancelWorkRequestRequest struct {
// The ID of the asynchronous request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CancelWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CancelWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CancelWorkRequestRequest) String() string
func (request CancelWorkRequestRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CancelWorkRequestResponse wrapper for the CancelWorkRequest operation
type CancelWorkRequestResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response CancelWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CancelWorkRequestResponse) String() string
ChangeAssetCompartmentDetails The information to be updated for changing asset compartment.
type ChangeAssetCompartmentDetails struct {
// The OCID of the compartment into which the resource should be moved.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
func (m ChangeAssetCompartmentDetails) String() string
func (m ChangeAssetCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeAssetSourceCompartmentDetails Details for which compartment to move the resource to.
type ChangeAssetSourceCompartmentDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment into which the resource should be moved.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
func (m ChangeAssetSourceCompartmentDetails) String() string
func (m ChangeAssetSourceCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeAssetTagsDetails The information about tags to be updated.
type ChangeAssetTagsDetails struct {
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m ChangeAssetTagsDetails) String() string
func (m ChangeAssetTagsDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeDiscoveryScheduleCompartmentDetails Information about the compartment into which the discovery schedule should be moved.
type ChangeDiscoveryScheduleCompartmentDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment into which the discovery schedule should be moved.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
func (m ChangeDiscoveryScheduleCompartmentDetails) String() string
func (m ChangeDiscoveryScheduleCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeMigrationCompartmentDetails The information to be updated.
type ChangeMigrationCompartmentDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment
// into which the resource should be moved.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
func (m ChangeMigrationCompartmentDetails) String() string
func (m ChangeMigrationCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeMigrationCompartmentRequest wrapper for the ChangeMigrationCompartment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ChangeMigrationCompartment.go.html to see an example of how to use ChangeMigrationCompartmentRequest.
type ChangeMigrationCompartmentRequest struct {
// Unique migration identifier
MigrationId *string `mandatory:"true" contributesTo:"path" name:"migrationId"`
// The information to be updated.
ChangeMigrationCompartmentDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ChangeMigrationCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeMigrationCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeMigrationCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeMigrationCompartmentRequest) String() string
func (request ChangeMigrationCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeMigrationCompartmentResponse wrapper for the ChangeMigrationCompartment operation
type ChangeMigrationCompartmentResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response ChangeMigrationCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeMigrationCompartmentResponse) String() string
ChangeMigrationPlanCompartmentDetails Details about the compartment into which the resource can be moved.
type ChangeMigrationPlanCompartmentDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment
// into which the resource should be moved.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
func (m ChangeMigrationPlanCompartmentDetails) String() string
func (m ChangeMigrationPlanCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeMigrationPlanCompartmentRequest wrapper for the ChangeMigrationPlanCompartment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ChangeMigrationPlanCompartment.go.html to see an example of how to use ChangeMigrationPlanCompartmentRequest.
type ChangeMigrationPlanCompartmentRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// Details for the compartment move.
ChangeMigrationPlanCompartmentDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ChangeMigrationPlanCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeMigrationPlanCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeMigrationPlanCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeMigrationPlanCompartmentRequest) String() string
func (request ChangeMigrationPlanCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeMigrationPlanCompartmentResponse wrapper for the ChangeMigrationPlanCompartment operation
type ChangeMigrationPlanCompartmentResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response ChangeMigrationPlanCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeMigrationPlanCompartmentResponse) String() string
ChangeReplicationScheduleCompartmentDetails Information about compartment into which the replication schedule should be moved.
type ChangeReplicationScheduleCompartmentDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment into which the replication schedule should be moved.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
}
func (m ChangeReplicationScheduleCompartmentDetails) String() string
func (m ChangeReplicationScheduleCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeReplicationScheduleCompartmentRequest wrapper for the ChangeReplicationScheduleCompartment operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ChangeReplicationScheduleCompartment.go.html to see an example of how to use ChangeReplicationScheduleCompartmentRequest.
type ChangeReplicationScheduleCompartmentRequest struct {
// Unique replication schedule identifier in path
ReplicationScheduleId *string `mandatory:"true" contributesTo:"path" name:"replicationScheduleId"`
// Details for the compartment move.
ChangeReplicationScheduleCompartmentDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ChangeReplicationScheduleCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeReplicationScheduleCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeReplicationScheduleCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeReplicationScheduleCompartmentRequest) String() string
func (request ChangeReplicationScheduleCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeReplicationScheduleCompartmentResponse wrapper for the ChangeReplicationScheduleCompartment operation
type ChangeReplicationScheduleCompartmentResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response ChangeReplicationScheduleCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeReplicationScheduleCompartmentResponse) String() string
CompatibilityMessage Information about shape compatibility with the client's current resource configuration.
type CompatibilityMessage struct {
// Severity level of the compatibility issue.
Severity CompatibilityMessageSeverityEnum `mandatory:"false" json:"severity,omitempty"`
// Name of the compatibility issue.
Name CompatibilityMessageNameEnum `mandatory:"false" json:"name,omitempty"`
// Detailed description of the compatibility issue.
Message *string `mandatory:"false" json:"message"`
}
func (m CompatibilityMessage) String() string
func (m CompatibilityMessage) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CompatibilityMessageNameEnum Enum with underlying type: string
type CompatibilityMessageNameEnum string
Set of constants representing the allowable values for CompatibilityMessageNameEnum
const (
CompatibilityMessageNameNotEnoughData CompatibilityMessageNameEnum = "NOT_ENOUGH_DATA"
CompatibilityMessageNameInvalidData CompatibilityMessageNameEnum = "INVALID_DATA"
CompatibilityMessageNameCpuCompatibilityWarning CompatibilityMessageNameEnum = "CPU_COMPATIBILITY_WARNING"
CompatibilityMessageNameCpuMetricInfo CompatibilityMessageNameEnum = "CPU_METRIC_INFO"
CompatibilityMessageNameMemoryCompatibilityWarning CompatibilityMessageNameEnum = "MEMORY_COMPATIBILITY_WARNING"
CompatibilityMessageNameMemoryMetricInfo CompatibilityMessageNameEnum = "MEMORY_METRIC_INFO"
CompatibilityMessageNameVnicsCompatibilityWarning CompatibilityMessageNameEnum = "VNICS_COMPATIBILITY_WARNING"
CompatibilityMessageNameBandwidthCompatibilityWarning CompatibilityMessageNameEnum = "BANDWIDTH_COMPATIBILITY_WARNING"
CompatibilityMessageNameGpuCompatibilityWarning CompatibilityMessageNameEnum = "GPU_COMPATIBILITY_WARNING"
CompatibilityMessageNameOsWarning CompatibilityMessageNameEnum = "OS_WARNING"
)
func GetCompatibilityMessageNameEnumValues() []CompatibilityMessageNameEnum
GetCompatibilityMessageNameEnumValues Enumerates the set of values for CompatibilityMessageNameEnum
func GetMappingCompatibilityMessageNameEnum(val string) (CompatibilityMessageNameEnum, bool)
GetMappingCompatibilityMessageNameEnum performs case Insensitive comparison on enum value and return the desired enum
CompatibilityMessageSeverityEnum Enum with underlying type: string
type CompatibilityMessageSeverityEnum string
Set of constants representing the allowable values for CompatibilityMessageSeverityEnum
const (
CompatibilityMessageSeverityError CompatibilityMessageSeverityEnum = "ERROR"
CompatibilityMessageSeverityWarning CompatibilityMessageSeverityEnum = "WARNING"
CompatibilityMessageSeverityInfo CompatibilityMessageSeverityEnum = "INFO"
)
func GetCompatibilityMessageSeverityEnumValues() []CompatibilityMessageSeverityEnum
GetCompatibilityMessageSeverityEnumValues Enumerates the set of values for CompatibilityMessageSeverityEnum
func GetMappingCompatibilityMessageSeverityEnum(val string) (CompatibilityMessageSeverityEnum, bool)
GetMappingCompatibilityMessageSeverityEnum performs case Insensitive comparison on enum value and return the desired enum
ComputeCostEstimation Cost estimation for compute
type ComputeCostEstimation struct {
// OCPU per hour
OcpuPerHour *float32 `mandatory:"true" json:"ocpuPerHour"`
// Gigabyte per hour
MemoryGbPerHour *float32 `mandatory:"true" json:"memoryGbPerHour"`
// GPU per hour
GpuPerHour *float32 `mandatory:"true" json:"gpuPerHour"`
// Total per hour
TotalPerHour *float32 `mandatory:"true" json:"totalPerHour"`
// OCPU per hour by subscription
OcpuPerHourBySubscription *float32 `mandatory:"false" json:"ocpuPerHourBySubscription"`
// Gigabyte per hour by subscription
MemoryGbPerHourBySubscription *float32 `mandatory:"false" json:"memoryGbPerHourBySubscription"`
// GPU per hour by subscription
GpuPerHourBySubscription *float32 `mandatory:"false" json:"gpuPerHourBySubscription"`
// Total usage per hour by subscription
TotalPerHourBySubscription *float32 `mandatory:"false" json:"totalPerHourBySubscription"`
// Total number of OCPUs
OcpuCount *float32 `mandatory:"false" json:"ocpuCount"`
// Total usage of memory
MemoryAmountGb *float32 `mandatory:"false" json:"memoryAmountGb"`
// Total number of GPU
GpuCount *float32 `mandatory:"false" json:"gpuCount"`
}
func (m ComputeCostEstimation) String() string
func (m ComputeCostEstimation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ComputeProperties Compute related properties.
type ComputeProperties struct {
// Primary IP address of the compute instance.
PrimaryIp *string `mandatory:"false" json:"primaryIp"`
// Fully Qualified DNS Name.
DnsName *string `mandatory:"false" json:"dnsName"`
// Information about the asset.
Description *string `mandatory:"false" json:"description"`
// Number of CPUs.
CoresCount *int `mandatory:"false" json:"coresCount"`
// CPU model name.
CpuModel *string `mandatory:"false" json:"cpuModel"`
// Number of GPU devices.
GpuDevicesCount *int `mandatory:"false" json:"gpuDevicesCount"`
// List of GPU devices attached to a virtual machine.
GpuDevices []GpuDevice `mandatory:"false" json:"gpuDevices"`
// Number of threads per core.
ThreadsPerCoreCount *int `mandatory:"false" json:"threadsPerCoreCount"`
// Memory size in MBs.
MemoryInMBs *int64 `mandatory:"false" json:"memoryInMBs"`
// Whether Pmem is enabled. Decides if NVDIMMs are used as a permanent memory.
IsPmemEnabled *bool `mandatory:"false" json:"isPmemEnabled"`
// Pmem size in MBs.
PmemInMBs *int64 `mandatory:"false" json:"pmemInMBs"`
// Operating system.
OperatingSystem *string `mandatory:"false" json:"operatingSystem"`
// Operating system version.
OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"`
// Host name of the VM.
HostName *string `mandatory:"false" json:"hostName"`
// The current power state of the virtual machine.
PowerState *string `mandatory:"false" json:"powerState"`
// Guest state.
GuestState *string `mandatory:"false" json:"guestState"`
// Whether Trusted Platform Module (TPM) is enabled.
IsTpmEnabled *bool `mandatory:"false" json:"isTpmEnabled"`
// Number of connected networks.
ConnectedNetworks *int `mandatory:"false" json:"connectedNetworks"`
// Number of network ethernet cards.
NicsCount *int `mandatory:"false" json:"nicsCount"`
// List of network ethernet cards attached to a virtual machine.
Nics []Nic `mandatory:"false" json:"nics"`
// Provision storage size in MBs.
StorageProvisionedInMBs *int64 `mandatory:"false" json:"storageProvisionedInMBs"`
// Number of disks.
DisksCount *int `mandatory:"false" json:"disksCount"`
// Lists the set of disks belonging to the virtual machine. This list is unordered.
Disks []Disk `mandatory:"false" json:"disks"`
// Information about firmware type for this virtual machine.
Firmware *string `mandatory:"false" json:"firmware"`
// Latency sensitivity.
LatencySensitivity *string `mandatory:"false" json:"latencySensitivity"`
// The properties of the NVDIMMs attached to a virtual machine.
Nvdimms []Nvdimm `mandatory:"false" json:"nvdimms"`
NvdimmController *NvdimmController `mandatory:"false" json:"nvdimmController"`
ScsiController *ScsiController `mandatory:"false" json:"scsiController"`
// Hardware version.
HardwareVersion *string `mandatory:"false" json:"hardwareVersion"`
}
func (m ComputeProperties) String() string
func (m ComputeProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostEstimation Cost estimation description
type CostEstimation struct {
Compute *ComputeCostEstimation `mandatory:"true" json:"compute"`
Storage *StorageCostEstimation `mandatory:"true" json:"storage"`
OsImage *OsImageEstimation `mandatory:"true" json:"osImage"`
// Total estimation per month
TotalEstimationPerMonth *float32 `mandatory:"true" json:"totalEstimationPerMonth"`
// Currency code in the ISO format.
CurrencyCode *string `mandatory:"false" json:"currencyCode"`
// Total estimation per month by subscription.
TotalEstimationPerMonthBySubscription *float32 `mandatory:"false" json:"totalEstimationPerMonthBySubscription"`
// Subscription ID
SubscriptionId *string `mandatory:"false" json:"subscriptionId"`
}
func (m CostEstimation) String() string
func (m CostEstimation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CostToMigrate Summary of costs to migrate.
type CostToMigrate struct {
// Data transfer costs from source cloud provider.
SourceDataTransferCosts *float32 `mandatory:"false" json:"sourceDataTransferCosts"`
// Data transfer costs from OCI.
OciDataTransferCosts *float32 `mandatory:"false" json:"ociDataTransferCosts"`
// Currency code as defined by ISO-4217.
CurrencyCode *string `mandatory:"false" json:"currencyCode"`
// Number of assets used in this calculation.
AssetCount *int `mandatory:"false" json:"assetCount"`
}
func (m CostToMigrate) String() string
func (m CostToMigrate) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAssetDetails The information about the new asset.
type CreateAssetDetails interface {
// Inventory ID to which an asset belongs.
GetInventoryId() *string
// The OCID of the compartment that the asset belongs to.
GetCompartmentId() *string
// The source key to which the asset belongs.
GetSourceKey() *string
// The key of the asset from the external environment.
GetExternalAssetKey() *string
// Asset display name.
GetDisplayName() *string
// List of asset source OCID.
GetAssetSourceIds() []string
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
GetFreeformTags() map[string]string
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
GetDefinedTags() map[string]map[string]interface{}
}
CreateAssetSourceDetails Asset source creation request.
type CreateAssetSourceDetails interface {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
GetCompartmentId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
GetEnvironmentId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
GetInventoryId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
GetAssetsCompartmentId() *string
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information. The name is generated by the service if it is not
// explicitly provided.
GetDisplayName() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be attached to the created asset.
GetDiscoveryScheduleId() *string
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
GetFreeformTags() map[string]string
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
GetDefinedTags() map[string]map[string]interface{}
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
GetSystemTags() map[string]map[string]interface{}
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
GetEnvironmentType() EnvironmentTypeEnum
}
CreateAwsAssetSourceDetails AWS asset source creation request.
type CreateAwsAssetSourceDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"true" json:"discoveryCredentials"`
// AWS region information, from where the resources are discovered.
AwsRegion *string `mandatory:"true" json:"awsRegion"`
// The key of customer's aws account to be discovered/migrated.
AwsAccountKey *string `mandatory:"true" json:"awsAccountKey"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information. The name is generated by the service if it is not
// explicitly provided.
DisplayName *string `mandatory:"false" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be attached to the created asset.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// Flag indicating whether cost data collection is enabled for assets, originating from this asset source.
IsCostInformationCollected *bool `mandatory:"false" json:"isCostInformationCollected"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m CreateAwsAssetSourceDetails) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m CreateAwsAssetSourceDetails) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m CreateAwsAssetSourceDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m CreateAwsAssetSourceDetails) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m CreateAwsAssetSourceDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m CreateAwsAssetSourceDetails) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m CreateAwsAssetSourceDetails) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m CreateAwsAssetSourceDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m CreateAwsAssetSourceDetails) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m CreateAwsAssetSourceDetails) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m CreateAwsAssetSourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateAwsAssetSourceDetails) String() string
func (m CreateAwsAssetSourceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAwsEbsAssetDetails Create AWS EBS type of asset.
type CreateAwsEbsAssetDetails struct {
// Inventory ID to which an asset belongs.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID of the compartment that the asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key to which the asset belongs.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
AwsEbs *AwsEbsProperties `mandatory:"true" json:"awsEbs"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateAwsEbsAssetDetails) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m CreateAwsEbsAssetDetails) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m CreateAwsEbsAssetDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m CreateAwsEbsAssetDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m CreateAwsEbsAssetDetails) GetExternalAssetKey() *string
GetExternalAssetKey returns ExternalAssetKey
func (m CreateAwsEbsAssetDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m CreateAwsEbsAssetDetails) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m CreateAwsEbsAssetDetails) GetSourceKey() *string
GetSourceKey returns SourceKey
func (m CreateAwsEbsAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateAwsEbsAssetDetails) String() string
func (m CreateAwsEbsAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAwsEc2AssetDetails Create AWS EC2 VM type of asset.
type CreateAwsEc2AssetDetails struct {
// Inventory ID to which an asset belongs.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID of the compartment that the asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key to which the asset belongs.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
Compute *ComputeProperties `mandatory:"true" json:"compute"`
Vm *VmProperties `mandatory:"true" json:"vm"`
AwsEc2 *AwsEc2Properties `mandatory:"true" json:"awsEc2"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
AwsEc2Cost *MonthlyCostSummary `mandatory:"false" json:"awsEc2Cost"`
AttachedEbsVolumesCost *MonthlyCostSummary `mandatory:"false" json:"attachedEbsVolumesCost"`
}
func (m CreateAwsEc2AssetDetails) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m CreateAwsEc2AssetDetails) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m CreateAwsEc2AssetDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m CreateAwsEc2AssetDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m CreateAwsEc2AssetDetails) GetExternalAssetKey() *string
GetExternalAssetKey returns ExternalAssetKey
func (m CreateAwsEc2AssetDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m CreateAwsEc2AssetDetails) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m CreateAwsEc2AssetDetails) GetSourceKey() *string
GetSourceKey returns SourceKey
func (m CreateAwsEc2AssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateAwsEc2AssetDetails) String() string
func (m CreateAwsEc2AssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateDiscoveryScheduleDetails Information about discovery schedule to be created.
type CreateDiscoveryScheduleDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the discovery schedule is created.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Recurrence specification for the discovery schedule execution.
ExecutionRecurrences *string `mandatory:"true" json:"executionRecurrences"`
// A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable.
// Avoid entering confidential information. The name is generated by the service if it is not
// explicitly provided.
DisplayName *string `mandatory:"false" json:"displayName"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateDiscoveryScheduleDetails) String() string
func (m CreateDiscoveryScheduleDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateMigrationAssetDetails Details of the new migration asset.
type CreateMigrationAssetDetails struct {
// OCID of an asset for an inventory.
InventoryAssetId *string `mandatory:"true" json:"inventoryAssetId"`
// OCID of the associated migration.
MigrationId *string `mandatory:"true" json:"migrationId"`
// Availability domain
AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"`
// Replication compartment identifier
ReplicationCompartmentId *string `mandatory:"true" json:"replicationCompartmentId"`
// Name of snapshot bucket
SnapShotBucketName *string `mandatory:"true" json:"snapShotBucketName"`
// A user-friendly name. If empty, then source asset name will be used. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
ReplicationLocationDetail *ReplicationLocationDetail `mandatory:"false" json:"replicationLocationDetail"`
// List of migration assets that depends on this asset.
DependsOn []string `mandatory:"false" json:"dependsOn"`
}
func (m CreateMigrationAssetDetails) String() string
func (m CreateMigrationAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateMigrationAssetRequest wrapper for the CreateMigrationAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateMigrationAsset.go.html to see an example of how to use CreateMigrationAssetRequest.
type CreateMigrationAssetRequest struct {
// Details for the new migration asset.
CreateMigrationAssetDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateMigrationAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateMigrationAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateMigrationAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateMigrationAssetRequest) String() string
func (request CreateMigrationAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateMigrationAssetResponse wrapper for the CreateMigrationAsset operation
type CreateMigrationAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// The MigrationAsset instance
MigrationAsset `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// The full URI of the resource related to the request
Location *string `presentIn:"header" name:"location"`
// The full URI of the resource related to the request
ContentLocation *string `presentIn:"header" name:"content-location"`
}
func (response CreateMigrationAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateMigrationAssetResponse) String() string
CreateMigrationDetails The information about new migration.
type CreateMigrationDetails struct {
// Migration identifier
DisplayName *string `mandatory:"true" json:"displayName"`
// Compartment identifier
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Type of migration project (OCI/OLVM). This determines the target environment for the migration.
MigrationType MigrationMigrationTypeEnum `mandatory:"false" json:"migrationType,omitempty"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
// Indicates whether migration is marked as complete.
IsCompleted *bool `mandatory:"false" json:"isCompleted"`
MigrationConfig *MigrationConfig `mandatory:"false" json:"migrationConfig"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateMigrationDetails) String() string
func (m CreateMigrationDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateMigrationPlanDetails The information about the new migration plan.
type CreateMigrationPlanDetails struct {
// Migration plan identifier
DisplayName *string `mandatory:"true" json:"displayName"`
// Compartment identifier
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID of the associated migration.
MigrationId *string `mandatory:"true" json:"migrationId"`
// Source migraiton plan ID to be cloned.
SourceMigrationPlanId *string `mandatory:"false" json:"sourceMigrationPlanId"`
// List of strategies for the resources to be migrated.
Strategies []ResourceAssessmentStrategy `mandatory:"false" json:"strategies"`
// List of target environments.
TargetEnvironments []TargetEnvironment `mandatory:"false" json:"targetEnvironments"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateMigrationPlanDetails) String() string
func (m *CreateMigrationPlanDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m CreateMigrationPlanDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateMigrationPlanRequest wrapper for the CreateMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateMigrationPlan.go.html to see an example of how to use CreateMigrationPlanRequest.
type CreateMigrationPlanRequest struct {
// Details for the new migration plan.
CreateMigrationPlanDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateMigrationPlanRequest) String() string
func (request CreateMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateMigrationPlanResponse wrapper for the CreateMigrationPlan operation
type CreateMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// The MigrationPlan instance
MigrationPlan `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// The full URI of the resource related to the request
Location *string `presentIn:"header" name:"location"`
// The full URI of the resource related to the request
ContentLocation *string `presentIn:"header" name:"content-location"`
}
func (response CreateMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateMigrationPlanResponse) String() string
CreateMigrationRequest wrapper for the CreateMigration operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateMigration.go.html to see an example of how to use CreateMigrationRequest.
type CreateMigrationRequest struct {
// Details for the new migration.
CreateMigrationDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateMigrationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateMigrationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateMigrationRequest) String() string
func (request CreateMigrationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateMigrationResponse wrapper for the CreateMigration operation
type CreateMigrationResponse struct {
// The underlying http response
RawResponse *http.Response
// The Migration instance
Migration `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response CreateMigrationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateMigrationResponse) String() string
CreateOlvmAssetSourceDetails OLVM asset source creation request.
type CreateOlvmAssetSourceDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// Endpoint for OLVM asset discovery and replication in the form of ```https://<host>:<port>```
OlvmEndpoint *string `mandatory:"true" json:"olvmEndpoint"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"true" json:"discoveryCredentials"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information. The name is generated by the service if it is not
// explicitly provided.
DisplayName *string `mandatory:"false" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be attached to the created asset.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m CreateOlvmAssetSourceDetails) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m CreateOlvmAssetSourceDetails) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m CreateOlvmAssetSourceDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m CreateOlvmAssetSourceDetails) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m CreateOlvmAssetSourceDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m CreateOlvmAssetSourceDetails) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m CreateOlvmAssetSourceDetails) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m CreateOlvmAssetSourceDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m CreateOlvmAssetSourceDetails) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m CreateOlvmAssetSourceDetails) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m CreateOlvmAssetSourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateOlvmAssetSourceDetails) String() string
func (m CreateOlvmAssetSourceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateOlvmTargetAssetDetails Description of the OLVM target asset.
type CreateOlvmTargetAssetDetails struct {
// OCID of the associated migration plan.
MigrationPlanId *string `mandatory:"true" json:"migrationPlanId"`
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"true" json:"isExcludedFromExecution"`
// Microsoft license for the VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
}
func (m CreateOlvmTargetAssetDetails) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m CreateOlvmTargetAssetDetails) GetMigrationPlanId() *string
GetMigrationPlanId returns MigrationPlanId
func (m CreateOlvmTargetAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateOlvmTargetAssetDetails) String() string
func (m CreateOlvmTargetAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateReplicationScheduleDetails Information about replication schedule to be created.
type CreateReplicationScheduleDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the replication schedule should be created.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Recurrence specification for replication schedule execution.
ExecutionRecurrences *string `mandatory:"true" json:"executionRecurrences"`
// A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateReplicationScheduleDetails) String() string
func (m CreateReplicationScheduleDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateReplicationScheduleRequest wrapper for the CreateReplicationSchedule operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateReplicationSchedule.go.html to see an example of how to use CreateReplicationScheduleRequest.
type CreateReplicationScheduleRequest struct {
// Details for the new replication schedule.
CreateReplicationScheduleDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateReplicationScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateReplicationScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateReplicationScheduleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateReplicationScheduleRequest) String() string
func (request CreateReplicationScheduleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateReplicationScheduleResponse wrapper for the CreateReplicationSchedule operation
type CreateReplicationScheduleResponse struct {
// The underlying http response
RawResponse *http.Response
// The ReplicationSchedule instance
ReplicationSchedule `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// The full URI of the resource related to the request
Location *string `presentIn:"header" name:"location"`
// The full URI of the resource related to the request
ContentLocation *string `presentIn:"header" name:"content-location"`
}
func (response CreateReplicationScheduleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateReplicationScheduleResponse) String() string
CreateTargetAssetDetails Details of the new target asset.
type CreateTargetAssetDetails interface {
// OCID of the associated migration plan.
GetMigrationPlanId() *string
// A boolean indicating whether the asset should be migrated.
GetIsExcludedFromExecution() *bool
}
CreateTargetAssetDetailsTypeEnum Enum with underlying type: string
type CreateTargetAssetDetailsTypeEnum string
Set of constants representing the allowable values for CreateTargetAssetDetailsTypeEnum
const (
CreateTargetAssetDetailsTypeInstance CreateTargetAssetDetailsTypeEnum = "INSTANCE"
CreateTargetAssetDetailsTypeOlvmInstance CreateTargetAssetDetailsTypeEnum = "OLVM_INSTANCE"
)
func GetCreateTargetAssetDetailsTypeEnumValues() []CreateTargetAssetDetailsTypeEnum
GetCreateTargetAssetDetailsTypeEnumValues Enumerates the set of values for CreateTargetAssetDetailsTypeEnum
func GetMappingCreateTargetAssetDetailsTypeEnum(val string) (CreateTargetAssetDetailsTypeEnum, bool)
GetMappingCreateTargetAssetDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum
CreateTargetAssetRequest wrapper for the CreateTargetAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateTargetAsset.go.html to see an example of how to use CreateTargetAssetRequest.
type CreateTargetAssetRequest struct {
// Details for the new target asset.
CreateTargetAssetDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request CreateTargetAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateTargetAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateTargetAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateTargetAssetRequest) String() string
func (request CreateTargetAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateTargetAssetResponse wrapper for the CreateTargetAsset operation
type CreateTargetAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// The TargetAsset instance
TargetAsset `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// The full URI of the resource related to the request
Location *string `presentIn:"header" name:"location"`
// The full URI of the resource related to the request
ContentLocation *string `presentIn:"header" name:"content-location"`
}
func (response CreateTargetAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateTargetAssetResponse) String() string
CreateVmTargetAssetDetails Description of the VM target asset.
type CreateVmTargetAssetDetails struct {
// OCID of the associated migration plan.
MigrationPlanId *string `mandatory:"true" json:"migrationPlanId"`
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"true" json:"isExcludedFromExecution"`
UserSpec *LaunchInstanceDetails `mandatory:"true" json:"userSpec"`
// Performance of the block volumes.
BlockVolumesPerformance *int `mandatory:"false" json:"blockVolumesPerformance"`
// Microsoft license for the VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
// Preferred VM shape type that you provide.
PreferredShapeType VmTargetAssetPreferredShapeTypeEnum `mandatory:"true" json:"preferredShapeType"`
}
func (m CreateVmTargetAssetDetails) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m CreateVmTargetAssetDetails) GetMigrationPlanId() *string
GetMigrationPlanId returns MigrationPlanId
func (m CreateVmTargetAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateVmTargetAssetDetails) String() string
func (m CreateVmTargetAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateVmWareAssetSourceDetails VMware asset source creation request.
type CreateVmWareAssetSourceDetails struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// Endpoint for VMware asset discovery and replication in the form of ```https://<host>:<port>/sdk```
VcenterEndpoint *string `mandatory:"true" json:"vcenterEndpoint"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"true" json:"discoveryCredentials"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information. The name is generated by the service if it is not
// explicitly provided.
DisplayName *string `mandatory:"false" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be attached to the created asset.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m CreateVmWareAssetSourceDetails) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m CreateVmWareAssetSourceDetails) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m CreateVmWareAssetSourceDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m CreateVmWareAssetSourceDetails) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m CreateVmWareAssetSourceDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m CreateVmWareAssetSourceDetails) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m CreateVmWareAssetSourceDetails) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m CreateVmWareAssetSourceDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m CreateVmWareAssetSourceDetails) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m CreateVmWareAssetSourceDetails) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m CreateVmWareAssetSourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateVmWareAssetSourceDetails) String() string
func (m CreateVmWareAssetSourceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateVmwareVmAssetDetails Create VMware VM type of asset.
type CreateVmwareVmAssetDetails struct {
// Inventory ID to which an asset belongs.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID of the compartment that the asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key to which the asset belongs.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
Compute *ComputeProperties `mandatory:"true" json:"compute"`
Vm *VmProperties `mandatory:"true" json:"vm"`
VmwareVm *VmwareVmProperties `mandatory:"true" json:"vmwareVm"`
VmwareVCenter *VmwareVCenterProperties `mandatory:"true" json:"vmwareVCenter"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m CreateVmwareVmAssetDetails) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m CreateVmwareVmAssetDetails) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m CreateVmwareVmAssetDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m CreateVmwareVmAssetDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m CreateVmwareVmAssetDetails) GetExternalAssetKey() *string
GetExternalAssetKey returns ExternalAssetKey
func (m CreateVmwareVmAssetDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m CreateVmwareVmAssetDetails) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m CreateVmwareVmAssetDetails) GetSourceKey() *string
GetSourceKey returns SourceKey
func (m CreateVmwareVmAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreateVmwareVmAssetDetails) String() string
func (m CreateVmwareVmAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateVnicDetails Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs) (https://docs.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm).
type CreateVnicDetails struct {
// Whether the VNIC should be assigned a public IP address. Defaults to whether
// the subnet is public or private. If not set and the VNIC is being created
// in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the
// Subnet), then no public IP address is assigned.
// If not set and the subnet is public (`prohibitPublicIpOnVnic` = false), then
// a public IP address is assigned. If set to true and
// `prohibitPublicIpOnVnic` = true, an error is returned.
// **Note:** This public IP address is associated with the primary private IP
// on the VNIC. For more information, see
// IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm).
// **Note:** There's a limit to the number of PublicIp
// a VNIC or instance can have. If you try to create a secondary VNIC
// with an assigned public IP for an instance that has already
// reached its public IP limit, an error is returned. For information
// about the public IP limits, see
// Public IP Addresses (https://docs.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm).
// Example: `false`
// If you specify a `vlanId`, then `assignPublicIp` must be set to false. See
// Vlan.
AssignPublicIp *bool `mandatory:"false" json:"assignPublicIp"`
// Whether the VNIC should be assigned a DNS record. If set to false, there will be no DNS record
// registration for the VNIC. If set to true, the DNS record will be registered. By default,
// the value is true.
// If you specify a `hostnameLabel`, then `assignPrivateDnsRecord` must be set to true.
AssignPrivateDnsRecord *bool `mandatory:"false" json:"assignPrivateDnsRecord"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname
// portion of the primary private IP's fully qualified domain name (FQDN)
// (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`).
// Must be unique across all VNICs in the subnet and comply with
// RFC 952 (https://tools.ietf.org/html/rfc952) and
// RFC 1123 (https://tools.ietf.org/html/rfc1123).
// The value appears in the Vnic object and also the
// PrivateIp object returned by
// ListPrivateIps and
// GetPrivateIp.
// For more information, see
// DNS in Your Virtual Cloud Network (https://docs.oracle.com/iaas/Content/Network/Concepts/dns.htm).
// When launching an instance, use this `hostnameLabel` instead
// of the deprecated `hostnameLabel` in
// LaunchInstanceDetails.
// If you provide both, the values must match.
// Example: `bminstance-1`
// If you specify a `vlanId`, the `hostnameLabel` cannot be specified. VNICs on a VLAN
// can not be assigned a hostname. See Vlan.
HostnameLabel *string `mandatory:"false" json:"hostnameLabel"`
// List of OCIDs of the network security groups (NSGs) that are added to the VNIC. For more
// information about NSGs, see
// NetworkSecurityGroup.
// If a `vlanId` is specified, the `nsgIds` cannot be specified. The `vlanId`
// indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs,
// all VNICs in the VLAN belong to the NSGs that are associated with the VLAN.
// See Vlan.
NsgIds []string `mandatory:"false" json:"nsgIds"`
// A private IP address of your choice to assign to the VNIC. Must be an
// available IP address within the subnet's CIDR. If you don't specify a
// value, Oracle automatically assigns a private IP address from the subnet.
// This is the VNIC's *primary* private IP address. The value appears in
// the Vnic object and also the
// PrivateIp object returned by
// ListPrivateIps and
// GetPrivateIp.
//
// If you specify a `vlanId`, the `privateIp` cannot be specified.
// See Vlan.
// Example: `10.0.3.3`
PrivateIp *string `mandatory:"false" json:"privateIp"`
// Whether the source/destination check is disabled on the VNIC.
// Defaults to `false`, which means the check is performed. For information
// about why you should skip the source/destination check, see
// Using a Private IP as a Route Target (https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip).
//
// If you specify a `vlanId`, the `skipSourceDestCheck` cannot be specified because the
// source/destination check is always disabled for VNICs in a VLAN. See
// Vlan.
// Example: `true`
SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet to create the VNIC. When launching an instance,
// use this `subnetId` instead of the deprecated `subnetId` in
// LaunchInstanceDetails.
// At least one of them is required; if you provide both, the values must match.
// If you are an Oracle Cloud VMware Solution customer and creating a secondary
// VNIC in a VLAN instead of a subnet, provide a `vlanId` instead of a `subnetId`.
// If you provide both `vlanId` and `subnetId`, the request fails.
SubnetId *string `mandatory:"false" json:"subnetId"`
// Provide this attribute only if you are an Oracle Cloud VMware Solution
// customer and creating a secondary VNIC in a VLAN. The value is the OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN.
// See Vlan.
// Provide a `vlanId` instead of a `subnetId`. If you provide both
// `vlanId` and `subnetId`, the request fails.
VlanId *string `mandatory:"false" json:"vlanId"`
}
func (m CreateVnicDetails) String() string
func (m CreateVnicDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CurrentMonthlyCost Current monthly compute and storage costs.
type CurrentMonthlyCost struct {
// Current monthly compute costs.
ComputeAmount *float32 `mandatory:"true" json:"computeAmount"`
// Currency code as defined by ISO-4217.
CurrencyCode *string `mandatory:"true" json:"currencyCode"`
// Current monthly storage costs.
StorageAmount *float32 `mandatory:"false" json:"storageAmount"`
// Number of assets used in this calculation.
AssetCount *int `mandatory:"false" json:"assetCount"`
}
func (m CurrentMonthlyCost) String() string
func (m CurrentMonthlyCost) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CustomerTag The customer defined tags.
type CustomerTag struct {
// The tag name.
Name *string `mandatory:"false" json:"name"`
// The tag description.
Description *string `mandatory:"false" json:"description"`
}
func (m CustomerTag) String() string
func (m CustomerTag) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteMigrationAssetRequest wrapper for the DeleteMigrationAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteMigrationAsset.go.html to see an example of how to use DeleteMigrationAssetRequest.
type DeleteMigrationAssetRequest struct {
// Unique migration asset identifier
MigrationAssetId *string `mandatory:"true" contributesTo:"path" name:"migrationAssetId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteMigrationAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteMigrationAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteMigrationAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteMigrationAssetRequest) String() string
func (request DeleteMigrationAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteMigrationAssetResponse wrapper for the DeleteMigrationAsset operation
type DeleteMigrationAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response DeleteMigrationAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteMigrationAssetResponse) String() string
DeleteMigrationPlanRequest wrapper for the DeleteMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteMigrationPlan.go.html to see an example of how to use DeleteMigrationPlanRequest.
type DeleteMigrationPlanRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteMigrationPlanRequest) String() string
func (request DeleteMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteMigrationPlanResponse wrapper for the DeleteMigrationPlan operation
type DeleteMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response DeleteMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteMigrationPlanResponse) String() string
DeleteMigrationRequest wrapper for the DeleteMigration operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteMigration.go.html to see an example of how to use DeleteMigrationRequest.
type DeleteMigrationRequest struct {
// Unique migration identifier
MigrationId *string `mandatory:"true" contributesTo:"path" name:"migrationId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteMigrationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteMigrationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteMigrationRequest) String() string
func (request DeleteMigrationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteMigrationResponse wrapper for the DeleteMigration operation
type DeleteMigrationResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response DeleteMigrationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteMigrationResponse) String() string
DeleteReplicationScheduleRequest wrapper for the DeleteReplicationSchedule operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteReplicationSchedule.go.html to see an example of how to use DeleteReplicationScheduleRequest.
type DeleteReplicationScheduleRequest struct {
// Unique replication schedule identifier in path
ReplicationScheduleId *string `mandatory:"true" contributesTo:"path" name:"replicationScheduleId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteReplicationScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteReplicationScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteReplicationScheduleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteReplicationScheduleRequest) String() string
func (request DeleteReplicationScheduleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteReplicationScheduleResponse wrapper for the DeleteReplicationSchedule operation
type DeleteReplicationScheduleResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response DeleteReplicationScheduleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteReplicationScheduleResponse) String() string
DeleteTargetAssetRequest wrapper for the DeleteTargetAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteTargetAsset.go.html to see an example of how to use DeleteTargetAssetRequest.
type DeleteTargetAssetRequest struct {
// Unique target asset identifier
TargetAssetId *string `mandatory:"true" contributesTo:"path" name:"targetAssetId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request DeleteTargetAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteTargetAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteTargetAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteTargetAssetRequest) String() string
func (request DeleteTargetAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteTargetAssetResponse wrapper for the DeleteTargetAsset operation
type DeleteTargetAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response DeleteTargetAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteTargetAssetResponse) String() string
DestinationDisk Details of destination disk
type DestinationDisk struct {
// UUID of disk
Uuid *string `mandatory:"true" json:"uuid"`
}
func (m DestinationDisk) String() string
func (m DestinationDisk) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DiscoverySchedule Discovery schedule.
type DiscoverySchedule struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule.
Id *string `mandatory:"true" json:"id"`
// A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// Recurrence specification for the discovery schedule execution.
ExecutionRecurrences *string `mandatory:"true" json:"executionRecurrences"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the discovery schedule exists.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Current state of the discovery schedule.
LifecycleState DiscoveryScheduleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The detailed state of the discovery schedule.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The time when the discovery schedule was created in RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the discovery schedule was last updated in RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m DiscoverySchedule) String() string
func (m DiscoverySchedule) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DiscoveryScheduleCollection Results of a discovery schedule search. Contains discovery schedule summaries.
type DiscoveryScheduleCollection struct {
// Discovery schedule summaries.
Items []DiscoveryScheduleSummary `mandatory:"true" json:"items"`
}
func (m DiscoveryScheduleCollection) String() string
func (m DiscoveryScheduleCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DiscoveryScheduleLifecycleStateEnum Enum with underlying type: string
type DiscoveryScheduleLifecycleStateEnum string
Set of constants representing the allowable values for DiscoveryScheduleLifecycleStateEnum
const (
DiscoveryScheduleLifecycleStateActive DiscoveryScheduleLifecycleStateEnum = "ACTIVE"
DiscoveryScheduleLifecycleStateDeleted DiscoveryScheduleLifecycleStateEnum = "DELETED"
)
func GetDiscoveryScheduleLifecycleStateEnumValues() []DiscoveryScheduleLifecycleStateEnum
GetDiscoveryScheduleLifecycleStateEnumValues Enumerates the set of values for DiscoveryScheduleLifecycleStateEnum
func GetMappingDiscoveryScheduleLifecycleStateEnum(val string) (DiscoveryScheduleLifecycleStateEnum, bool)
GetMappingDiscoveryScheduleLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
DiscoveryScheduleSummary Summarized information about a discovery schedule.
type DiscoveryScheduleSummary struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule.
Id *string `mandatory:"true" json:"id"`
// A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the discovery schedule exists.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Current state of the discovery schedule.
LifecycleState DiscoveryScheduleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The detailed state of the discovery schedule.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The time when the discovery schedule was created in RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the discovery schedule was last updated in RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m DiscoveryScheduleSummary) String() string
func (m DiscoveryScheduleSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Disk The assets disk.
type Disk struct {
// Disk name.
Name *string `mandatory:"false" json:"name"`
// Order of boot volumes.
BootOrder *int `mandatory:"false" json:"bootOrder"`
// Disk UUID for the virtual disk, if available.
Uuid *string `mandatory:"false" json:"uuid"`
// Disk UUID LUN for the virtual disk, if available.
UuidLun *string `mandatory:"false" json:"uuidLun"`
// The size of the volume in MBs.
SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"`
// Location of the boot/data volume.
Location *string `mandatory:"false" json:"location"`
// The disk persistent mode.
PersistentMode *string `mandatory:"false" json:"persistentMode"`
// Indicates that CBT (change disk tracking) is enabled for this virtual disk.
IsCbtEnabled *bool `mandatory:"false" json:"isCbtEnabled"`
}
func (m Disk) String() string
func (m Disk) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
EnvironmentTypeEnum Enum with underlying type: string
type EnvironmentTypeEnum string
Set of constants representing the allowable values for EnvironmentTypeEnum
const (
EnvironmentTypeSource EnvironmentTypeEnum = "SOURCE"
EnvironmentTypeDestination EnvironmentTypeEnum = "DESTINATION"
)
func GetEnvironmentTypeEnumValues() []EnvironmentTypeEnum
GetEnvironmentTypeEnumValues Enumerates the set of values for EnvironmentTypeEnum
func GetMappingEnvironmentTypeEnum(val string) (EnvironmentTypeEnum, bool)
GetMappingEnvironmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ExecuteMigrationPlanRequest wrapper for the ExecuteMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ExecuteMigrationPlan.go.html to see an example of how to use ExecuteMigrationPlanRequest.
type ExecuteMigrationPlanRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ExecuteMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ExecuteMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ExecuteMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ExecuteMigrationPlanRequest) String() string
func (request ExecuteMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ExecuteMigrationPlanResponse wrapper for the ExecuteMigrationPlan operation
type ExecuteMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response ExecuteMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ExecuteMigrationPlanResponse) String() string
ExportMigrationPlanRequest wrapper for the ExportMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ExportMigrationPlan.go.html to see an example of how to use ExportMigrationPlanRequest.
type ExportMigrationPlanRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ExportMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ExportMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ExportMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ExportMigrationPlanRequest) String() string
func (request ExportMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ExportMigrationPlanResponse wrapper for the ExportMigrationPlan operation
type ExportMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// The io.ReadCloser instance
Content io.ReadCloser `presentIn:"body" encoding:"binary"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response ExportMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ExportMigrationPlanResponse) String() string
GetMigrationAssetRequest wrapper for the GetMigrationAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetMigrationAsset.go.html to see an example of how to use GetMigrationAssetRequest.
type GetMigrationAssetRequest struct {
// Unique migration asset identifier
MigrationAssetId *string `mandatory:"true" contributesTo:"path" name:"migrationAssetId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetMigrationAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetMigrationAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetMigrationAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetMigrationAssetRequest) String() string
func (request GetMigrationAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetMigrationAssetResponse wrapper for the GetMigrationAsset operation
type GetMigrationAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// The MigrationAsset instance
MigrationAsset `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetMigrationAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetMigrationAssetResponse) String() string
GetMigrationPlanRequest wrapper for the GetMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetMigrationPlan.go.html to see an example of how to use GetMigrationPlanRequest.
type GetMigrationPlanRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetMigrationPlanRequest) String() string
func (request GetMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetMigrationPlanResponse wrapper for the GetMigrationPlan operation
type GetMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// The MigrationPlan instance
MigrationPlan `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetMigrationPlanResponse) String() string
GetMigrationRequest wrapper for the GetMigration operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetMigration.go.html to see an example of how to use GetMigrationRequest.
type GetMigrationRequest struct {
// Unique migration identifier
MigrationId *string `mandatory:"true" contributesTo:"path" name:"migrationId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetMigrationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetMigrationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetMigrationRequest) String() string
func (request GetMigrationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetMigrationResponse wrapper for the GetMigration operation
type GetMigrationResponse struct {
// The underlying http response
RawResponse *http.Response
// The Migration instance
Migration `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetMigrationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetMigrationResponse) String() string
GetReplicationProgressRequest wrapper for the GetReplicationProgress operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetReplicationProgress.go.html to see an example of how to use GetReplicationProgressRequest.
type GetReplicationProgressRequest struct {
// Unique migration asset identifier
MigrationAssetId *string `mandatory:"true" contributesTo:"path" name:"migrationAssetId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetReplicationProgressRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetReplicationProgressRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetReplicationProgressRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetReplicationProgressRequest) String() string
func (request GetReplicationProgressRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetReplicationProgressResponse wrapper for the GetReplicationProgress operation
type GetReplicationProgressResponse struct {
// The underlying http response
RawResponse *http.Response
// The ReplicationProgress instance
ReplicationProgress `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetReplicationProgressResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetReplicationProgressResponse) String() string
GetReplicationScheduleRequest wrapper for the GetReplicationSchedule operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetReplicationSchedule.go.html to see an example of how to use GetReplicationScheduleRequest.
type GetReplicationScheduleRequest struct {
// Unique replication schedule identifier in path
ReplicationScheduleId *string `mandatory:"true" contributesTo:"path" name:"replicationScheduleId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetReplicationScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetReplicationScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetReplicationScheduleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetReplicationScheduleRequest) String() string
func (request GetReplicationScheduleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetReplicationScheduleResponse wrapper for the GetReplicationSchedule operation
type GetReplicationScheduleResponse struct {
// The underlying http response
RawResponse *http.Response
// The ReplicationSchedule instance
ReplicationSchedule `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetReplicationScheduleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetReplicationScheduleResponse) String() string
GetTargetAssetRequest wrapper for the GetTargetAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetTargetAsset.go.html to see an example of how to use GetTargetAssetRequest.
type GetTargetAssetRequest struct {
// Unique target asset identifier
TargetAssetId *string `mandatory:"true" contributesTo:"path" name:"targetAssetId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetTargetAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetTargetAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetTargetAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetTargetAssetRequest) String() string
func (request GetTargetAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetTargetAssetResponse wrapper for the GetTargetAsset operation
type GetTargetAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// The TargetAsset instance
TargetAsset `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response GetTargetAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetTargetAssetResponse) String() string
GetWorkRequestRequest wrapper for the GetWorkRequest operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest.
type GetWorkRequestRequest struct {
// The ID of the asynchronous request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetWorkRequestRequest) String() string
func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetWorkRequestResponse wrapper for the GetWorkRequest operation
type GetWorkRequestResponse struct {
// The underlying http response
RawResponse *http.Response
// The WorkRequest instance
WorkRequest `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// A decimal number representing the number of seconds the client should wait before polling this endpoint again.
RetryAfter *int `presentIn:"header" name:"retry-after"`
}
func (response GetWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetWorkRequestResponse) String() string
GpuDevice GPU device details.
type GpuDevice struct {
// GPU device name.
Name *string `mandatory:"false" json:"name"`
// GPU device description.
Description *string `mandatory:"false" json:"description"`
// Number of GPU cores.
CoresCount *int `mandatory:"false" json:"coresCount"`
// GPU memory size in MBs.
MemoryInMBs *int64 `mandatory:"false" json:"memoryInMBs"`
// The manufacturer of GPU.
Manufacturer *string `mandatory:"false" json:"manufacturer"`
}
func (m GpuDevice) String() string
func (m GpuDevice) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GroupIdentifier Describes a security group.
type GroupIdentifier struct {
// The ID of the security group.
GroupKey *string `mandatory:"false" json:"groupKey"`
// The name of the security group.
GroupName *string `mandatory:"false" json:"groupName"`
}
func (m GroupIdentifier) String() string
func (m GroupIdentifier) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HistoricalMetric Metric details.
type HistoricalMetric struct {
// Metric name.
Name *string `mandatory:"true" json:"name"`
// Aggregation time interval.
Aggregation *string `mandatory:"true" json:"aggregation"`
// Aggregation value.
Value *float32 `mandatory:"true" json:"value"`
}
func (m HistoricalMetric) String() string
func (m HistoricalMetric) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HistoricalMetricCollection List of historical metric.
type HistoricalMetricCollection struct {
// List of asset historical metrics.
Items []HistoricalMetricSummary `mandatory:"true" json:"items"`
}
func (m HistoricalMetricCollection) String() string
func (m HistoricalMetricCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HistoricalMetricSummary Metric details.
type HistoricalMetricSummary struct {
// Metric name.
Name *string `mandatory:"true" json:"name"`
// Aggregation time interval.
Aggregation *string `mandatory:"true" json:"aggregation"`
// Aggregation value.
Value *float32 `mandatory:"true" json:"value"`
// The time the HistoricalMetric was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The time the HistoricalMetric was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}
func (m HistoricalMetricSummary) String() string
func (m HistoricalMetricSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HydratedVolume Description of the hydration server volume.
type HydratedVolume struct {
// ID of the vCenter disk obtained from Inventory.
Uuid *string `mandatory:"true" json:"uuid"`
// ID of the hydration server volume
VolumeId *string `mandatory:"true" json:"volumeId"`
// The hydration server volume type
VolumeType HydratedVolumeVolumeTypeEnum `mandatory:"true" json:"volumeType"`
// ID of the unmodified volume
UnmodifiedVolumeId *string `mandatory:"true" json:"unmodifiedVolumeId"`
}
func (m HydratedVolume) String() string
func (m HydratedVolume) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HydratedVolumeVolumeTypeEnum Enum with underlying type: string
type HydratedVolumeVolumeTypeEnum string
Set of constants representing the allowable values for HydratedVolumeVolumeTypeEnum
const (
HydratedVolumeVolumeTypeBoot HydratedVolumeVolumeTypeEnum = "BOOT"
HydratedVolumeVolumeTypeBlock HydratedVolumeVolumeTypeEnum = "BLOCK"
)
func GetHydratedVolumeVolumeTypeEnumValues() []HydratedVolumeVolumeTypeEnum
GetHydratedVolumeVolumeTypeEnumValues Enumerates the set of values for HydratedVolumeVolumeTypeEnum
func GetMappingHydratedVolumeVolumeTypeEnum(val string) (HydratedVolumeVolumeTypeEnum, bool)
GetMappingHydratedVolumeVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ImportMigrationPlanRequest wrapper for the ImportMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ImportMigrationPlan.go.html to see an example of how to use ImportMigrationPlanRequest.
type ImportMigrationPlanRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// The csv file to be uploaded.
ImportMigrationPlanDetails io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ImportMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ImportMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ImportMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ImportMigrationPlanRequest) String() string
func (request ImportMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ImportMigrationPlanResponse wrapper for the ImportMigrationPlan operation
type ImportMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response ImportMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ImportMigrationPlanResponse) String() string
InstanceAgentPluginConfigDetails The configuration of plugins associated with this instance.
type InstanceAgentPluginConfigDetails struct {
// The plugin name. To get a list of available plugins, use the
// ListInstanceagentAvailablePlugins
// operation in the Oracle Cloud Agent API. For more information about the available plugins, see
// Managing Plugins with Oracle Cloud Agent (https://docs.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm).
Name *string `mandatory:"true" json:"name"`
// Whether the plugin should be enabled or disabled.
// To enable the monitoring and management plugins, the `isMonitoringDisabled` and
// `isManagementDisabled` attributes must also be set to false.
DesiredState InstanceAgentPluginConfigDetailsDesiredStateEnum `mandatory:"true" json:"desiredState"`
}
func (m InstanceAgentPluginConfigDetails) String() string
func (m InstanceAgentPluginConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstanceAgentPluginConfigDetailsDesiredStateEnum Enum with underlying type: string
type InstanceAgentPluginConfigDetailsDesiredStateEnum string
Set of constants representing the allowable values for InstanceAgentPluginConfigDetailsDesiredStateEnum
const (
InstanceAgentPluginConfigDetailsDesiredStateEnabled InstanceAgentPluginConfigDetailsDesiredStateEnum = "ENABLED"
InstanceAgentPluginConfigDetailsDesiredStateDisabled InstanceAgentPluginConfigDetailsDesiredStateEnum = "DISABLED"
)
func GetInstanceAgentPluginConfigDetailsDesiredStateEnumValues() []InstanceAgentPluginConfigDetailsDesiredStateEnum
GetInstanceAgentPluginConfigDetailsDesiredStateEnumValues Enumerates the set of values for InstanceAgentPluginConfigDetailsDesiredStateEnum
func GetMappingInstanceAgentPluginConfigDetailsDesiredStateEnum(val string) (InstanceAgentPluginConfigDetailsDesiredStateEnum, bool)
GetMappingInstanceAgentPluginConfigDetailsDesiredStateEnum performs case Insensitive comparison on enum value and return the desired enum
InstanceNetworkInterface Describes a network interface.
type InstanceNetworkInterface struct {
Association *InstanceNetworkInterfaceAssociation `mandatory:"false" json:"association"`
Attachment *InstanceNetworkInterfaceAttachment `mandatory:"false" json:"attachment"`
// The description.
Description *string `mandatory:"false" json:"description"`
// The security groups.
SecurityGroups []GroupIdentifier `mandatory:"false" json:"securityGroups"`
// The type of network interface.
InterfaceType *string `mandatory:"false" json:"interfaceType"`
// The IPv4 delegated prefixes that are assigned to the network interface.
Ipv4Prefixes []string `mandatory:"false" json:"ipv4Prefixes"`
// The IPv6 addresses associated with the network interface.
Ipv6Addresses []string `mandatory:"false" json:"ipv6Addresses"`
// The IPv6 delegated prefixes that are assigned to the network interface.
Ipv6Prefixes []string `mandatory:"false" json:"ipv6Prefixes"`
// The MAC address.
MacAddress *string `mandatory:"false" json:"macAddress"`
// The ID of the network interface.
NetworkInterfaceKey *string `mandatory:"false" json:"networkInterfaceKey"`
// The ID of the AWS account that created the network interface.
OwnerKey *string `mandatory:"false" json:"ownerKey"`
// The private IPv4 addresses associated with the network interface.
PrivateIpAddresses []InstancePrivateIpAddress `mandatory:"false" json:"privateIpAddresses"`
// Indicates whether source/destination checking is enabled.
IsSourceDestCheck *bool `mandatory:"false" json:"isSourceDestCheck"`
// The status of the network interface.
Status *string `mandatory:"false" json:"status"`
// The ID of the subnet.
SubnetKey *string `mandatory:"false" json:"subnetKey"`
}
func (m InstanceNetworkInterface) String() string
func (m InstanceNetworkInterface) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstanceNetworkInterfaceAssociation Describes association information for an Elastic IP address (IPv4).
type InstanceNetworkInterfaceAssociation struct {
// The carrier IP address associated with the network interface.
CarrierIp *string `mandatory:"false" json:"carrierIp"`
// The customer-owned IP address associated with the network interface.
CustomerOwnedIp *string `mandatory:"false" json:"customerOwnedIp"`
// The ID of the owner of the Elastic IP address.
IpOwnerKey *string `mandatory:"false" json:"ipOwnerKey"`
// The public DNS name.
PublicDnsName *string `mandatory:"false" json:"publicDnsName"`
// The public IP address or Elastic IP address bound to the network interface.
PublicIp *string `mandatory:"false" json:"publicIp"`
}
func (m InstanceNetworkInterfaceAssociation) String() string
func (m InstanceNetworkInterfaceAssociation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstanceNetworkInterfaceAttachment Describes a network interface attachment.
type InstanceNetworkInterfaceAttachment struct {
// The ID of the network interface attachment.
AttachmentKey *string `mandatory:"false" json:"attachmentKey"`
// The timestamp when the attachment initiated.
TimeAttach *common.SDKTime `mandatory:"false" json:"timeAttach"`
// Indicates whether the network interface is deleted when the instance is terminated.
IsDeleteOnTermination *bool `mandatory:"false" json:"isDeleteOnTermination"`
// The index of the device on the instance for the network interface attachment.
DeviceIndex *int `mandatory:"false" json:"deviceIndex"`
// The index of the network card.
NetworkCardIndex *int `mandatory:"false" json:"networkCardIndex"`
// The attachment state.
Status *string `mandatory:"false" json:"status"`
}
func (m InstanceNetworkInterfaceAttachment) String() string
func (m InstanceNetworkInterfaceAttachment) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstanceOptions Optional mutable instance options
type InstanceOptions struct {
// Whether to disable the legacy (/v1) instance metadata service endpoints.
// Customers who have migrated to /v2 should set this to true for added security.
// Default is false.
AreLegacyImdsEndpointsDisabled *bool `mandatory:"false" json:"areLegacyImdsEndpointsDisabled"`
}
func (m InstanceOptions) String() string
func (m InstanceOptions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstancePrivateIpAddress Describes a private IPv4 address.
type InstancePrivateIpAddress struct {
Association *InstanceNetworkInterfaceAssociation `mandatory:"false" json:"association"`
// Indicates whether this IPv4 address is the primary private IP address of the network interface.
IsPrimary *bool `mandatory:"false" json:"isPrimary"`
// The private IPv4 DNS name.
PrivateDnsName *string `mandatory:"false" json:"privateDnsName"`
// The private IPv4 address of the network interface.
PrivateIpAddress *string `mandatory:"false" json:"privateIpAddress"`
}
func (m InstancePrivateIpAddress) String() string
func (m InstancePrivateIpAddress) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstanceSourceDetails The representation of InstanceSourceDetails
type InstanceSourceDetails interface {
}
InstanceSourceViaBootVolumeDetails The representation of InstanceSourceViaBootVolumeDetails
type InstanceSourceViaBootVolumeDetails struct {
// The OCID of the boot volume used to boot the instance.
BootVolumeId *string `mandatory:"true" json:"bootVolumeId"`
}
func (m InstanceSourceViaBootVolumeDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m InstanceSourceViaBootVolumeDetails) String() string
func (m InstanceSourceViaBootVolumeDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstanceSourceViaImageDetails The representation of InstanceSourceViaImageDetails
type InstanceSourceViaImageDetails struct {
// The OCID of the image used to boot the instance.
ImageId *string `mandatory:"true" json:"imageId"`
// The size of the boot volume in GBs. The minimum value is 50 GB and the maximum value is 32,768 GB (32 TB).
BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"`
// The OCID of the key management key to assign as the master encryption key for the boot volume.
KmsKeyId *string `mandatory:"false" json:"kmsKeyId"`
// The number of volume performance units (VPUs) that will be applied to this volume per GB that
// represents the Block Volume service's elastic performance options.
// See Block Volume Performance Levels (https://docs.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information.
// Allowed values:
// * `10`: Represents Balanced option.
// * `20`: Represents Higher Performance option.
// * `30`-`120`: Represents the Ultra High Performance option.
// For volumes with the auto-tuned performance feature enabled, this is set to the default (minimum) VPUs/GB.
BootVolumeVpusPerGB *int64 `mandatory:"false" json:"bootVolumeVpusPerGB"`
}
func (m InstanceSourceViaImageDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m InstanceSourceViaImageDetails) String() string
func (m InstanceSourceViaImageDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InstanceState Describes the current state of an instance.
type InstanceState struct {
// The state of the instance as a 16-bit unsigned integer.
Code *int `mandatory:"false" json:"code"`
// The current state of the instance.
Name *string `mandatory:"false" json:"name"`
}
func (m InstanceState) String() string
func (m InstanceState) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Ksm Kernal Same-page Merging
type Ksm struct {
// Indicates if KSM is enabled.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
// Indicates if KSM should merge across nodes.
IsMergeAcrossNodes *bool `mandatory:"false" json:"isMergeAcrossNodes"`
}
func (m Ksm) String() string
func (m Ksm) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
LaunchInstanceAgentConfigDetails Configuration options for the Oracle Cloud Agent software running on the instance.
type LaunchInstanceAgentConfigDetails struct {
// Whether Oracle Cloud Agent can gather performance metrics and monitor the instance using the
// monitoring plugins. By default, the value is false (monitoring plugins are enabled).
// These are the monitoring plugins: Compute instance monitoring
// and Custom logs monitoring.
// The monitoring plugins are controlled by this parameter and by the per-plugin
// configuration in the `pluginsConfig` object.
// - If `isMonitoringDisabled` is true, all the monitoring plugins are disabled, regardless of
// the per-plugin configuration.
// - If `isMonitoringDisabled` is false, all the monitoring plugins are enabled. You
// can optionally disable individual monitoring plugins by providing a value in the `pluginsConfig`
// object.
IsMonitoringDisabled *bool `mandatory:"false" json:"isMonitoringDisabled"`
// Whether Oracle Cloud Agent can run all the available management plugins.
// By default, the value is false (management plugins are enabled).
// These are the management plugins: OS Management Service Agent and Compute instance
// run command.
// The management plugins are controlled by this parameter and the per-plugin
// configuration in the `pluginsConfig` object.
// - If `isManagementDisabled` is true, all the management plugins are disabled, regardless of
// the per-plugin configuration.
// - If `isManagementDisabled` is false, all the management plugins are enabled. You
// can optionally disable individual management plugins by providing a value in the `pluginsConfig`
// object.
IsManagementDisabled *bool `mandatory:"false" json:"isManagementDisabled"`
// Whether Oracle Cloud Agent can run all the available plugins.
// This includes the management and monitoring plugins.
// To get a list of available plugins, use the
// ListInstanceagentAvailablePlugins
// operation in the Oracle Cloud Agent API. For more information about the available plugins, see
// Managing Plugins with Oracle Cloud Agent (https://docs.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm).
AreAllPluginsDisabled *bool `mandatory:"false" json:"areAllPluginsDisabled"`
// The configuration of plugins associated with this instance.
PluginsConfig []InstanceAgentPluginConfigDetails `mandatory:"false" json:"pluginsConfig"`
}
func (m LaunchInstanceAgentConfigDetails) String() string
func (m LaunchInstanceAgentConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
LaunchInstanceDetails Instance launch details. Use the `sourceDetails` parameter to specify whether a boot volume or an image should be used to launch a new instance.
type LaunchInstanceDetails struct {
// The availability domain of the instance.
// Example: `Uocm:PHX-AD-1`
AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"`
// The OCID of the compute capacity reservation under which this instance is launched.
// You can opt out of all default reservations by specifying an empty string as input for this field.
// For more information, see Capacity Reservations (https://docs.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default).
CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"`
// The OCID of the compartment.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
CreateVnicDetails *CreateVnicDetails `mandatory:"false" json:"createVnicDetails"`
// The OCID of the dedicated VM host.
DedicatedVmHostId *string `mandatory:"false" json:"dedicatedVmHostId"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// A user-friendly name. Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// A fault domain is a grouping of hardware and infrastructure within an availability domain.
// Each availability domain contains three fault domains. Fault domains lets you distribute your
// instances so that they are not on the same physical hardware within a single availability domain.
// A hardware failure or Compute hardware maintenance that affects one fault domain does not affect
// instances in other fault domains.
// If you do not specify the fault domain, the system selects one for you.
//
// To get a list of fault domains, use the
// ListFaultDomains operation in the
// Identity and Access Management Service API.
// Example: `FAULT-DOMAIN-1`
FaultDomain *string `mandatory:"false" json:"faultDomain"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Deprecated. Instead use `hostnameLabel` in
// CreateVnicDetails.
// If you provide both, the values must match.
HostnameLabel *string `mandatory:"false" json:"hostnameLabel"`
// This is an advanced option.
// When a bare metal or virtual machine
// instance boots, the iPXE firmware that runs on the instance is
// configured to run an iPXE script to continue the boot process.
// If you want more control over the boot process, you can provide
// your own custom iPXE script that will run when the instance boots.
// Be aware that the same iPXE script will run
// every time an instance boots, not only after the initial
// LaunchInstance call.
// By default, the iPXE script connects to the instance's local boot
// volume over iSCSI and performs a network boot. If you use a custom iPXE
// script and want to network-boot from the instance's local boot volume
// over iSCSI in the same way as the default iPXE script, use the
// following iSCSI IP address: 169.254.0.2, and boot volume IQN:
// iqn.2015-02.oracle.boot.
// If your instance boot volume type is paravirtualized,
// the boot volume is attached to the instance through virtio-scsi and no iPXE script is used.
// If your instance boot volume type is paravirtualized
// and you use custom iPXE to perform network-boot into your instance,
// the primary boot volume is attached as a data volume through the virtio-scsi drive.
// For more information about the Bring Your Own Image feature of
// Oracle Cloud Infrastructure, see
// Bring Your Own Image (https://docs.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm).
// For more information about iPXE, see http://ipxe.org.
IpxeScript *string `mandatory:"false" json:"ipxeScript"`
InstanceOptions *InstanceOptions `mandatory:"false" json:"instanceOptions"`
PreemptibleInstanceConfig *PreemptibleInstanceConfigDetails `mandatory:"false" json:"preemptibleInstanceConfig"`
AgentConfig *LaunchInstanceAgentConfigDetails `mandatory:"false" json:"agentConfig"`
// The shape of an instance. The shape determines the number of CPUs, amount of memory,
// and other resources allocated to the instance.
// You can enumerate all available shapes by calling ListShapes.
Shape *string `mandatory:"false" json:"shape"`
ShapeConfig *LaunchInstanceShapeConfigDetails `mandatory:"false" json:"shapeConfig"`
SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"`
// Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. By default, the value is false.
IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"`
}
func (m LaunchInstanceDetails) String() string
func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m LaunchInstanceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
LaunchInstanceShapeConfigDetails The shape configuration requested for the instance. If the parameter is provided, the instance is created with the resources that you specify. If some properties are missing or the entire parameter is not provided, the instance is created with the default configuration values for the `shape` that you specify. Each shape only supports certain configurable values. If the values that you provide are not valid for the specified `shape`, an error is returned.
type LaunchInstanceShapeConfigDetails struct {
// The total number of OCPUs available to the instance.
Ocpus *float32 `mandatory:"false" json:"ocpus"`
// The total amount of memory in gigabytes that is available to the instance.
MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"`
// The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
// non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
// The following values are supported:
// - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
// - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
// - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
BaselineOcpuUtilization LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"`
}
func (m LaunchInstanceShapeConfigDetails) String() string
func (m LaunchInstanceShapeConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum Enum with underlying type: string
type LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum string
Set of constants representing the allowable values for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum
const (
LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_8"
LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_2"
LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_1"
)
func GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues() []LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum
GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues Enumerates the set of values for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum
func GetMappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(val string) (LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, bool)
GetMappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum performs case Insensitive comparison on enum value and return the desired enum
ListAvailableShapesRequest wrapper for the ListAvailableShapes operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListAvailableShapes.go.html to see an example of how to use ListAvailableShapesRequest.
type ListAvailableShapesRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// The ID of the Dvh in which to list resources.
DvhHostId *string `mandatory:"false" contributesTo:"query" name:"dvhHostId"`
// The availability domain in which to list resources.
AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"`
// The reserved capacity ID for which to list resources.
ReservedCapacityId *string `mandatory:"false" contributesTo:"query" name:"reservedCapacityId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListAvailableShapesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.
SortBy ListAvailableShapesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListAvailableShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListAvailableShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListAvailableShapesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListAvailableShapesRequest) String() string
func (request ListAvailableShapesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListAvailableShapesResponse wrapper for the ListAvailableShapes operation
type ListAvailableShapesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of AvailableShapesCollection instances
AvailableShapesCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListAvailableShapesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListAvailableShapesResponse) String() string
ListAvailableShapesSortByEnum Enum with underlying type: string
type ListAvailableShapesSortByEnum string
Set of constants representing the allowable values for ListAvailableShapesSortByEnum
const (
ListAvailableShapesSortByTimecreated ListAvailableShapesSortByEnum = "timeCreated"
ListAvailableShapesSortByDisplayname ListAvailableShapesSortByEnum = "displayName"
)
func GetListAvailableShapesSortByEnumValues() []ListAvailableShapesSortByEnum
GetListAvailableShapesSortByEnumValues Enumerates the set of values for ListAvailableShapesSortByEnum
func GetMappingListAvailableShapesSortByEnum(val string) (ListAvailableShapesSortByEnum, bool)
GetMappingListAvailableShapesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListAvailableShapesSortOrderEnum Enum with underlying type: string
type ListAvailableShapesSortOrderEnum string
Set of constants representing the allowable values for ListAvailableShapesSortOrderEnum
const (
ListAvailableShapesSortOrderAsc ListAvailableShapesSortOrderEnum = "ASC"
ListAvailableShapesSortOrderDesc ListAvailableShapesSortOrderEnum = "DESC"
)
func GetListAvailableShapesSortOrderEnumValues() []ListAvailableShapesSortOrderEnum
GetListAvailableShapesSortOrderEnumValues Enumerates the set of values for ListAvailableShapesSortOrderEnum
func GetMappingListAvailableShapesSortOrderEnum(val string) (ListAvailableShapesSortOrderEnum, bool)
GetMappingListAvailableShapesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListMigrationAssetsRequest wrapper for the ListMigrationAssets operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListMigrationAssets.go.html to see an example of how to use ListMigrationAssetsRequest.
type ListMigrationAssetsRequest struct {
// Unique migration identifier
MigrationId *string `mandatory:"false" contributesTo:"query" name:"migrationId"`
// A filter to return only resources that match the entire given display name.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// Unique migration asset identifier
MigrationAssetId *string `mandatory:"false" contributesTo:"query" name:"migrationAssetId"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The current state of the migration asset.
LifecycleState MigrationAssetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListMigrationAssetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.
SortBy ListMigrationAssetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListMigrationAssetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListMigrationAssetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListMigrationAssetsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListMigrationAssetsRequest) String() string
func (request ListMigrationAssetsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListMigrationAssetsResponse wrapper for the ListMigrationAssets operation
type ListMigrationAssetsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of MigrationAssetCollection instances
MigrationAssetCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListMigrationAssetsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListMigrationAssetsResponse) String() string
ListMigrationAssetsSortByEnum Enum with underlying type: string
type ListMigrationAssetsSortByEnum string
Set of constants representing the allowable values for ListMigrationAssetsSortByEnum
const (
ListMigrationAssetsSortByTimecreated ListMigrationAssetsSortByEnum = "timeCreated"
ListMigrationAssetsSortByDisplayname ListMigrationAssetsSortByEnum = "displayName"
)
func GetListMigrationAssetsSortByEnumValues() []ListMigrationAssetsSortByEnum
GetListMigrationAssetsSortByEnumValues Enumerates the set of values for ListMigrationAssetsSortByEnum
func GetMappingListMigrationAssetsSortByEnum(val string) (ListMigrationAssetsSortByEnum, bool)
GetMappingListMigrationAssetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListMigrationAssetsSortOrderEnum Enum with underlying type: string
type ListMigrationAssetsSortOrderEnum string
Set of constants representing the allowable values for ListMigrationAssetsSortOrderEnum
const (
ListMigrationAssetsSortOrderAsc ListMigrationAssetsSortOrderEnum = "ASC"
ListMigrationAssetsSortOrderDesc ListMigrationAssetsSortOrderEnum = "DESC"
)
func GetListMigrationAssetsSortOrderEnumValues() []ListMigrationAssetsSortOrderEnum
GetListMigrationAssetsSortOrderEnumValues Enumerates the set of values for ListMigrationAssetsSortOrderEnum
func GetMappingListMigrationAssetsSortOrderEnum(val string) (ListMigrationAssetsSortOrderEnum, bool)
GetMappingListMigrationAssetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListMigrationPlansRequest wrapper for the ListMigrationPlans operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListMigrationPlans.go.html to see an example of how to use ListMigrationPlansRequest.
type ListMigrationPlansRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// Unique migration identifier
MigrationId *string `mandatory:"false" contributesTo:"query" name:"migrationId"`
// A filter to return only resources that match the entire given display name.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"false" contributesTo:"query" name:"migrationPlanId"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The current state of the migration plan.
LifecycleState MigrationPlanLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListMigrationPlansSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.
SortBy ListMigrationPlansSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListMigrationPlansRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListMigrationPlansRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListMigrationPlansRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListMigrationPlansRequest) String() string
func (request ListMigrationPlansRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListMigrationPlansResponse wrapper for the ListMigrationPlans operation
type ListMigrationPlansResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of MigrationPlanCollection instances
MigrationPlanCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListMigrationPlansResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListMigrationPlansResponse) String() string
ListMigrationPlansSortByEnum Enum with underlying type: string
type ListMigrationPlansSortByEnum string
Set of constants representing the allowable values for ListMigrationPlansSortByEnum
const (
ListMigrationPlansSortByTimecreated ListMigrationPlansSortByEnum = "timeCreated"
ListMigrationPlansSortByDisplayname ListMigrationPlansSortByEnum = "displayName"
)
func GetListMigrationPlansSortByEnumValues() []ListMigrationPlansSortByEnum
GetListMigrationPlansSortByEnumValues Enumerates the set of values for ListMigrationPlansSortByEnum
func GetMappingListMigrationPlansSortByEnum(val string) (ListMigrationPlansSortByEnum, bool)
GetMappingListMigrationPlansSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListMigrationPlansSortOrderEnum Enum with underlying type: string
type ListMigrationPlansSortOrderEnum string
Set of constants representing the allowable values for ListMigrationPlansSortOrderEnum
const (
ListMigrationPlansSortOrderAsc ListMigrationPlansSortOrderEnum = "ASC"
ListMigrationPlansSortOrderDesc ListMigrationPlansSortOrderEnum = "DESC"
)
func GetListMigrationPlansSortOrderEnumValues() []ListMigrationPlansSortOrderEnum
GetListMigrationPlansSortOrderEnumValues Enumerates the set of values for ListMigrationPlansSortOrderEnum
func GetMappingListMigrationPlansSortOrderEnum(val string) (ListMigrationPlansSortOrderEnum, bool)
GetMappingListMigrationPlansSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListMigrationsRequest wrapper for the ListMigrations operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListMigrations.go.html to see an example of how to use ListMigrationsRequest.
type ListMigrationsRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// A filter to return only resources where the resource's lifecycle state matches the given lifecycle state.
LifecycleState MigrationLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// A filter to return only resources that match the entire given display name.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// Unique migration identifier
MigrationId *string `mandatory:"false" contributesTo:"query" name:"migrationId"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListMigrationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.
SortBy ListMigrationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListMigrationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListMigrationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListMigrationsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListMigrationsRequest) String() string
func (request ListMigrationsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListMigrationsResponse wrapper for the ListMigrations operation
type ListMigrationsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of MigrationCollection instances
MigrationCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListMigrationsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListMigrationsResponse) String() string
ListMigrationsSortByEnum Enum with underlying type: string
type ListMigrationsSortByEnum string
Set of constants representing the allowable values for ListMigrationsSortByEnum
const (
ListMigrationsSortByTimecreated ListMigrationsSortByEnum = "timeCreated"
ListMigrationsSortByDisplayname ListMigrationsSortByEnum = "displayName"
)
func GetListMigrationsSortByEnumValues() []ListMigrationsSortByEnum
GetListMigrationsSortByEnumValues Enumerates the set of values for ListMigrationsSortByEnum
func GetMappingListMigrationsSortByEnum(val string) (ListMigrationsSortByEnum, bool)
GetMappingListMigrationsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListMigrationsSortOrderEnum Enum with underlying type: string
type ListMigrationsSortOrderEnum string
Set of constants representing the allowable values for ListMigrationsSortOrderEnum
const (
ListMigrationsSortOrderAsc ListMigrationsSortOrderEnum = "ASC"
ListMigrationsSortOrderDesc ListMigrationsSortOrderEnum = "DESC"
)
func GetListMigrationsSortOrderEnumValues() []ListMigrationsSortOrderEnum
GetListMigrationsSortOrderEnumValues Enumerates the set of values for ListMigrationsSortOrderEnum
func GetMappingListMigrationsSortOrderEnum(val string) (ListMigrationsSortOrderEnum, bool)
GetMappingListMigrationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListReplicationSchedulesRequest wrapper for the ListReplicationSchedules operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListReplicationSchedules.go.html to see an example of how to use ListReplicationSchedulesRequest.
type ListReplicationSchedulesRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// The current state of the replication schedule.
LifecycleState ReplicationScheduleLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// A filter to return only resources that match the entire given display name.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// Unique replication schedule identifier in query
ReplicationScheduleId *string `mandatory:"false" contributesTo:"query" name:"replicationScheduleId"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListReplicationSchedulesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.
SortBy ListReplicationSchedulesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListReplicationSchedulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListReplicationSchedulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListReplicationSchedulesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListReplicationSchedulesRequest) String() string
func (request ListReplicationSchedulesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListReplicationSchedulesResponse wrapper for the ListReplicationSchedules operation
type ListReplicationSchedulesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of ReplicationScheduleCollection instances
ReplicationScheduleCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListReplicationSchedulesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListReplicationSchedulesResponse) String() string
ListReplicationSchedulesSortByEnum Enum with underlying type: string
type ListReplicationSchedulesSortByEnum string
Set of constants representing the allowable values for ListReplicationSchedulesSortByEnum
const (
ListReplicationSchedulesSortByTimecreated ListReplicationSchedulesSortByEnum = "timeCreated"
ListReplicationSchedulesSortByDisplayname ListReplicationSchedulesSortByEnum = "displayName"
)
func GetListReplicationSchedulesSortByEnumValues() []ListReplicationSchedulesSortByEnum
GetListReplicationSchedulesSortByEnumValues Enumerates the set of values for ListReplicationSchedulesSortByEnum
func GetMappingListReplicationSchedulesSortByEnum(val string) (ListReplicationSchedulesSortByEnum, bool)
GetMappingListReplicationSchedulesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListReplicationSchedulesSortOrderEnum Enum with underlying type: string
type ListReplicationSchedulesSortOrderEnum string
Set of constants representing the allowable values for ListReplicationSchedulesSortOrderEnum
const (
ListReplicationSchedulesSortOrderAsc ListReplicationSchedulesSortOrderEnum = "ASC"
ListReplicationSchedulesSortOrderDesc ListReplicationSchedulesSortOrderEnum = "DESC"
)
func GetListReplicationSchedulesSortOrderEnumValues() []ListReplicationSchedulesSortOrderEnum
GetListReplicationSchedulesSortOrderEnumValues Enumerates the set of values for ListReplicationSchedulesSortOrderEnum
func GetMappingListReplicationSchedulesSortOrderEnum(val string) (ListReplicationSchedulesSortOrderEnum, bool)
GetMappingListReplicationSchedulesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListTargetAssetsRequest wrapper for the ListTargetAssets operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListTargetAssets.go.html to see an example of how to use ListTargetAssetsRequest.
type ListTargetAssetsRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"false" contributesTo:"query" name:"migrationPlanId"`
// A filter to return only resources that match the entire given display name.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// Unique target asset identifier
TargetAssetId *string `mandatory:"false" contributesTo:"query" name:"targetAssetId"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The current state of the target asset.
LifecycleState TargetAssetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListTargetAssetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.
SortBy ListTargetAssetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListTargetAssetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListTargetAssetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListTargetAssetsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListTargetAssetsRequest) String() string
func (request ListTargetAssetsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListTargetAssetsResponse wrapper for the ListTargetAssets operation
type ListTargetAssetsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of TargetAssetCollection instances
TargetAssetCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListTargetAssetsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListTargetAssetsResponse) String() string
ListTargetAssetsSortByEnum Enum with underlying type: string
type ListTargetAssetsSortByEnum string
Set of constants representing the allowable values for ListTargetAssetsSortByEnum
const (
ListTargetAssetsSortByTimecreated ListTargetAssetsSortByEnum = "timeCreated"
ListTargetAssetsSortByDisplayname ListTargetAssetsSortByEnum = "displayName"
)
func GetListTargetAssetsSortByEnumValues() []ListTargetAssetsSortByEnum
GetListTargetAssetsSortByEnumValues Enumerates the set of values for ListTargetAssetsSortByEnum
func GetMappingListTargetAssetsSortByEnum(val string) (ListTargetAssetsSortByEnum, bool)
GetMappingListTargetAssetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListTargetAssetsSortOrderEnum Enum with underlying type: string
type ListTargetAssetsSortOrderEnum string
Set of constants representing the allowable values for ListTargetAssetsSortOrderEnum
const (
ListTargetAssetsSortOrderAsc ListTargetAssetsSortOrderEnum = "ASC"
ListTargetAssetsSortOrderDesc ListTargetAssetsSortOrderEnum = "DESC"
)
func GetListTargetAssetsSortOrderEnumValues() []ListTargetAssetsSortOrderEnum
GetListTargetAssetsSortOrderEnumValues Enumerates the set of values for ListTargetAssetsSortOrderEnum
func GetMappingListTargetAssetsSortOrderEnum(val string) (ListTargetAssetsSortOrderEnum, bool)
GetMappingListTargetAssetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest.
type ListWorkRequestErrorsRequest struct {
// The ID of the asynchronous request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The field to sort by. Only one sort order may be provided. The default order for 'timeAccepted' is descending.
SortBy ListWorkRequestErrorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListWorkRequestErrorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWorkRequestErrorsRequest) String() string
func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation
type ListWorkRequestErrorsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of WorkRequestErrorCollection instances
WorkRequestErrorCollection `presentIn:"body"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWorkRequestErrorsResponse) String() string
ListWorkRequestErrorsSortByEnum Enum with underlying type: string
type ListWorkRequestErrorsSortByEnum string
Set of constants representing the allowable values for ListWorkRequestErrorsSortByEnum
const (
ListWorkRequestErrorsSortByTimeaccepted ListWorkRequestErrorsSortByEnum = "timeAccepted"
)
func GetListWorkRequestErrorsSortByEnumValues() []ListWorkRequestErrorsSortByEnum
GetListWorkRequestErrorsSortByEnumValues Enumerates the set of values for ListWorkRequestErrorsSortByEnum
func GetMappingListWorkRequestErrorsSortByEnum(val string) (ListWorkRequestErrorsSortByEnum, bool)
GetMappingListWorkRequestErrorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestErrorsSortOrderEnum Enum with underlying type: string
type ListWorkRequestErrorsSortOrderEnum string
Set of constants representing the allowable values for ListWorkRequestErrorsSortOrderEnum
const (
ListWorkRequestErrorsSortOrderAsc ListWorkRequestErrorsSortOrderEnum = "ASC"
ListWorkRequestErrorsSortOrderDesc ListWorkRequestErrorsSortOrderEnum = "DESC"
)
func GetListWorkRequestErrorsSortOrderEnumValues() []ListWorkRequestErrorsSortOrderEnum
GetListWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListWorkRequestErrorsSortOrderEnum
func GetMappingListWorkRequestErrorsSortOrderEnum(val string) (ListWorkRequestErrorsSortOrderEnum, bool)
GetMappingListWorkRequestErrorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest.
type ListWorkRequestLogsRequest struct {
// The ID of the asynchronous request.
WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The field to sort by. Only one sort order may be provided. The default order for 'timeAccepted' is descending.
SortBy ListWorkRequestLogsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListWorkRequestLogsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWorkRequestLogsRequest) String() string
func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation
type ListWorkRequestLogsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of WorkRequestLogEntryCollection instances
WorkRequestLogEntryCollection `presentIn:"body"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWorkRequestLogsResponse) String() string
ListWorkRequestLogsSortByEnum Enum with underlying type: string
type ListWorkRequestLogsSortByEnum string
Set of constants representing the allowable values for ListWorkRequestLogsSortByEnum
const (
ListWorkRequestLogsSortByTimeaccepted ListWorkRequestLogsSortByEnum = "timeAccepted"
)
func GetListWorkRequestLogsSortByEnumValues() []ListWorkRequestLogsSortByEnum
GetListWorkRequestLogsSortByEnumValues Enumerates the set of values for ListWorkRequestLogsSortByEnum
func GetMappingListWorkRequestLogsSortByEnum(val string) (ListWorkRequestLogsSortByEnum, bool)
GetMappingListWorkRequestLogsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestLogsSortOrderEnum Enum with underlying type: string
type ListWorkRequestLogsSortOrderEnum string
Set of constants representing the allowable values for ListWorkRequestLogsSortOrderEnum
const (
ListWorkRequestLogsSortOrderAsc ListWorkRequestLogsSortOrderEnum = "ASC"
ListWorkRequestLogsSortOrderDesc ListWorkRequestLogsSortOrderEnum = "DESC"
)
func GetListWorkRequestLogsSortOrderEnumValues() []ListWorkRequestLogsSortOrderEnum
GetListWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListWorkRequestLogsSortOrderEnum
func GetMappingListWorkRequestLogsSortOrderEnum(val string) (ListWorkRequestLogsSortOrderEnum, bool)
GetMappingListWorkRequestLogsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestsOperationTypeEnum Enum with underlying type: string
type ListWorkRequestsOperationTypeEnum string
Set of constants representing the allowable values for ListWorkRequestsOperationTypeEnum
const (
ListWorkRequestsOperationTypeCreateMigration ListWorkRequestsOperationTypeEnum = "CREATE_MIGRATION"
ListWorkRequestsOperationTypeUpdateMigration ListWorkRequestsOperationTypeEnum = "UPDATE_MIGRATION"
ListWorkRequestsOperationTypeRefreshMigration ListWorkRequestsOperationTypeEnum = "REFRESH_MIGRATION"
ListWorkRequestsOperationTypeDeleteMigration ListWorkRequestsOperationTypeEnum = "DELETE_MIGRATION"
ListWorkRequestsOperationTypeMoveMigration ListWorkRequestsOperationTypeEnum = "MOVE_MIGRATION"
ListWorkRequestsOperationTypeStartAssetReplication ListWorkRequestsOperationTypeEnum = "START_ASSET_REPLICATION"
ListWorkRequestsOperationTypeStartMigrationReplication ListWorkRequestsOperationTypeEnum = "START_MIGRATION_REPLICATION"
ListWorkRequestsOperationTypeCreateReplicationSchedule ListWorkRequestsOperationTypeEnum = "CREATE_REPLICATION_SCHEDULE"
ListWorkRequestsOperationTypeUpdateReplicationSchedule ListWorkRequestsOperationTypeEnum = "UPDATE_REPLICATION_SCHEDULE"
ListWorkRequestsOperationTypeDeleteReplicationSchedule ListWorkRequestsOperationTypeEnum = "DELETE_REPLICATION_SCHEDULE"
ListWorkRequestsOperationTypeMoveReplicationSchedule ListWorkRequestsOperationTypeEnum = "MOVE_REPLICATION_SCHEDULE"
ListWorkRequestsOperationTypeCreateMigrationPlan ListWorkRequestsOperationTypeEnum = "CREATE_MIGRATION_PLAN"
ListWorkRequestsOperationTypeUpdateMigrationPlan ListWorkRequestsOperationTypeEnum = "UPDATE_MIGRATION_PLAN"
ListWorkRequestsOperationTypeDeleteMigrationPlan ListWorkRequestsOperationTypeEnum = "DELETE_MIGRATION_PLAN"
ListWorkRequestsOperationTypeMoveMigrationPlan ListWorkRequestsOperationTypeEnum = "MOVE_MIGRATION_PLAN"
ListWorkRequestsOperationTypeRefreshMigrationPlan ListWorkRequestsOperationTypeEnum = "REFRESH_MIGRATION_PLAN"
ListWorkRequestsOperationTypeExecuteMigrationPlan ListWorkRequestsOperationTypeEnum = "EXECUTE_MIGRATION_PLAN"
ListWorkRequestsOperationTypeRefreshMigrationAsset ListWorkRequestsOperationTypeEnum = "REFRESH_MIGRATION_ASSET"
ListWorkRequestsOperationTypeCreateMigrationAsset ListWorkRequestsOperationTypeEnum = "CREATE_MIGRATION_ASSET"
ListWorkRequestsOperationTypeDeleteMigrationAsset ListWorkRequestsOperationTypeEnum = "DELETE_MIGRATION_ASSET"
ListWorkRequestsOperationTypeCreateTargetAsset ListWorkRequestsOperationTypeEnum = "CREATE_TARGET_ASSET"
ListWorkRequestsOperationTypeUpdateTargetAsset ListWorkRequestsOperationTypeEnum = "UPDATE_TARGET_ASSET"
ListWorkRequestsOperationTypeDeleteTargetAsset ListWorkRequestsOperationTypeEnum = "DELETE_TARGET_ASSET"
ListWorkRequestsOperationTypePrepareTargetAsset ListWorkRequestsOperationTypeEnum = "PREPARE_TARGET_ASSET"
)
func GetListWorkRequestsOperationTypeEnumValues() []ListWorkRequestsOperationTypeEnum
GetListWorkRequestsOperationTypeEnumValues Enumerates the set of values for ListWorkRequestsOperationTypeEnum
func GetMappingListWorkRequestsOperationTypeEnum(val string) (ListWorkRequestsOperationTypeEnum, bool)
GetMappingListWorkRequestsOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestsRequest wrapper for the ListWorkRequests operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest.
type ListWorkRequestsRequest struct {
// The ID of the compartment in which to list resources.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// The ID of the asynchronous work request.
WorkRequestId *string `mandatory:"false" contributesTo:"query" name:"workRequestId"`
// A filter to return only resources where the resource's lifecycle state matches the given operation status.
Status ListWorkRequestsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`
// A filter to return only resources where the resource's lifecycle state matches the given operation type.
OperationType ListWorkRequestsOperationTypeEnum `mandatory:"false" contributesTo:"query" name:"operationType" omitEmpty:"true"`
// The ID of the resource affected by the work request.
ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of the previous response.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The maximum number of items to return.
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
// The sort order to use, either 'ASC' or 'DESC'.
SortOrder ListWorkRequestsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The field to sort by. Only one sort order may be provided. The default order for 'timeAccepted' is descending.
SortBy ListWorkRequestsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWorkRequestsRequest) String() string
func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWorkRequestsResponse wrapper for the ListWorkRequests operation
type ListWorkRequestsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of WorkRequestSummaryCollection instances
WorkRequestSummaryCollection `presentIn:"body"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// For pagination of a list of items. When paging through a list, if this header appears in the response,
// then a partial list might have been returned. Include this value as the `page` parameter for the
// subsequent GET request to get the next batch of items.
OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}
func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWorkRequestsResponse) String() string
ListWorkRequestsSortByEnum Enum with underlying type: string
type ListWorkRequestsSortByEnum string
Set of constants representing the allowable values for ListWorkRequestsSortByEnum
const (
ListWorkRequestsSortByTimeaccepted ListWorkRequestsSortByEnum = "timeAccepted"
)
func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum
GetListWorkRequestsSortByEnumValues Enumerates the set of values for ListWorkRequestsSortByEnum
func GetMappingListWorkRequestsSortByEnum(val string) (ListWorkRequestsSortByEnum, bool)
GetMappingListWorkRequestsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestsSortOrderEnum Enum with underlying type: string
type ListWorkRequestsSortOrderEnum string
Set of constants representing the allowable values for ListWorkRequestsSortOrderEnum
const (
ListWorkRequestsSortOrderAsc ListWorkRequestsSortOrderEnum = "ASC"
ListWorkRequestsSortOrderDesc ListWorkRequestsSortOrderEnum = "DESC"
)
func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum
GetListWorkRequestsSortOrderEnumValues Enumerates the set of values for ListWorkRequestsSortOrderEnum
func GetMappingListWorkRequestsSortOrderEnum(val string) (ListWorkRequestsSortOrderEnum, bool)
GetMappingListWorkRequestsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListWorkRequestsStatusEnum Enum with underlying type: string
type ListWorkRequestsStatusEnum string
Set of constants representing the allowable values for ListWorkRequestsStatusEnum
const (
ListWorkRequestsStatusAccepted ListWorkRequestsStatusEnum = "ACCEPTED"
ListWorkRequestsStatusInProgress ListWorkRequestsStatusEnum = "IN_PROGRESS"
ListWorkRequestsStatusWaiting ListWorkRequestsStatusEnum = "WAITING"
ListWorkRequestsStatusFailed ListWorkRequestsStatusEnum = "FAILED"
ListWorkRequestsStatusSucceeded ListWorkRequestsStatusEnum = "SUCCEEDED"
ListWorkRequestsStatusCanceling ListWorkRequestsStatusEnum = "CANCELING"
ListWorkRequestsStatusCanceled ListWorkRequestsStatusEnum = "CANCELED"
ListWorkRequestsStatusNeedsAttention ListWorkRequestsStatusEnum = "NEEDS_ATTENTION"
)
func GetListWorkRequestsStatusEnumValues() []ListWorkRequestsStatusEnum
GetListWorkRequestsStatusEnumValues Enumerates the set of values for ListWorkRequestsStatusEnum
func GetMappingListWorkRequestsStatusEnum(val string) (ListWorkRequestsStatusEnum, bool)
GetMappingListWorkRequestsStatusEnum performs case Insensitive comparison on enum value and return the desired enum
LogicalUnit Logical unit of the host storage.
type LogicalUnit struct {
// Address of the logical unit.
Address *string `mandatory:"false" json:"address"`
// The maximum number of bytes that can be discarded by the logical unit???s underlying storage in a single operation.
DiscardMaxSizeInBytes *int64 `mandatory:"false" json:"discardMaxSizeInBytes"`
// True, if previously discarded blocks in the logical unit???s underlying storage are read back as zeros.
IsDiscardZeroesData *bool `mandatory:"false" json:"isDiscardZeroesData"`
// Disk ID of the logical unit.
DiskId *string `mandatory:"false" json:"diskId"`
// a unique identifier.
Id *string `mandatory:"false" json:"id"`
// LUN Mapping
LunMapping *int `mandatory:"false" json:"lunMapping"`
// LUN Status
LunStatus LogicalUnitLunStatusEnum `mandatory:"false" json:"lunStatus,omitempty"`
// Password of the logical unit.
Password *string `mandatory:"false" json:"password"`
// Paths of the logical unit.
Paths *int `mandatory:"false" json:"paths"`
// Port of the logical unit.
Port *int `mandatory:"false" json:"port"`
// Portal of the logical unit.
Portal *string `mandatory:"false" json:"portal"`
// Product ID of the logical unit.
ProductId *string `mandatory:"false" json:"productId"`
// Serial of the logical unit.
Serial *string `mandatory:"false" json:"serial"`
// Size of the logical unit.
Size *int `mandatory:"false" json:"size"`
// Storage Domain ID of the logical unit.
StorageDomainId *string `mandatory:"false" json:"storageDomainId"`
// Target of the logical unit.
Target *string `mandatory:"false" json:"target"`
// Username of the logical unit.
Username *string `mandatory:"false" json:"username"`
// Vendor ID of the logical unit.
VendorId *string `mandatory:"false" json:"vendorId"`
// Volume Group ID of the logical unit.
VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"`
}
func (m LogicalUnit) String() string
func (m LogicalUnit) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
LogicalUnitLunStatusEnum Enum with underlying type: string
type LogicalUnitLunStatusEnum string
Set of constants representing the allowable values for LogicalUnitLunStatusEnum
const (
LogicalUnitLunStatusFree LogicalUnitLunStatusEnum = "FREE"
LogicalUnitLunStatusUnusable LogicalUnitLunStatusEnum = "UNUSABLE"
LogicalUnitLunStatusUsed LogicalUnitLunStatusEnum = "USED"
)
func GetLogicalUnitLunStatusEnumValues() []LogicalUnitLunStatusEnum
GetLogicalUnitLunStatusEnumValues Enumerates the set of values for LogicalUnitLunStatusEnum
func GetMappingLogicalUnitLunStatusEnum(val string) (LogicalUnitLunStatusEnum, bool)
GetMappingLogicalUnitLunStatusEnum performs case Insensitive comparison on enum value and return the desired enum
MemoryOverCommit Memory over commit
type MemoryOverCommit struct {
// Percentage of memory over commit
Percentage *int `mandatory:"false" json:"percentage"`
}
func (m MemoryOverCommit) String() string
func (m MemoryOverCommit) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MetricTimeWindowEnum Enum with underlying type: string
type MetricTimeWindowEnum string
Set of constants representing the allowable values for MetricTimeWindowEnum
const (
MetricTimeWindow1d MetricTimeWindowEnum = "1d"
MetricTimeWindow7d MetricTimeWindowEnum = "7d"
MetricTimeWindow30d MetricTimeWindowEnum = "30d"
)
func GetMappingMetricTimeWindowEnum(val string) (MetricTimeWindowEnum, bool)
GetMappingMetricTimeWindowEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMetricTimeWindowEnumValues() []MetricTimeWindowEnum
GetMetricTimeWindowEnumValues Enumerates the set of values for MetricTimeWindowEnum
MetricTypeEnum Enum with underlying type: string
type MetricTypeEnum string
Set of constants representing the allowable values for MetricTypeEnum
const (
MetricTypeAuto MetricTypeEnum = "AUTO"
MetricTypeHistorical MetricTypeEnum = "HISTORICAL"
MetricTypeRuntime MetricTypeEnum = "RUNTIME"
)
func GetMappingMetricTypeEnum(val string) (MetricTypeEnum, bool)
GetMappingMetricTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMetricTypeEnumValues() []MetricTypeEnum
GetMetricTypeEnumValues Enumerates the set of values for MetricTypeEnum
Migration A top-level container to track all aspects of a long-running migration workflow to OCI.
type Migration struct {
// Unique identifier that is immutable on creation
Id *string `mandatory:"true" json:"id"`
// Compartment Identifier
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The current state of migration.
LifecycleState MigrationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The time when the migration project was created. An RFC3339 formatted datetime string
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// Migration Identifier that can be renamed
DisplayName *string `mandatory:"false" json:"displayName"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The time when the migration project was updated. An RFC3339 formatted datetime string
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
// Indicates whether migration is marked as completed.
IsCompleted *bool `mandatory:"false" json:"isCompleted"`
// Type of migration project (OCI/OLVM). This determines the target environment for the migration.
MigrationType MigrationMigrationTypeEnum `mandatory:"false" json:"migrationType,omitempty"`
MigrationConfig *MigrationConfig `mandatory:"false" json:"migrationConfig"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m Migration) String() string
func (m Migration) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationAsset Description of the migration asset.
type MigrationAsset struct {
// Asset ID generated by mirgration service. It is used in the mirgration service pipeline.
Id *string `mandatory:"true" json:"id"`
// The type of asset referenced for inventory.
Type *string `mandatory:"true" json:"type"`
// The current state of the migration asset.
LifecycleState MigrationAssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The time when the migration asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// OCID of the associated migration.
MigrationId *string `mandatory:"true" json:"migrationId"`
// Availability domain
AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"`
// Replication compartment identifier
ReplicationCompartmentId *string `mandatory:"true" json:"replicationCompartmentId"`
// Name of snapshot bucket
SnapShotBucketName *string `mandatory:"true" json:"snapShotBucketName"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Compartment Identifier
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The time when the migration asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots.
// Example: `{"bar-key": "value"}`
Snapshots map[string]HydratedVolume `mandatory:"false" json:"snapshots"`
// The parent snapshot of the migration asset to be used by the replication task.
ParentSnapshot *string `mandatory:"false" json:"parentSnapshot"`
// Key-value pair representing asset metadata keys and values scoped to a namespace.
// Example: `{"bar-key": "value"}`
SourceAssetData map[string]interface{} `mandatory:"false" json:"sourceAssetData"`
// List of notifications
Notifications []MigrationAssetNotificationsEnum `mandatory:"false" json:"notifications,omitempty"`
// OCID that is referenced to an asset for an inventory.
SourceAssetId *string `mandatory:"false" json:"sourceAssetId"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
// Tenancy identifier
TenancyId *string `mandatory:"false" json:"tenancyId"`
// List of migration assets that depend on the asset.
DependedOnBy []string `mandatory:"false" json:"dependedOnBy"`
// List of migration assets that depends on the asset.
DependsOn []string `mandatory:"false" json:"dependsOn"`
ReplicationLocationDetail *ReplicationLocationDetail `mandatory:"false" json:"replicationLocationDetail"`
// Mapping of source disk id to destination disk details
DestinationDisks map[string]DestinationDisk `mandatory:"false" json:"destinationDisks"`
}
func (m MigrationAsset) String() string
func (m MigrationAsset) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationAssetCollection Results of a migration asset search. It contains an array of migration assets.
type MigrationAssetCollection struct {
// List of migration asset summaries.
Items []MigrationAssetSummary `mandatory:"true" json:"items"`
}
func (m MigrationAssetCollection) String() string
func (m MigrationAssetCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationAssetLifecycleStateEnum Enum with underlying type: string
type MigrationAssetLifecycleStateEnum string
Set of constants representing the allowable values for MigrationAssetLifecycleStateEnum
const (
MigrationAssetLifecycleStateCreating MigrationAssetLifecycleStateEnum = "CREATING"
MigrationAssetLifecycleStateUpdating MigrationAssetLifecycleStateEnum = "UPDATING"
MigrationAssetLifecycleStateNeedsAttention MigrationAssetLifecycleStateEnum = "NEEDS_ATTENTION"
MigrationAssetLifecycleStateActive MigrationAssetLifecycleStateEnum = "ACTIVE"
MigrationAssetLifecycleStateDeleting MigrationAssetLifecycleStateEnum = "DELETING"
MigrationAssetLifecycleStateDeleted MigrationAssetLifecycleStateEnum = "DELETED"
MigrationAssetLifecycleStateFailed MigrationAssetLifecycleStateEnum = "FAILED"
)
func GetMappingMigrationAssetLifecycleStateEnum(val string) (MigrationAssetLifecycleStateEnum, bool)
GetMappingMigrationAssetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMigrationAssetLifecycleStateEnumValues() []MigrationAssetLifecycleStateEnum
GetMigrationAssetLifecycleStateEnumValues Enumerates the set of values for MigrationAssetLifecycleStateEnum
MigrationAssetNotificationsEnum Enum with underlying type: string
type MigrationAssetNotificationsEnum string
Set of constants representing the allowable values for MigrationAssetNotificationsEnum
const (
MigrationAssetNotificationsOutOfDate MigrationAssetNotificationsEnum = "OUT_OF_DATE"
MigrationAssetNotificationsSourceRemoved MigrationAssetNotificationsEnum = "SOURCE_REMOVED"
)
func GetMappingMigrationAssetNotificationsEnum(val string) (MigrationAssetNotificationsEnum, bool)
GetMappingMigrationAssetNotificationsEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMigrationAssetNotificationsEnumValues() []MigrationAssetNotificationsEnum
GetMigrationAssetNotificationsEnumValues Enumerates the set of values for MigrationAssetNotificationsEnum
MigrationAssetSummary Summary of the migration asset.
type MigrationAssetSummary struct {
// The asset ID generated by the mirgration service. It is used in the migration service pipeline.
Id *string `mandatory:"true" json:"id"`
// The type of asset referenced for an inventory.
Type *string `mandatory:"true" json:"type"`
// The current state of the migration asset.
LifecycleState MigrationAssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The time when the migration asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// OCID of the associated migration.
MigrationId *string `mandatory:"true" json:"migrationId"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Compartment identifier
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The time when the migration asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Key-value pair representing disk's ID that is mapped to the OCIDs of replicated/hydration server volume snapshots.
// Example: `{"bar-key": "value"}`
Snapshots map[string]HydratedVolume `mandatory:"false" json:"snapshots"`
// The parent snapshot of the mgration asset to be used by the replication task.
ParentSnapshot *string `mandatory:"false" json:"parentSnapshot"`
// The snapshot information.
SnapshotInfo *string `mandatory:"false" json:"snapshotInfo"`
// Key-value pair representing asset metadata keys and values scoped to a namespace.
// Example: `{"bar-key": "value"}`
SourceAssetData map[string]interface{} `mandatory:"false" json:"sourceAssetData"`
// List of notifications.
Notifications []MigrationAssetSummaryNotificationsEnum `mandatory:"false" json:"notifications,omitempty"`
// OCID that is referenced to an asset, for an inventory.
SourceAssetId *string `mandatory:"false" json:"sourceAssetId"`
// List of migration assets that depend on this asset.
DependedOnBy []string `mandatory:"false" json:"dependedOnBy"`
// List of migration assets that depend on this asset.
DependsOn []string `mandatory:"false" json:"dependsOn"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
// Tenancy Identifier
TenancyId *string `mandatory:"false" json:"tenancyId"`
ReplicationLocationDetail *ReplicationLocationDetail `mandatory:"false" json:"replicationLocationDetail"`
// Mapping of source disk id to destination disk details
DestinationDisks map[string]DestinationDisk `mandatory:"false" json:"destinationDisks"`
}
func (m MigrationAssetSummary) String() string
func (m MigrationAssetSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationAssetSummaryNotificationsEnum Enum with underlying type: string
type MigrationAssetSummaryNotificationsEnum string
Set of constants representing the allowable values for MigrationAssetSummaryNotificationsEnum
const (
MigrationAssetSummaryNotificationsOutOfDate MigrationAssetSummaryNotificationsEnum = "OUT_OF_DATE"
MigrationAssetSummaryNotificationsSourceRemoved MigrationAssetSummaryNotificationsEnum = "SOURCE_REMOVED"
)
func GetMappingMigrationAssetSummaryNotificationsEnum(val string) (MigrationAssetSummaryNotificationsEnum, bool)
GetMappingMigrationAssetSummaryNotificationsEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMigrationAssetSummaryNotificationsEnumValues() []MigrationAssetSummaryNotificationsEnum
GetMigrationAssetSummaryNotificationsEnumValues Enumerates the set of values for MigrationAssetSummaryNotificationsEnum
MigrationBandwidth Defines the bandwidth used by migration
type MigrationBandwidth struct {
// Defines how the migration bandwidth is assigned
AssignmentMethod MigrationBandwidthAssignmentMethodEnum `mandatory:"false" json:"assignmentMethod,omitempty"`
}
func (m MigrationBandwidth) String() string
func (m MigrationBandwidth) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationBandwidthAssignmentMethodEnum Enum with underlying type: string
type MigrationBandwidthAssignmentMethodEnum string
Set of constants representing the allowable values for MigrationBandwidthAssignmentMethodEnum
const (
MigrationBandwidthAssignmentMethodAuto MigrationBandwidthAssignmentMethodEnum = "AUTO"
MigrationBandwidthAssignmentMethodCustom MigrationBandwidthAssignmentMethodEnum = "CUSTOM"
MigrationBandwidthAssignmentMethodHypervisorDefault MigrationBandwidthAssignmentMethodEnum = "HYPERVISOR_DEFAULT"
)
func GetMappingMigrationBandwidthAssignmentMethodEnum(val string) (MigrationBandwidthAssignmentMethodEnum, bool)
GetMappingMigrationBandwidthAssignmentMethodEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMigrationBandwidthAssignmentMethodEnumValues() []MigrationBandwidthAssignmentMethodEnum
GetMigrationBandwidthAssignmentMethodEnumValues Enumerates the set of values for MigrationBandwidthAssignmentMethodEnum
MigrationClient a client for Migration
type MigrationClient struct {
common.BaseClient
// contains filtered or unexported fields
}
func NewMigrationClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client MigrationClient, err error)
NewMigrationClientWithConfigurationProvider Creates a new default Migration client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewMigrationClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client MigrationClient, err error)
NewMigrationClientWithOboToken Creates a new default Migration client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client MigrationClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error)
CancelWorkRequest Cancels work request with the given ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequest API. A default retry strategy applies to this operation CancelWorkRequest()
func (client MigrationClient) ChangeMigrationCompartment(ctx context.Context, request ChangeMigrationCompartmentRequest) (response ChangeMigrationCompartmentResponse, err error)
ChangeMigrationCompartment Moves a migration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ChangeMigrationCompartment.go.html to see an example of how to use ChangeMigrationCompartment API. A default retry strategy applies to this operation ChangeMigrationCompartment()
func (client MigrationClient) ChangeMigrationPlanCompartment(ctx context.Context, request ChangeMigrationPlanCompartmentRequest) (response ChangeMigrationPlanCompartmentResponse, err error)
ChangeMigrationPlanCompartment Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ChangeMigrationPlanCompartment.go.html to see an example of how to use ChangeMigrationPlanCompartment API. A default retry strategy applies to this operation ChangeMigrationPlanCompartment()
func (client MigrationClient) ChangeReplicationScheduleCompartment(ctx context.Context, request ChangeReplicationScheduleCompartmentRequest) (response ChangeReplicationScheduleCompartmentResponse, err error)
ChangeReplicationScheduleCompartment Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ChangeReplicationScheduleCompartment.go.html to see an example of how to use ChangeReplicationScheduleCompartment API. A default retry strategy applies to this operation ChangeReplicationScheduleCompartment()
func (client *MigrationClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client MigrationClient) CreateMigration(ctx context.Context, request CreateMigrationRequest) (response CreateMigrationResponse, err error)
CreateMigration Creates a migration.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateMigration.go.html to see an example of how to use CreateMigration API. A default retry strategy applies to this operation CreateMigration()
func (client MigrationClient) CreateMigrationAsset(ctx context.Context, request CreateMigrationAssetRequest) (response CreateMigrationAssetResponse, err error)
CreateMigrationAsset Creates a migration asset.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateMigrationAsset.go.html to see an example of how to use CreateMigrationAsset API. A default retry strategy applies to this operation CreateMigrationAsset()
func (client MigrationClient) CreateMigrationPlan(ctx context.Context, request CreateMigrationPlanRequest) (response CreateMigrationPlanResponse, err error)
CreateMigrationPlan Creates a migration plan.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateMigrationPlan.go.html to see an example of how to use CreateMigrationPlan API. A default retry strategy applies to this operation CreateMigrationPlan()
func (client MigrationClient) CreateReplicationSchedule(ctx context.Context, request CreateReplicationScheduleRequest) (response CreateReplicationScheduleResponse, err error)
CreateReplicationSchedule Creates a replication schedule.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateReplicationSchedule.go.html to see an example of how to use CreateReplicationSchedule API. A default retry strategy applies to this operation CreateReplicationSchedule()
func (client MigrationClient) CreateTargetAsset(ctx context.Context, request CreateTargetAssetRequest) (response CreateTargetAssetResponse, err error)
CreateTargetAsset Creates a target asset.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/CreateTargetAsset.go.html to see an example of how to use CreateTargetAsset API. A default retry strategy applies to this operation CreateTargetAsset()
func (client MigrationClient) DeleteMigration(ctx context.Context, request DeleteMigrationRequest) (response DeleteMigrationResponse, err error)
DeleteMigration Deletes a migration resource by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteMigration.go.html to see an example of how to use DeleteMigration API. A default retry strategy applies to this operation DeleteMigration()
func (client MigrationClient) DeleteMigrationAsset(ctx context.Context, request DeleteMigrationAssetRequest) (response DeleteMigrationAssetResponse, err error)
DeleteMigrationAsset Deletes a migration asset resource by an identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteMigrationAsset.go.html to see an example of how to use DeleteMigrationAsset API. A default retry strategy applies to this operation DeleteMigrationAsset()
func (client MigrationClient) DeleteMigrationPlan(ctx context.Context, request DeleteMigrationPlanRequest) (response DeleteMigrationPlanResponse, err error)
DeleteMigrationPlan Deletes a migration plan resource by an identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteMigrationPlan.go.html to see an example of how to use DeleteMigrationPlan API. A default retry strategy applies to this operation DeleteMigrationPlan()
func (client MigrationClient) DeleteReplicationSchedule(ctx context.Context, request DeleteReplicationScheduleRequest) (response DeleteReplicationScheduleResponse, err error)
DeleteReplicationSchedule Deletes a replication schedule resource by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteReplicationSchedule.go.html to see an example of how to use DeleteReplicationSchedule API. A default retry strategy applies to this operation DeleteReplicationSchedule()
func (client MigrationClient) DeleteTargetAsset(ctx context.Context, request DeleteTargetAssetRequest) (response DeleteTargetAssetResponse, err error)
DeleteTargetAsset Deletes a target asset resource by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/DeleteTargetAsset.go.html to see an example of how to use DeleteTargetAsset API. A default retry strategy applies to this operation DeleteTargetAsset()
func (client MigrationClient) ExecuteMigrationPlan(ctx context.Context, request ExecuteMigrationPlanRequest) (response ExecuteMigrationPlanResponse, err error)
ExecuteMigrationPlan Executes the migration plan with the migration plan ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ExecuteMigrationPlan.go.html to see an example of how to use ExecuteMigrationPlan API. A default retry strategy applies to this operation ExecuteMigrationPlan()
func (client MigrationClient) ExportMigrationPlan(ctx context.Context, request ExportMigrationPlanRequest) (response ExportMigrationPlanResponse, err error)
ExportMigrationPlan Exports the migration plan to a csv file.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ExportMigrationPlan.go.html to see an example of how to use ExportMigrationPlan API. A default retry strategy applies to this operation ExportMigrationPlan()
func (client MigrationClient) GetMigration(ctx context.Context, request GetMigrationRequest) (response GetMigrationResponse, err error)
GetMigration Gets a migration by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetMigration.go.html to see an example of how to use GetMigration API. A default retry strategy applies to this operation GetMigration()
func (client MigrationClient) GetMigrationAsset(ctx context.Context, request GetMigrationAssetRequest) (response GetMigrationAssetResponse, err error)
GetMigrationAsset Gets a migration asset by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetMigrationAsset.go.html to see an example of how to use GetMigrationAsset API. A default retry strategy applies to this operation GetMigrationAsset()
func (client MigrationClient) GetMigrationPlan(ctx context.Context, request GetMigrationPlanRequest) (response GetMigrationPlanResponse, err error)
GetMigrationPlan Gets a migration plan by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetMigrationPlan.go.html to see an example of how to use GetMigrationPlan API. A default retry strategy applies to this operation GetMigrationPlan()
func (client MigrationClient) GetReplicationProgress(ctx context.Context, request GetReplicationProgressRequest) (response GetReplicationProgressResponse, err error)
GetReplicationProgress Gets the progress percentage of a migration asset's replication process.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetReplicationProgress.go.html to see an example of how to use GetReplicationProgress API. A default retry strategy applies to this operation GetReplicationProgress()
func (client MigrationClient) GetReplicationSchedule(ctx context.Context, request GetReplicationScheduleRequest) (response GetReplicationScheduleResponse, err error)
GetReplicationSchedule Gets a replication schedule by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetReplicationSchedule.go.html to see an example of how to use GetReplicationSchedule API. A default retry strategy applies to this operation GetReplicationSchedule()
func (client MigrationClient) GetTargetAsset(ctx context.Context, request GetTargetAssetRequest) (response GetTargetAssetResponse, err error)
GetTargetAsset Gets a target asset by identifier.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetTargetAsset.go.html to see an example of how to use GetTargetAsset API. A default retry strategy applies to this operation GetTargetAsset()
func (client MigrationClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
GetWorkRequest Gets the status of the work request with the given ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. A default retry strategy applies to this operation GetWorkRequest()
func (client MigrationClient) ImportMigrationPlan(ctx context.Context, request ImportMigrationPlanRequest) (response ImportMigrationPlanResponse, err error)
ImportMigrationPlan Imports a migration plan from a csv file.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ImportMigrationPlan.go.html to see an example of how to use ImportMigrationPlan API. A default retry strategy applies to this operation ImportMigrationPlan()
func (client MigrationClient) ListAvailableShapes(ctx context.Context, request ListAvailableShapesRequest) (response ListAvailableShapesResponse, err error)
ListAvailableShapes List of shapes by parameters.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListAvailableShapes.go.html to see an example of how to use ListAvailableShapes API. A default retry strategy applies to this operation ListAvailableShapes()
func (client MigrationClient) ListMigrationAssets(ctx context.Context, request ListMigrationAssetsRequest) (response ListMigrationAssetsResponse, err error)
ListMigrationAssets Returns a list of migration assets.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListMigrationAssets.go.html to see an example of how to use ListMigrationAssets API. A default retry strategy applies to this operation ListMigrationAssets()
func (client MigrationClient) ListMigrationPlans(ctx context.Context, request ListMigrationPlansRequest) (response ListMigrationPlansResponse, err error)
ListMigrationPlans Returns a list of migration plans.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListMigrationPlans.go.html to see an example of how to use ListMigrationPlans API. A default retry strategy applies to this operation ListMigrationPlans()
func (client MigrationClient) ListMigrations(ctx context.Context, request ListMigrationsRequest) (response ListMigrationsResponse, err error)
ListMigrations Returns a list of migrations.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListMigrations.go.html to see an example of how to use ListMigrations API. A default retry strategy applies to this operation ListMigrations()
func (client MigrationClient) ListReplicationSchedules(ctx context.Context, request ListReplicationSchedulesRequest) (response ListReplicationSchedulesResponse, err error)
ListReplicationSchedules Returns a list of replication schedules.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListReplicationSchedules.go.html to see an example of how to use ListReplicationSchedules API. A default retry strategy applies to this operation ListReplicationSchedules()
func (client MigrationClient) ListTargetAssets(ctx context.Context, request ListTargetAssetsRequest) (response ListTargetAssetsResponse, err error)
ListTargetAssets Returns a list of target assets.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListTargetAssets.go.html to see an example of how to use ListTargetAssets API. A default retry strategy applies to this operation ListTargetAssets()
func (client MigrationClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
ListWorkRequestErrors Returns a paginated list of errors for a given work request.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. A default retry strategy applies to this operation ListWorkRequestErrors()
func (client MigrationClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
ListWorkRequestLogs Returns a paginated list of logs for a given work request.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. A default retry strategy applies to this operation ListWorkRequestLogs()
func (client MigrationClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
ListWorkRequests List of work requests in a compartment.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. A default retry strategy applies to this operation ListWorkRequests()
func (client MigrationClient) RefreshMigration(ctx context.Context, request RefreshMigrationRequest) (response RefreshMigrationResponse, err error)
RefreshMigration Refreshes migration based on the migration ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/RefreshMigration.go.html to see an example of how to use RefreshMigration API. A default retry strategy applies to this operation RefreshMigration()
func (client MigrationClient) RefreshMigrationAsset(ctx context.Context, request RefreshMigrationAssetRequest) (response RefreshMigrationAssetResponse, err error)
RefreshMigrationAsset Refreshes the migration asset with the migration asset ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/RefreshMigrationAsset.go.html to see an example of how to use RefreshMigrationAsset API. A default retry strategy applies to this operation RefreshMigrationAsset()
func (client MigrationClient) RefreshMigrationPlan(ctx context.Context, request RefreshMigrationPlanRequest) (response RefreshMigrationPlanResponse, err error)
RefreshMigrationPlan Refreshes the migration plan with the migration plan ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/RefreshMigrationPlan.go.html to see an example of how to use RefreshMigrationPlan API. A default retry strategy applies to this operation RefreshMigrationPlan()
func (client *MigrationClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client MigrationClient) StartAssetReplication(ctx context.Context, request StartAssetReplicationRequest) (response StartAssetReplicationResponse, err error)
StartAssetReplication Starts replication for the asset with the migration asset ID.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/StartAssetReplication.go.html to see an example of how to use StartAssetReplication API. A default retry strategy applies to this operation StartAssetReplication()
func (client MigrationClient) StartMigrationReplication(ctx context.Context, request StartMigrationReplicationRequest) (response StartMigrationReplicationResponse, err error)
StartMigrationReplication Starts replication for a migration or for some asset.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/StartMigrationReplication.go.html to see an example of how to use StartMigrationReplication API. A default retry strategy applies to this operation StartMigrationReplication()
func (client MigrationClient) UpdateMigration(ctx context.Context, request UpdateMigrationRequest) (response UpdateMigrationResponse, err error)
UpdateMigration Updates the migration.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateMigration.go.html to see an example of how to use UpdateMigration API. A default retry strategy applies to this operation UpdateMigration()
func (client MigrationClient) UpdateMigrationAsset(ctx context.Context, request UpdateMigrationAssetRequest) (response UpdateMigrationAssetResponse, err error)
UpdateMigrationAsset Updates the migration asset.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateMigrationAsset.go.html to see an example of how to use UpdateMigrationAsset API. A default retry strategy applies to this operation UpdateMigrationAsset()
func (client MigrationClient) UpdateMigrationPlan(ctx context.Context, request UpdateMigrationPlanRequest) (response UpdateMigrationPlanResponse, err error)
UpdateMigrationPlan Updates the migration plan.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateMigrationPlan.go.html to see an example of how to use UpdateMigrationPlan API. A default retry strategy applies to this operation UpdateMigrationPlan()
func (client MigrationClient) UpdateReplicationSchedule(ctx context.Context, request UpdateReplicationScheduleRequest) (response UpdateReplicationScheduleResponse, err error)
UpdateReplicationSchedule Updates the replication schedule.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateReplicationSchedule.go.html to see an example of how to use UpdateReplicationSchedule API. A default retry strategy applies to this operation UpdateReplicationSchedule()
func (client MigrationClient) UpdateTargetAsset(ctx context.Context, request UpdateTargetAssetRequest) (response UpdateTargetAssetResponse, err error)
UpdateTargetAsset Updates the target asset.
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateTargetAsset.go.html to see an example of how to use UpdateTargetAsset API. A default retry strategy applies to this operation UpdateTargetAsset()
MigrationCollection Results of a migration search. Contains both migration summary items and other information, such as metadata.
type MigrationCollection struct {
// List of migrations.
Items []MigrationSummary `mandatory:"true" json:"items"`
}
func (m MigrationCollection) String() string
func (m MigrationCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationConfig Configuration for a Migration Project.
type MigrationConfig struct {
// The OCID of the subnet to use for replication
SubnetId *string `mandatory:"false" json:"subnetId"`
}
func (m MigrationConfig) String() string
func (m MigrationConfig) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationLifecycleStateEnum Enum with underlying type: string
type MigrationLifecycleStateEnum string
Set of constants representing the allowable values for MigrationLifecycleStateEnum
const (
MigrationLifecycleStateCreating MigrationLifecycleStateEnum = "CREATING"
MigrationLifecycleStateUpdating MigrationLifecycleStateEnum = "UPDATING"
MigrationLifecycleStateNeedsAttention MigrationLifecycleStateEnum = "NEEDS_ATTENTION"
MigrationLifecycleStateActive MigrationLifecycleStateEnum = "ACTIVE"
MigrationLifecycleStateDeleting MigrationLifecycleStateEnum = "DELETING"
MigrationLifecycleStateDeleted MigrationLifecycleStateEnum = "DELETED"
MigrationLifecycleStateFailed MigrationLifecycleStateEnum = "FAILED"
)
func GetMappingMigrationLifecycleStateEnum(val string) (MigrationLifecycleStateEnum, bool)
GetMappingMigrationLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMigrationLifecycleStateEnumValues() []MigrationLifecycleStateEnum
GetMigrationLifecycleStateEnumValues Enumerates the set of values for MigrationLifecycleStateEnum
MigrationMigrationTypeEnum Enum with underlying type: string
type MigrationMigrationTypeEnum string
Set of constants representing the allowable values for MigrationMigrationTypeEnum
const (
MigrationMigrationTypeOci MigrationMigrationTypeEnum = "OCI"
MigrationMigrationTypeOlvm MigrationMigrationTypeEnum = "OLVM"
)
func GetMappingMigrationMigrationTypeEnum(val string) (MigrationMigrationTypeEnum, bool)
GetMappingMigrationMigrationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMigrationMigrationTypeEnumValues() []MigrationMigrationTypeEnum
GetMigrationMigrationTypeEnumValues Enumerates the set of values for MigrationMigrationTypeEnum
MigrationPlan Description of the migration plan.
type MigrationPlan struct {
// The unique Oracle ID (OCID) that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment containing the migration plan.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The time when the migration plan was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the migration plan.
LifecycleState MigrationPlanLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The OCID of the associated migration.
MigrationId *string `mandatory:"true" json:"migrationId"`
// List of strategies for the resources to be migrated.
Strategies []ResourceAssessmentStrategy `mandatory:"true" json:"strategies"`
// Limits of the resources that are needed for migration. Example: {"BlockVolume": 2, "VCN": 1}
CalculatedLimits map[string]int `mandatory:"true" json:"calculatedLimits"`
// List of target environments.
TargetEnvironments []TargetEnvironment `mandatory:"true" json:"targetEnvironments"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The time when the migration plan was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
MigrationPlanStats *MigrationPlanStats `mandatory:"false" json:"migrationPlanStats"`
// OCID of the referenced ORM job.
ReferenceToRmsStack *string `mandatory:"false" json:"referenceToRmsStack"`
// Source migraiton plan ID to be cloned.
SourceMigrationPlanId *string `mandatory:"false" json:"sourceMigrationPlanId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m MigrationPlan) String() string
func (m *MigrationPlan) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m MigrationPlan) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationPlanCollection Results of a migration plan search. Contains both migration plan summary items and other information, such as metadata.
type MigrationPlanCollection struct {
// List of migration plan summaries.
Items []MigrationPlanSummary `mandatory:"true" json:"items"`
}
func (m MigrationPlanCollection) String() string
func (m MigrationPlanCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationPlanLifecycleStateEnum Enum with underlying type: string
type MigrationPlanLifecycleStateEnum string
Set of constants representing the allowable values for MigrationPlanLifecycleStateEnum
const (
MigrationPlanLifecycleStateCreating MigrationPlanLifecycleStateEnum = "CREATING"
MigrationPlanLifecycleStateUpdating MigrationPlanLifecycleStateEnum = "UPDATING"
MigrationPlanLifecycleStateNeedsAttention MigrationPlanLifecycleStateEnum = "NEEDS_ATTENTION"
MigrationPlanLifecycleStateActive MigrationPlanLifecycleStateEnum = "ACTIVE"
MigrationPlanLifecycleStateDeleting MigrationPlanLifecycleStateEnum = "DELETING"
MigrationPlanLifecycleStateDeleted MigrationPlanLifecycleStateEnum = "DELETED"
MigrationPlanLifecycleStateFailed MigrationPlanLifecycleStateEnum = "FAILED"
)
func GetMappingMigrationPlanLifecycleStateEnum(val string) (MigrationPlanLifecycleStateEnum, bool)
GetMappingMigrationPlanLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMigrationPlanLifecycleStateEnumValues() []MigrationPlanLifecycleStateEnum
GetMigrationPlanLifecycleStateEnumValues Enumerates the set of values for MigrationPlanLifecycleStateEnum
MigrationPlanStats Status of the migration plan.
type MigrationPlanStats struct {
TotalEstimatedCost *CostEstimation `mandatory:"false" json:"totalEstimatedCost"`
// The time when the migration plan was calculated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// The total count of VMs in migration
VmCount *int `mandatory:"false" json:"vmCount"`
CurrentMonthlyCost *CurrentMonthlyCost `mandatory:"false" json:"currentMonthlyCost"`
CostToMigrate *CostToMigrate `mandatory:"false" json:"costToMigrate"`
}
func (m MigrationPlanStats) String() string
func (m MigrationPlanStats) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationPlanSummary Summary of the migration plan.
type MigrationPlanSummary struct {
// The unique Oracle ID (OCID) that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment containing the migration plan.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The time when the migration plan was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of the migration plan.
LifecycleState MigrationPlanLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The OCID of the associated migration.
MigrationId *string `mandatory:"true" json:"migrationId"`
// List of strategies for the resources to be migrated.
Strategies []ResourceAssessmentStrategy `mandatory:"true" json:"strategies"`
// Limits of the resources that are needed for migration. Example: {"BlockVolume": 2, "VCN": 1}
CalculatedLimits map[string]int `mandatory:"true" json:"calculatedLimits"`
// List of target environments.
TargetEnvironments []TargetEnvironment `mandatory:"true" json:"targetEnvironments"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The time when the migration plan was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
MigrationPlanStats *MigrationPlanStats `mandatory:"false" json:"migrationPlanStats"`
// OCID of the referenced ORM job.
ReferenceToRmsStack *string `mandatory:"false" json:"referenceToRmsStack"`
// Source migraiton plan ID to be cloned.
SourceMigrationPlanId *string `mandatory:"false" json:"sourceMigrationPlanId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m MigrationPlanSummary) String() string
func (m *MigrationPlanSummary) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m MigrationPlanSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MigrationSummary Summary of the migration project.
type MigrationSummary struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// Compartment identifier
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The time when the migration project was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The current state of migration.
LifecycleState MigrationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Migration identifier that can be renamed
DisplayName *string `mandatory:"false" json:"displayName"`
// The time when the migration project was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// Indicates whether migration is marked as complete.
IsCompleted *bool `mandatory:"false" json:"isCompleted"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
// Type of migration project (OCI/OLVM). This determines the target environment for the migration.
MigrationType MigrationMigrationTypeEnum `mandatory:"false" json:"migrationType,omitempty"`
MigrationConfig *MigrationConfig `mandatory:"false" json:"migrationConfig"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m MigrationSummary) String() string
func (m MigrationSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
MonthlyCostSummary Cost information for monthly maintenance.
type MonthlyCostSummary struct {
// Monthly costs for maintenance of this asset.
Amount *float64 `mandatory:"true" json:"amount"`
// Currency code
CurrencyCode *string `mandatory:"true" json:"currencyCode"`
}
func (m MonthlyCostSummary) String() string
func (m MonthlyCostSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Nic The VNIC configuration.
type Nic struct {
// Provides a label and summary information for the device.
Label *string `mandatory:"false" json:"label"`
// Switch name.
SwitchName *string `mandatory:"false" json:"switchName"`
// Mac address of the VM.
MacAddress *string `mandatory:"false" json:"macAddress"`
// Mac address type.
MacAddressType *string `mandatory:"false" json:"macAddressType"`
// Network name.
NetworkName *string `mandatory:"false" json:"networkName"`
// List of IP addresses.
IpAddresses []string `mandatory:"false" json:"ipAddresses"`
}
func (m Nic) String() string
func (m Nic) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Nvdimm The asset's NVDIMM configuration.
type Nvdimm struct {
// Provides a label and summary information for the device.
Label *string `mandatory:"false" json:"label"`
// The unit number of NVDIMM.
UnitNumber *int `mandatory:"false" json:"unitNumber"`
// Controller key.
ControllerKey *int `mandatory:"false" json:"controllerKey"`
}
func (m Nvdimm) String() string
func (m Nvdimm) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
NvdimmController The asset's NVDIMM configuration.
type NvdimmController struct {
// Provides a label and summary information for the device.
Label *string `mandatory:"false" json:"label"`
// Bus number.
BusNumber *int `mandatory:"false" json:"busNumber"`
}
func (m NvdimmController) String() string
func (m NvdimmController) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmAgent Type representing a fence agent.
type OlvmAgent struct {
// Fence agent address
Address *string `mandatory:"false" json:"address"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// Specified whether the agent should be used concurrently or sequentially
IsConcurrent *bool `mandatory:"false" json:"isConcurrent"`
// Free text containing comments about this object.
Description *string `mandatory:"false" json:"description"`
// Specifies whether the options should be encrypted.
IsEncryptOptions *bool `mandatory:"false" json:"isEncryptOptions"`
// A unique identifier.
Id *string `mandatory:"false" json:"id"`
// A human-readable name in plain text
Name *string `mandatory:"false" json:"name"`
// The order of this agent if used with other agents.
Order *int `mandatory:"false" json:"order"`
// Fence agent port.
Port *int `mandatory:"false" json:"port"`
// Fence agent type.
Type *string `mandatory:"false" json:"type"`
// Fence agent user name.
Username *string `mandatory:"false" json:"username"`
}
func (m OlvmAgent) String() string
func (m OlvmAgent) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmAssetSource OLVM asset source. Used for discovery of clusters and storage domains registered in the OLVM environment.
type OlvmAssetSource struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// The detailed state of the asset source.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The time when the asset source was created in the RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The point in time that the asset source was last updated in the RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Endpoint for OLVM asset discovery and replication in the form of ```https://<host>:<port>```
OlvmEndpoint *string `mandatory:"true" json:"olvmEndpoint"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"true" json:"discoveryCredentials"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an attached discovery schedule.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// The current state of the asset source.
LifecycleState AssetSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m OlvmAssetSource) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m OlvmAssetSource) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m OlvmAssetSource) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m OlvmAssetSource) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m OlvmAssetSource) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m OlvmAssetSource) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m OlvmAssetSource) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m OlvmAssetSource) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m OlvmAssetSource) GetId() *string
GetId returns Id
func (m OlvmAssetSource) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m OlvmAssetSource) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m OlvmAssetSource) GetLifecycleState() AssetSourceLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m OlvmAssetSource) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m OlvmAssetSource) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m OlvmAssetSource) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m OlvmAssetSource) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m OlvmAssetSource) String() string
func (m OlvmAssetSource) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmAssetSourceSummary Summary of an OLVM asset source provided in the list.
type OlvmAssetSourceSummary struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The detailed state of the asset source.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// Endpoint for OLVM asset discovery and replication in the form of ```https://<host>:<port>```
OlvmEndpoint *string `mandatory:"true" json:"olvmEndpoint"`
// The time when the asset source was created in RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The point in time that the asset source was last updated in RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// The current state of the asset source.
LifecycleState AssetSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m OlvmAssetSourceSummary) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m OlvmAssetSourceSummary) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m OlvmAssetSourceSummary) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m OlvmAssetSourceSummary) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m OlvmAssetSourceSummary) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m OlvmAssetSourceSummary) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m OlvmAssetSourceSummary) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m OlvmAssetSourceSummary) GetId() *string
GetId returns Id
func (m OlvmAssetSourceSummary) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m OlvmAssetSourceSummary) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m OlvmAssetSourceSummary) GetLifecycleState() AssetSourceLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m OlvmAssetSourceSummary) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m OlvmAssetSourceSummary) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m OlvmAssetSourceSummary) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m OlvmAssetSourceSummary) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m OlvmAssetSourceSummary) String() string
func (m OlvmAssetSourceSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmBios OLVM Bios
type OlvmBios struct {
BootMenu *OlvmBootMenu `mandatory:"false" json:"bootMenu"`
BiosType *OlvmBiosType `mandatory:"false" json:"biosType"`
}
func (m OlvmBios) String() string
func (m OlvmBios) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmBiosType Chipset and BIOS type combination.
type OlvmBiosType struct {
// Chipset and BIOS type combination.
Type OlvmBiosTypeTypeEnum `mandatory:"false" json:"type,omitempty"`
}
func (m OlvmBiosType) String() string
func (m OlvmBiosType) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmBiosTypeTypeEnum Enum with underlying type: string
type OlvmBiosTypeTypeEnum string
Set of constants representing the allowable values for OlvmBiosTypeTypeEnum
const (
OlvmBiosTypeTypeClusterDefault OlvmBiosTypeTypeEnum = "CLUSTER_DEFAULT"
OlvmBiosTypeTypeI440fxSeaBios OlvmBiosTypeTypeEnum = "I440FX_SEA_BIOS"
OlvmBiosTypeTypeQ35Ovmf OlvmBiosTypeTypeEnum = "Q35_OVMF"
OlvmBiosTypeTypeQ35SeaBios OlvmBiosTypeTypeEnum = "Q35_SEA_BIOS"
OlvmBiosTypeTypeQ35SecureBoot OlvmBiosTypeTypeEnum = "Q35_SECURE_BOOT"
)
func GetMappingOlvmBiosTypeTypeEnum(val string) (OlvmBiosTypeTypeEnum, bool)
GetMappingOlvmBiosTypeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmBiosTypeTypeEnumValues() []OlvmBiosTypeTypeEnum
GetOlvmBiosTypeTypeEnumValues Enumerates the set of values for OlvmBiosTypeTypeEnum
OlvmBootDeviceEnum Enum with underlying type: string
type OlvmBootDeviceEnum string
Set of constants representing the allowable values for OlvmBootDeviceEnum
const (
OlvmBootDeviceCdrom OlvmBootDeviceEnum = "CDROM"
OlvmBootDeviceHd OlvmBootDeviceEnum = "HD"
OlvmBootDeviceNetwork OlvmBootDeviceEnum = "NETWORK"
)
func GetMappingOlvmBootDeviceEnum(val string) (OlvmBootDeviceEnum, bool)
GetMappingOlvmBootDeviceEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmBootDeviceEnumValues() []OlvmBootDeviceEnum
GetOlvmBootDeviceEnumValues Enumerates the set of values for OlvmBootDeviceEnum
OlvmBootMenu Represents boot menu configuration for OLVM virtual machines and templates.
type OlvmBootMenu struct {
// Whether the boot menu is enabled for this virtual machine (or template), or not.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}
func (m OlvmBootMenu) String() string
func (m OlvmBootMenu) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmBootProtocol Defines the options of the IP address assignment method to a NIC.
type OlvmBootProtocol struct {
// IP address assignment methods to a NIC.
Protocol OlvmBootProtocolProtocolEnum `mandatory:"false" json:"protocol,omitempty"`
}
func (m OlvmBootProtocol) String() string
func (m OlvmBootProtocol) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmBootProtocolProtocolEnum Enum with underlying type: string
type OlvmBootProtocolProtocolEnum string
Set of constants representing the allowable values for OlvmBootProtocolProtocolEnum
const (
OlvmBootProtocolProtocolAutoconf OlvmBootProtocolProtocolEnum = "AUTOCONF"
OlvmBootProtocolProtocolDhcp OlvmBootProtocolProtocolEnum = "DHCP"
OlvmBootProtocolProtocolNone OlvmBootProtocolProtocolEnum = "NONE"
OlvmBootProtocolProtocolPolyDhcpAutoconf OlvmBootProtocolProtocolEnum = "POLY_DHCP_AUTOCONF"
OlvmBootProtocolProtocolStatic OlvmBootProtocolProtocolEnum = "STATIC"
)
func GetMappingOlvmBootProtocolProtocolEnum(val string) (OlvmBootProtocolProtocolEnum, bool)
GetMappingOlvmBootProtocolProtocolEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmBootProtocolProtocolEnumValues() []OlvmBootProtocolProtocolEnum
GetOlvmBootProtocolProtocolEnumValues Enumerates the set of values for OlvmBootProtocolProtocolEnum
OlvmCertificate The TLS certificate in case of a TLS connection.
type OlvmCertificate struct {
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// Content of the certificate.
Content *string `mandatory:"false" json:"content"`
// A human-readable description in plain text.
CertificateDescription *string `mandatory:"false" json:"certificateDescription"`
// A unique identifier.
Id *string `mandatory:"false" json:"id"`
// A human-readable name in plain text.
Name *string `mandatory:"false" json:"name"`
// Organization of the certificate
Organization *string `mandatory:"false" json:"organization"`
// Subject of the certificate
Subject *string `mandatory:"false" json:"subject"`
}
func (m OlvmCertificate) String() string
func (m OlvmCertificate) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmClusterAssetDetails OLVM Cluster type of asset.
type OlvmClusterAssetDetails struct {
OlvmCluster *OlvmClusterProperties `mandatory:"true" json:"olvmCluster"`
}
func (m OlvmClusterAssetDetails) String() string
func (m OlvmClusterAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmClusterProperties OLVM Cluster properties.
type OlvmClusterProperties struct {
// A human-readable name in plain text.
ClusterName *string `mandatory:"true" json:"clusterName"`
// A human-readable description in plain text.
ClusterDescription *string `mandatory:"false" json:"clusterDescription"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// Whether ballooning is enabled.
IsBallooningEnabled *bool `mandatory:"false" json:"isBallooningEnabled"`
BiosType *OlvmBiosType `mandatory:"false" json:"biosType"`
Cpu *OlvmCpu `mandatory:"false" json:"cpu"`
// Custom scheduling policy properties of the cluster.
CustomSchedulingPolicyProperties []OlvmProperty `mandatory:"false" json:"customSchedulingPolicyProperties"`
Display *OlvmDisplay `mandatory:"false" json:"display"`
ErrorHandling *OlvmErrorHandling `mandatory:"false" json:"errorHandling"`
FencingPolicy *OlvmFencingPolicy `mandatory:"false" json:"fencingPolicy"`
// FIPS mode of the cluster.
FipsMode OlvmClusterPropertiesFipsModeEnum `mandatory:"false" json:"fipsMode,omitempty"`
// The type of firewall to be used on hosts in this cluster.
FirewallType OlvmClusterPropertiesFirewallTypeEnum `mandatory:"false" json:"firewallType,omitempty"`
// Indicates if Gluster service is used.
IsGlusterService *bool `mandatory:"false" json:"isGlusterService"`
// The name of the tuned profile.
GlusterTunedProfile *string `mandatory:"false" json:"glusterTunedProfile"`
// Indicates whether HA reservation is enabled.
IsHaReservation *bool `mandatory:"false" json:"isHaReservation"`
Ksm *Ksm `mandatory:"false" json:"ksm"`
// The memory consumption threshold for logging audit log events
LogMaxMemoryUsedThreshold *int `mandatory:"false" json:"logMaxMemoryUsedThreshold"`
// The memory consumption threshold type for logging audit log events.
LogMaxMemoryUsedThresholdType OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum `mandatory:"false" json:"logMaxMemoryUsedThresholdType,omitempty"`
MemoryPolicy *OlvmMemoryPolicy `mandatory:"false" json:"memoryPolicy"`
MigrationPolicy *OlvmMigrationOptions `mandatory:"false" json:"migrationPolicy"`
// Set of random number generator (RNG) sources required from each host in the cluster.
RequiredRngSources []RngSourceEnum `mandatory:"false" json:"requiredRngSources"`
SerialNumber *OlvmSerialNumber `mandatory:"false" json:"serialNumber"`
// List of supported versions.
SupportedVersions []OlvmVersion `mandatory:"false" json:"supportedVersions"`
// Describes all switch types supported by the Manager
SwitchType OlvmClusterPropertiesSwitchTypeEnum `mandatory:"false" json:"switchType,omitempty"`
// Indicates if threads should be used as cores
IsUseThreadsAsCores *bool `mandatory:"false" json:"isUseThreadsAsCores"`
// Indicates if trusted service is enabled
IsTrustedService *bool `mandatory:"false" json:"isTrustedService"`
// Indicates if tunnel migration is enabled
IsTunnelMigration *bool `mandatory:"false" json:"isTunnelMigration"`
// The upgrade correlation identifier.
UpgradeCorrelationId *string `mandatory:"false" json:"upgradeCorrelationId"`
// Indicates if an upgrade has been started for the cluster.
IsUpdateInProgress *bool `mandatory:"false" json:"isUpdateInProgress"`
// If an upgrade is in progress, the upgrade???s reported percent complete.
UpgradePercentComplete *int `mandatory:"false" json:"upgradePercentComplete"`
Version *OlvmVersion `mandatory:"false" json:"version"`
// Indicates if virt service is enabled.
IsVirtService *bool `mandatory:"false" json:"isVirtService"`
// Indicates if VNC encryption is enabled.
IsVncEncryption *bool `mandatory:"false" json:"isVncEncryption"`
// List of data centers where storage domain belongs
DataCenters []OlvmDataCenter `mandatory:"false" json:"dataCenters"`
}
func (m OlvmClusterProperties) String() string
func (m OlvmClusterProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmClusterPropertiesFipsModeEnum Enum with underlying type: string
type OlvmClusterPropertiesFipsModeEnum string
Set of constants representing the allowable values for OlvmClusterPropertiesFipsModeEnum
const (
OlvmClusterPropertiesFipsModeDisabled OlvmClusterPropertiesFipsModeEnum = "DISABLED"
OlvmClusterPropertiesFipsModeEnabled OlvmClusterPropertiesFipsModeEnum = "ENABLED"
OlvmClusterPropertiesFipsModeUndefined OlvmClusterPropertiesFipsModeEnum = "UNDEFINED"
)
func GetMappingOlvmClusterPropertiesFipsModeEnum(val string) (OlvmClusterPropertiesFipsModeEnum, bool)
GetMappingOlvmClusterPropertiesFipsModeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmClusterPropertiesFipsModeEnumValues() []OlvmClusterPropertiesFipsModeEnum
GetOlvmClusterPropertiesFipsModeEnumValues Enumerates the set of values for OlvmClusterPropertiesFipsModeEnum
OlvmClusterPropertiesFirewallTypeEnum Enum with underlying type: string
type OlvmClusterPropertiesFirewallTypeEnum string
Set of constants representing the allowable values for OlvmClusterPropertiesFirewallTypeEnum
const (
OlvmClusterPropertiesFirewallTypeFirewalld OlvmClusterPropertiesFirewallTypeEnum = "FIREWALLD"
OlvmClusterPropertiesFirewallTypeIptables OlvmClusterPropertiesFirewallTypeEnum = "IPTABLES"
)
func GetMappingOlvmClusterPropertiesFirewallTypeEnum(val string) (OlvmClusterPropertiesFirewallTypeEnum, bool)
GetMappingOlvmClusterPropertiesFirewallTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmClusterPropertiesFirewallTypeEnumValues() []OlvmClusterPropertiesFirewallTypeEnum
GetOlvmClusterPropertiesFirewallTypeEnumValues Enumerates the set of values for OlvmClusterPropertiesFirewallTypeEnum
OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum Enum with underlying type: string
type OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum string
Set of constants representing the allowable values for OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum
const (
OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeAbsoluteValueInMb OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum = "ABSOLUTE_VALUE_IN_MB"
OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypePercentage OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum = "PERCENTAGE"
)
func GetMappingOlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum(val string) (OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum, bool)
GetMappingOlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnumValues() []OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum
GetOlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnumValues Enumerates the set of values for OlvmClusterPropertiesLogMaxMemoryUsedThresholdTypeEnum
OlvmClusterPropertiesSwitchTypeEnum Enum with underlying type: string
type OlvmClusterPropertiesSwitchTypeEnum string
Set of constants representing the allowable values for OlvmClusterPropertiesSwitchTypeEnum
const (
OlvmClusterPropertiesSwitchTypeLegacy OlvmClusterPropertiesSwitchTypeEnum = "LEGACY"
OlvmClusterPropertiesSwitchTypeOvs OlvmClusterPropertiesSwitchTypeEnum = "OVS"
)
func GetMappingOlvmClusterPropertiesSwitchTypeEnum(val string) (OlvmClusterPropertiesSwitchTypeEnum, bool)
GetMappingOlvmClusterPropertiesSwitchTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmClusterPropertiesSwitchTypeEnumValues() []OlvmClusterPropertiesSwitchTypeEnum
GetOlvmClusterPropertiesSwitchTypeEnumValues Enumerates the set of values for OlvmClusterPropertiesSwitchTypeEnum
OlvmConfiguration Configuration of the OLVM virtual machine.
type OlvmConfiguration struct {
// The document describing the virtual machine.
Data *string `mandatory:"false" json:"data"`
// Configuration format types.
ConfigurationType OlvmConfigurationConfigurationTypeEnum `mandatory:"false" json:"configurationType,omitempty"`
}
func (m OlvmConfiguration) String() string
func (m OlvmConfiguration) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmConfigurationConfigurationTypeEnum Enum with underlying type: string
type OlvmConfigurationConfigurationTypeEnum string
Set of constants representing the allowable values for OlvmConfigurationConfigurationTypeEnum
const (
OlvmConfigurationConfigurationTypeOva OlvmConfigurationConfigurationTypeEnum = "OVA"
OlvmConfigurationConfigurationTypeOvf OlvmConfigurationConfigurationTypeEnum = "OVF"
)
func GetMappingOlvmConfigurationConfigurationTypeEnum(val string) (OlvmConfigurationConfigurationTypeEnum, bool)
GetMappingOlvmConfigurationConfigurationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmConfigurationConfigurationTypeEnumValues() []OlvmConfigurationConfigurationTypeEnum
GetOlvmConfigurationConfigurationTypeEnumValues Enumerates the set of values for OlvmConfigurationConfigurationTypeEnum
OlvmConsole Representation for serial console device.
type OlvmConsole struct {
// Enable/disable the serial console device.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}
func (m OlvmConsole) String() string
func (m OlvmConsole) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmCore Core of the CPU in OLVM
type OlvmCore struct {
// Index of this CPU core
Index *int `mandatory:"false" json:"index"`
// Socket of this CPU core
Socket *int `mandatory:"false" json:"socket"`
}
func (m OlvmCore) String() string
func (m OlvmCore) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmCpu CPU attributes in OLVM
type OlvmCpu struct {
// CPU architecture
Architecture OlvmCpuArchitectureEnum `mandatory:"false" json:"architecture,omitempty"`
// List of cores of this CPU
Core []OlvmCore `mandatory:"false" json:"core"`
CpuTune *OlvmCpuTune `mandatory:"false" json:"cpuTune"`
// Level of this CPU
Level *int `mandatory:"false" json:"level"`
// CPU mode
Mode OlvmCpuModeEnum `mandatory:"false" json:"mode,omitempty"`
// A human-readable name in plain text.
Name *string `mandatory:"false" json:"name"`
// Speed of this CPU
Speed *float32 `mandatory:"false" json:"speed"`
CpuTopology *OlvmCpuTopology `mandatory:"false" json:"cpuTopology"`
// CPU type
Type *string `mandatory:"false" json:"type"`
}
func (m OlvmCpu) String() string
func (m OlvmCpu) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmCpuArchitectureEnum Enum with underlying type: string
type OlvmCpuArchitectureEnum string
Set of constants representing the allowable values for OlvmCpuArchitectureEnum
const (
OlvmCpuArchitectureAarch64 OlvmCpuArchitectureEnum = "AARCH64"
OlvmCpuArchitecturePpc64 OlvmCpuArchitectureEnum = "PPC64"
OlvmCpuArchitectureS390x OlvmCpuArchitectureEnum = "S390X"
OlvmCpuArchitectureUndefined OlvmCpuArchitectureEnum = "UNDEFINED"
OlvmCpuArchitectureX8664 OlvmCpuArchitectureEnum = "X86_64"
)
func GetMappingOlvmCpuArchitectureEnum(val string) (OlvmCpuArchitectureEnum, bool)
GetMappingOlvmCpuArchitectureEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmCpuArchitectureEnumValues() []OlvmCpuArchitectureEnum
GetOlvmCpuArchitectureEnumValues Enumerates the set of values for OlvmCpuArchitectureEnum
OlvmCpuModeEnum Enum with underlying type: string
type OlvmCpuModeEnum string
Set of constants representing the allowable values for OlvmCpuModeEnum
const (
OlvmCpuModeCustom OlvmCpuModeEnum = "CUSTOM"
OlvmCpuModeHostModel OlvmCpuModeEnum = "HOST_MODEL"
OlvmCpuModeHostPassthrough OlvmCpuModeEnum = "HOST_PASSTHROUGH"
)
func GetMappingOlvmCpuModeEnum(val string) (OlvmCpuModeEnum, bool)
GetMappingOlvmCpuModeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmCpuModeEnumValues() []OlvmCpuModeEnum
GetOlvmCpuModeEnumValues Enumerates the set of values for OlvmCpuModeEnum
OlvmCpuTopology CPU Topology in OLVM
type OlvmCpuTopology struct {
// Number of cores
Cores *int `mandatory:"false" json:"cores"`
// Number of sockets
Sockets *int `mandatory:"false" json:"sockets"`
// Number of threads
Threads *int `mandatory:"false" json:"threads"`
}
func (m OlvmCpuTopology) String() string
func (m OlvmCpuTopology) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmCpuTune CPU Tune in OLVM
type OlvmCpuTune struct {
// List of vCPU Pins
VcpuPin []VcpuPin `mandatory:"false" json:"vcpuPin"`
}
func (m OlvmCpuTune) String() string
func (m OlvmCpuTune) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmCustomProperty Custom properties applied to the vNIC Profile.
type OlvmCustomProperty struct {
// Property name
Name *string `mandatory:"false" json:"name"`
// A regular expression defining the available values a custom property can get.
Regexp *string `mandatory:"false" json:"regexp"`
// Property value
Value *string `mandatory:"false" json:"value"`
}
func (m OlvmCustomProperty) String() string
func (m OlvmCustomProperty) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmDataCenter An OLVM Data Center.
type OlvmDataCenter struct {
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
// A unique identifier.
Id *string `mandatory:"false" json:"id"`
// A human-readable name in plain text.
Name *string `mandatory:"false" json:"name"`
// Whether the data center is local.
IsLocal *bool `mandatory:"false" json:"isLocal"`
// The type of quota mode
QuotaModeType OlvmDataCenterQuotaModeTypeEnum `mandatory:"false" json:"quotaModeType,omitempty"`
// The status of data center
DataCenterStatus OlvmDataCenterDataCenterStatusEnum `mandatory:"false" json:"dataCenterStatus,omitempty"`
// Type which represents a format of storage domain
StorageFormat OlvmDataCenterStorageFormatEnum `mandatory:"false" json:"storageFormat,omitempty"`
// List of supported versions.
SupportedVersions []OlvmVersion `mandatory:"false" json:"supportedVersions"`
Version *OlvmVersion `mandatory:"false" json:"version"`
}
func (m OlvmDataCenter) String() string
func (m OlvmDataCenter) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmDataCenterDataCenterStatusEnum Enum with underlying type: string
type OlvmDataCenterDataCenterStatusEnum string
Set of constants representing the allowable values for OlvmDataCenterDataCenterStatusEnum
const (
OlvmDataCenterDataCenterStatusContend OlvmDataCenterDataCenterStatusEnum = "CONTEND"
OlvmDataCenterDataCenterStatusMaintenance OlvmDataCenterDataCenterStatusEnum = "MAINTENANCE"
OlvmDataCenterDataCenterStatusNotOperational OlvmDataCenterDataCenterStatusEnum = "NOT_OPERATIONAL"
OlvmDataCenterDataCenterStatusProblematic OlvmDataCenterDataCenterStatusEnum = "PROBLEMATIC"
OlvmDataCenterDataCenterStatusUninitialized OlvmDataCenterDataCenterStatusEnum = "UNINITIALIZED"
OlvmDataCenterDataCenterStatusUp OlvmDataCenterDataCenterStatusEnum = "UP"
)
func GetMappingOlvmDataCenterDataCenterStatusEnum(val string) (OlvmDataCenterDataCenterStatusEnum, bool)
GetMappingOlvmDataCenterDataCenterStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmDataCenterDataCenterStatusEnumValues() []OlvmDataCenterDataCenterStatusEnum
GetOlvmDataCenterDataCenterStatusEnumValues Enumerates the set of values for OlvmDataCenterDataCenterStatusEnum
OlvmDataCenterQuotaModeTypeEnum Enum with underlying type: string
type OlvmDataCenterQuotaModeTypeEnum string
Set of constants representing the allowable values for OlvmDataCenterQuotaModeTypeEnum
const (
OlvmDataCenterQuotaModeTypeAudit OlvmDataCenterQuotaModeTypeEnum = "AUDIT"
OlvmDataCenterQuotaModeTypeDisabled OlvmDataCenterQuotaModeTypeEnum = "DISABLED"
OlvmDataCenterQuotaModeTypeEnabled OlvmDataCenterQuotaModeTypeEnum = "ENABLED"
)
func GetMappingOlvmDataCenterQuotaModeTypeEnum(val string) (OlvmDataCenterQuotaModeTypeEnum, bool)
GetMappingOlvmDataCenterQuotaModeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmDataCenterQuotaModeTypeEnumValues() []OlvmDataCenterQuotaModeTypeEnum
GetOlvmDataCenterQuotaModeTypeEnumValues Enumerates the set of values for OlvmDataCenterQuotaModeTypeEnum
OlvmDataCenterStorageFormatEnum Enum with underlying type: string
type OlvmDataCenterStorageFormatEnum string
Set of constants representing the allowable values for OlvmDataCenterStorageFormatEnum
const (
OlvmDataCenterStorageFormatV1 OlvmDataCenterStorageFormatEnum = "V1"
OlvmDataCenterStorageFormatV2 OlvmDataCenterStorageFormatEnum = "V2"
OlvmDataCenterStorageFormatV3 OlvmDataCenterStorageFormatEnum = "V3"
OlvmDataCenterStorageFormatV4 OlvmDataCenterStorageFormatEnum = "V4"
OlvmDataCenterStorageFormatV5 OlvmDataCenterStorageFormatEnum = "V5"
)
func GetMappingOlvmDataCenterStorageFormatEnum(val string) (OlvmDataCenterStorageFormatEnum, bool)
GetMappingOlvmDataCenterStorageFormatEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmDataCenterStorageFormatEnumValues() []OlvmDataCenterStorageFormatEnum
GetOlvmDataCenterStorageFormatEnumValues Enumerates the set of values for OlvmDataCenterStorageFormatEnum
OlvmDisplay Display object in OLVM
type OlvmDisplay struct {
// The IP address of the guest to connect the graphic console client to.
Address *string `mandatory:"false" json:"address"`
// Indicates if to override the display address per host.
IsAllowOverride *bool `mandatory:"false" json:"isAllowOverride"`
Certificate *OlvmCertificate `mandatory:"false" json:"certificate"`
// Indicates whether a user is able to copy and paste content from an external host into the graphic console.
IsCopyPasteEnabled *bool `mandatory:"false" json:"isCopyPasteEnabled"`
// Returns the action that will take place when the graphic console is disconnected.
DisconnectAction *string `mandatory:"false" json:"disconnectAction"`
// Delay (in minutes) before the graphic console disconnect action is carried out.
DisconnectActionDelayInMinutes *int `mandatory:"false" json:"disconnectActionDelayInMinutes"`
// Indicates if a user is able to drag and drop files from an external host into the graphic console.
IsFileTransferEnabled *bool `mandatory:"false" json:"isFileTransferEnabled"`
// The keyboard layout to use with this graphic console.
KeyboardLayout *string `mandatory:"false" json:"keyboardLayout"`
// The number of monitors opened for this graphic console.
Monitors *int `mandatory:"false" json:"monitors"`
// The port address on the guest to connect the graphic console client to
Port *int `mandatory:"false" json:"port"`
// The proxy IP which will be used by the graphic console client to connect to the guest.
Proxy *string `mandatory:"false" json:"proxy"`
// The secured port address on the guest, in case of using TLS, to connect the graphic console client to.
SecurePort *int `mandatory:"false" json:"securePort"`
// The engine now sets it automatically according to the operating system.
IsSingleQxlPci *bool `mandatory:"false" json:"isSingleQxlPci"`
// The graphic console protocol type.
DisplayType OlvmDisplayDisplayTypeEnum `mandatory:"false" json:"displayType,omitempty"`
}
func (m OlvmDisplay) String() string
func (m OlvmDisplay) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmDisplayDisplayTypeEnum Enum with underlying type: string
type OlvmDisplayDisplayTypeEnum string
Set of constants representing the allowable values for OlvmDisplayDisplayTypeEnum
const (
OlvmDisplayDisplayTypeSpice OlvmDisplayDisplayTypeEnum = "SPICE"
OlvmDisplayDisplayTypeVnc OlvmDisplayDisplayTypeEnum = "VNC"
)
func GetMappingOlvmDisplayDisplayTypeEnum(val string) (OlvmDisplayDisplayTypeEnum, bool)
GetMappingOlvmDisplayDisplayTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmDisplayDisplayTypeEnumValues() []OlvmDisplayDisplayTypeEnum
GetOlvmDisplayDisplayTypeEnumValues Enumerates the set of values for OlvmDisplayDisplayTypeEnum
OlvmDomain This type represents a directory service domain
type OlvmDomain struct {
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
// A unique identifier.
Id *string `mandatory:"false" json:"id"`
// Name of the property.
Name *string `mandatory:"false" json:"name"`
}
func (m OlvmDomain) String() string
func (m OlvmDomain) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmErrorHandling Error Handling in OLVM
type OlvmErrorHandling struct {
// Migrate on error
OnError OlvmErrorHandlingOnErrorEnum `mandatory:"false" json:"onError,omitempty"`
}
func (m OlvmErrorHandling) String() string
func (m OlvmErrorHandling) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmErrorHandlingOnErrorEnum Enum with underlying type: string
type OlvmErrorHandlingOnErrorEnum string
Set of constants representing the allowable values for OlvmErrorHandlingOnErrorEnum
const (
OlvmErrorHandlingOnErrorDoNotMigrate OlvmErrorHandlingOnErrorEnum = "DO_NOT_MIGRATE"
OlvmErrorHandlingOnErrorMigrate OlvmErrorHandlingOnErrorEnum = "MIGRATE"
OlvmErrorHandlingOnErrorMigrateHighlyAvailable OlvmErrorHandlingOnErrorEnum = "MIGRATE_HIGHLY_AVAILABLE"
)
func GetMappingOlvmErrorHandlingOnErrorEnum(val string) (OlvmErrorHandlingOnErrorEnum, bool)
GetMappingOlvmErrorHandlingOnErrorEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmErrorHandlingOnErrorEnumValues() []OlvmErrorHandlingOnErrorEnum
GetOlvmErrorHandlingOnErrorEnumValues Enumerates the set of values for OlvmErrorHandlingOnErrorEnum
OlvmFencingPolicy Represents a cluster fencing policy.
type OlvmFencingPolicy struct {
// Enable or disable fencing on this cluster.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
SkipIfConnectivityBroken *SkipIfConnectivityBroken `mandatory:"false" json:"skipIfConnectivityBroken"`
// A flag indicating if fencing should be skipped if Gluster bricks are up and running in the host being fenced.
IsSkipIfGlusterBricksUp *bool `mandatory:"false" json:"isSkipIfGlusterBricksUp"`
// A flag indicating if fencing should be skipped if Gluster bricks are up and running and Gluster quorum will not be met without those bricks.
IsSkipIfGlusterQuorumNotMet *bool `mandatory:"false" json:"isSkipIfGlusterQuorumNotMet"`
SkipIfSdActive *SkipIfSdActive `mandatory:"false" json:"skipIfSdActive"`
}
func (m OlvmFencingPolicy) String() string
func (m OlvmFencingPolicy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmGuestOperatingSystem Represents an operating system installed on the virtual machine.
type OlvmGuestOperatingSystem struct {
// The architecture of the operating system, such as x86_64.
Architecture *string `mandatory:"false" json:"architecture"`
// Code name of the operating system, such as Maipo.
Codename *string `mandatory:"false" json:"codename"`
// Full name of operating system distribution.
Distribution *string `mandatory:"false" json:"distribution"`
// Family of operating system, such as Linux.
Family *string `mandatory:"false" json:"family"`
Kernel *OlvmKernel `mandatory:"false" json:"kernel"`
Version *OlvmVersion `mandatory:"false" json:"version"`
}
func (m OlvmGuestOperatingSystem) String() string
func (m OlvmGuestOperatingSystem) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmHardwareInformation Represents hardware information of host
type OlvmHardwareInformation struct {
// Type of host???s CPU.
Family *string `mandatory:"false" json:"family"`
// Manufacturer of the host???s machine and hardware vendor.
Manufacturer *string `mandatory:"false" json:"manufacturer"`
// Host???s product name (for example RHEV Hypervisor).
ProductName *string `mandatory:"false" json:"productName"`
// Unique ID for host???s chassis.
SerialNumber *string `mandatory:"false" json:"serialNumber"`
// Supported sources of random number generator.
SupportedRngSources []RngSourceEnum `mandatory:"false" json:"supportedRngSources"`
// Unique ID for each host.
Uuid *string `mandatory:"false" json:"uuid"`
// Unique name for each of the manufacturer.
Version *string `mandatory:"false" json:"version"`
}
func (m OlvmHardwareInformation) String() string
func (m OlvmHardwareInformation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmHighAvailability Type representing high availability of a virtual machine.
type OlvmHighAvailability struct {
// Define if the virtual machine is considered highly available.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
// Indicates the priority of the virtual machine inside the run and migration queues. The higher the value, the higher the priority.
Priority *int `mandatory:"false" json:"priority"`
}
func (m OlvmHighAvailability) String() string
func (m OlvmHighAvailability) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmHost Type representing a host.
type OlvmHost struct {
// The host address (FQDN/IP).
Address *string `mandatory:"false" json:"address"`
// The host auto non uniform memory access (NUMA) status.
AutoNumaStatus OlvmHostAutoNumaStatusEnum `mandatory:"false" json:"autoNumaStatus,omitempty"`
Certificate *OlvmCertificate `mandatory:"false" json:"certificate"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
Cpu *OlvmCpu `mandatory:"false" json:"cpu"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
// Specifies whether host device passthrough is enabled on this host.
IsHostDevicePassthrough *bool `mandatory:"false" json:"isHostDevicePassthrough"`
Display *OlvmDisplay `mandatory:"false" json:"display"`
// Status of storage domain.
ExternalStatus OlvmHostExternalStatusEnum `mandatory:"false" json:"externalStatus,omitempty"`
HardwareInformation *OlvmHardwareInformation `mandatory:"false" json:"hardwareInformation"`
HostedEngine *OlvmHostedEngine `mandatory:"false" json:"hostedEngine"`
// A unique identifier.
Id *string `mandatory:"false" json:"id"`
Iscsi *OlvmIscsiDetails `mandatory:"false" json:"iscsi"`
// The host KDUMP status.
KdumpStatus OlvmHostKdumpStatusEnum `mandatory:"false" json:"kdumpStatus,omitempty"`
Ksm *Ksm `mandatory:"false" json:"ksm"`
LibvirtVersion *OlvmVersion `mandatory:"false" json:"libvirtVersion"`
// The max scheduling memory on this host in bytes.
MaxSchedulingMemoryInBytes *int64 `mandatory:"false" json:"maxSchedulingMemoryInBytes"`
// The amount of physical memory on this host in bytes.
MemoryInBytes *int64 `mandatory:"false" json:"memoryInBytes"`
// Name of the property.
Name *string `mandatory:"false" json:"name"`
// Specifies whether a network-related operation, such as 'setup networks', 'sync networks', or 'refresh capabilities', is currently being executed on this host.
IsNetworkOperationInProgress *bool `mandatory:"false" json:"isNetworkOperationInProgress"`
// Specifies whether non uniform memory access (NUMA) is supported on this host.
IsNumaSupported *bool `mandatory:"false" json:"isNumaSupported"`
Os *OlvmOperatingSystem `mandatory:"false" json:"os"`
// Specifies whether we should override firewall definitions
IsOverrideIpTables *bool `mandatory:"false" json:"isOverrideIpTables"`
// Indicates if the host has correctly configured OVN.
IsOvnConfigured *bool `mandatory:"false" json:"isOvnConfigured"`
// The host port.
Port *int `mandatory:"false" json:"port"`
PowerManagement *OlvmPowerManagement `mandatory:"false" json:"powerManagement"`
// Specifies whether the host should be reinstalled.
IsReinstallationRequired *bool `mandatory:"false" json:"isReinstallationRequired"`
SeLinux *OlvmSelinux `mandatory:"false" json:"seLinux"`
Spm *OlvmSpm `mandatory:"false" json:"spm"`
HostStatus *OlvmHostStatus `mandatory:"false" json:"hostStatus"`
// The host status details.
StatusDetail *string `mandatory:"false" json:"statusDetail"`
Summary *OlvmVmSummary `mandatory:"false" json:"summary"`
// Indicates if transparent huge pages (THP) support is enabled.
IsTransparentHugePagesEnabled *bool `mandatory:"false" json:"isTransparentHugePagesEnabled"`
Type *OlvmHostType `mandatory:"false" json:"type"`
// Specified whether there is an oVirt-related update on this host.
IsUpdateAvailable *bool `mandatory:"false" json:"isUpdateAvailable"`
Version *OlvmVersion `mandatory:"false" json:"version"`
// Specifies the vGPU placement strategy.
VgpuPlacement OlvmHostVgpuPlacementEnum `mandatory:"false" json:"vgpuPlacement,omitempty"`
}
func (m OlvmHost) String() string
func (m OlvmHost) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmHostAutoNumaStatusEnum Enum with underlying type: string
type OlvmHostAutoNumaStatusEnum string
Set of constants representing the allowable values for OlvmHostAutoNumaStatusEnum
const (
OlvmHostAutoNumaStatusDisable OlvmHostAutoNumaStatusEnum = "DISABLE"
OlvmHostAutoNumaStatusEnable OlvmHostAutoNumaStatusEnum = "ENABLE"
OlvmHostAutoNumaStatusUnknown OlvmHostAutoNumaStatusEnum = "UNKNOWN"
)
func GetMappingOlvmHostAutoNumaStatusEnum(val string) (OlvmHostAutoNumaStatusEnum, bool)
GetMappingOlvmHostAutoNumaStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmHostAutoNumaStatusEnumValues() []OlvmHostAutoNumaStatusEnum
GetOlvmHostAutoNumaStatusEnumValues Enumerates the set of values for OlvmHostAutoNumaStatusEnum
OlvmHostExternalStatusEnum Enum with underlying type: string
type OlvmHostExternalStatusEnum string
Set of constants representing the allowable values for OlvmHostExternalStatusEnum
const (
OlvmHostExternalStatusError OlvmHostExternalStatusEnum = "ERROR"
OlvmHostExternalStatusFailure OlvmHostExternalStatusEnum = "FAILURE"
OlvmHostExternalStatusInfo OlvmHostExternalStatusEnum = "INFO"
OlvmHostExternalStatusOk OlvmHostExternalStatusEnum = "OK"
OlvmHostExternalStatusWarning OlvmHostExternalStatusEnum = "WARNING"
)
func GetMappingOlvmHostExternalStatusEnum(val string) (OlvmHostExternalStatusEnum, bool)
GetMappingOlvmHostExternalStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmHostExternalStatusEnumValues() []OlvmHostExternalStatusEnum
GetOlvmHostExternalStatusEnumValues Enumerates the set of values for OlvmHostExternalStatusEnum
OlvmHostKdumpStatusEnum Enum with underlying type: string
type OlvmHostKdumpStatusEnum string
Set of constants representing the allowable values for OlvmHostKdumpStatusEnum
const (
OlvmHostKdumpStatusDisabled OlvmHostKdumpStatusEnum = "DISABLED"
OlvmHostKdumpStatusEnabled OlvmHostKdumpStatusEnum = "ENABLED"
OlvmHostKdumpStatusUnknown OlvmHostKdumpStatusEnum = "UNKNOWN"
)
func GetMappingOlvmHostKdumpStatusEnum(val string) (OlvmHostKdumpStatusEnum, bool)
GetMappingOlvmHostKdumpStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmHostKdumpStatusEnumValues() []OlvmHostKdumpStatusEnum
GetOlvmHostKdumpStatusEnumValues Enumerates the set of values for OlvmHostKdumpStatusEnum
OlvmHostStatus Type representing a host status.
type OlvmHostStatus struct {
// Type representing a host status.
Status OlvmHostStatusStatusEnum `mandatory:"false" json:"status,omitempty"`
}
func (m OlvmHostStatus) String() string
func (m OlvmHostStatus) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmHostStatusStatusEnum Enum with underlying type: string
type OlvmHostStatusStatusEnum string
Set of constants representing the allowable values for OlvmHostStatusStatusEnum
const (
OlvmHostStatusStatusConnecting OlvmHostStatusStatusEnum = "CONNECTING"
OlvmHostStatusStatusDown OlvmHostStatusStatusEnum = "DOWN"
OlvmHostStatusStatusError OlvmHostStatusStatusEnum = "ERROR"
OlvmHostStatusStatusInitializing OlvmHostStatusStatusEnum = "INITIALIZING"
OlvmHostStatusStatusInstallFailed OlvmHostStatusStatusEnum = "INSTALL_FAILED"
OlvmHostStatusStatusInstalling OlvmHostStatusStatusEnum = "INSTALLING"
OlvmHostStatusStatusInstallingOs OlvmHostStatusStatusEnum = "INSTALLING_OS"
OlvmHostStatusStatusKdumping OlvmHostStatusStatusEnum = "KDUMPING"
OlvmHostStatusStatusMaintenance OlvmHostStatusStatusEnum = "MAINTENANCE"
OlvmHostStatusStatusNonOperational OlvmHostStatusStatusEnum = "NON_OPERATIONAL"
OlvmHostStatusStatusNonResponsive OlvmHostStatusStatusEnum = "NON_RESPONSIVE"
OlvmHostStatusStatusPendingApproval OlvmHostStatusStatusEnum = "PENDING_APPROVAL"
OlvmHostStatusStatusPreparingForMaintenance OlvmHostStatusStatusEnum = "PREPARING_FOR_MAINTENANCE"
OlvmHostStatusStatusReboot OlvmHostStatusStatusEnum = "REBOOT"
OlvmHostStatusStatusUnassigned OlvmHostStatusStatusEnum = "UNASSIGNED"
OlvmHostStatusStatusUp OlvmHostStatusStatusEnum = "UP"
)
func GetMappingOlvmHostStatusStatusEnum(val string) (OlvmHostStatusStatusEnum, bool)
GetMappingOlvmHostStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmHostStatusStatusEnumValues() []OlvmHostStatusStatusEnum
GetOlvmHostStatusStatusEnumValues Enumerates the set of values for OlvmHostStatusStatusEnum
OlvmHostType Indicates if the host contains a full installation of the operating system or a scaled-down version intended only to host virtual machines.
type OlvmHostType struct {
// This enumerated type is used to determine which type of operating system is used by the host.
HostType OlvmHostTypeHostTypeEnum `mandatory:"false" json:"hostType,omitempty"`
}
func (m OlvmHostType) String() string
func (m OlvmHostType) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmHostTypeHostTypeEnum Enum with underlying type: string
type OlvmHostTypeHostTypeEnum string
Set of constants representing the allowable values for OlvmHostTypeHostTypeEnum
const (
OlvmHostTypeHostTypeOvirtNode OlvmHostTypeHostTypeEnum = "OVIRT_NODE"
OlvmHostTypeHostTypeRhel OlvmHostTypeHostTypeEnum = "RHEL"
OlvmHostTypeHostTypeRhevH OlvmHostTypeHostTypeEnum = "RHEV_H"
)
func GetMappingOlvmHostTypeHostTypeEnum(val string) (OlvmHostTypeHostTypeEnum, bool)
GetMappingOlvmHostTypeHostTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmHostTypeHostTypeEnumValues() []OlvmHostTypeHostTypeEnum
GetOlvmHostTypeHostTypeEnumValues Enumerates the set of values for OlvmHostTypeHostTypeEnum
OlvmHostVgpuPlacementEnum Enum with underlying type: string
type OlvmHostVgpuPlacementEnum string
Set of constants representing the allowable values for OlvmHostVgpuPlacementEnum
const (
OlvmHostVgpuPlacementConsolidated OlvmHostVgpuPlacementEnum = "CONSOLIDATED"
OlvmHostVgpuPlacementSeparated OlvmHostVgpuPlacementEnum = "SEPARATED"
)
func GetMappingOlvmHostVgpuPlacementEnum(val string) (OlvmHostVgpuPlacementEnum, bool)
GetMappingOlvmHostVgpuPlacementEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmHostVgpuPlacementEnumValues() []OlvmHostVgpuPlacementEnum
GetOlvmHostVgpuPlacementEnumValues Enumerates the set of values for OlvmHostVgpuPlacementEnum
OlvmHostedEngine The self-hosted engine status of this host.
type OlvmHostedEngine struct {
// Indicates if this hosted engine is active.
IsActive *bool `mandatory:"false" json:"isActive"`
// Indicates if this hosted engine is configured.
IsConfigured *bool `mandatory:"false" json:"isConfigured"`
// Indicates if this hosted engine under global maintenance.
IsGlobalMaintenance *bool `mandatory:"false" json:"isGlobalMaintenance"`
// Indicates if this hosted engine under local maintenance.
IsLocalMaintenance *bool `mandatory:"false" json:"isLocalMaintenance"`
// A numerical value representing the health and status of the Manager virtual machine
Score *int `mandatory:"false" json:"score"`
}
func (m OlvmHostedEngine) String() string
func (m OlvmHostedEngine) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmIcon Icon of virtual machine or template.
type OlvmIcon struct {
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// Base64 encode content of the icon file.
Data *string `mandatory:"false" json:"data"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
// A unique identifier.
Id *string `mandatory:"false" json:"id"`
// Format of icon file.
MediaType *string `mandatory:"false" json:"mediaType"`
// Name of the property.
Name *string `mandatory:"false" json:"name"`
}
func (m OlvmIcon) String() string
func (m OlvmIcon) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmInitialization Type representing initialization configuration of a virtual machine.
type OlvmInitialization struct {
// Active Directory Organizational Unit.
ActiveDirectoryOu *string `mandatory:"false" json:"activeDirectoryOu"`
// Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init.
CloudInitNetworkProtocol OlvmInitializationCloudInitNetworkProtocolEnum `mandatory:"false" json:"cloudInitNetworkProtocol,omitempty"`
Configuration *OlvmConfiguration `mandatory:"false" json:"configuration"`
// Custom script that will be run when the VM starts.
CustomScript *string `mandatory:"false" json:"customScript"`
// DNS Search of the virtual machine.
DnsSearch *string `mandatory:"false" json:"dnsSearch"`
// DNS Servers of the virtual machine.
DnsServers *string `mandatory:"false" json:"dnsServers"`
// Domain of the virtual machine.
Domain *string `mandatory:"false" json:"domain"`
// Host name of the virtual machine.
HostName *string `mandatory:"false" json:"hostName"`
// Input locale of the virtual machine.
InputLocale *string `mandatory:"false" json:"inputLocale"`
// The configuration of a virtual network interface.
NicConfigurations []OlvmNicConfiguration `mandatory:"false" json:"nicConfigurations"`
// Organization name.
OrgName *string `mandatory:"false" json:"orgName"`
// Indicates if new IDs should be regenerated.
IsRegenerateIds *bool `mandatory:"false" json:"isRegenerateIds"`
// Indicates if new SSH Keys should be regenerated.
IsRegenerateSshKeys *bool `mandatory:"false" json:"isRegenerateSshKeys"`
// System locale of the virtual machine.
SystemLocale *string `mandatory:"false" json:"systemLocale"`
// Timezone of the virtual machine.
Timezone *string `mandatory:"false" json:"timezone"`
// UI Language of the virtual machine.
UiLanguage *string `mandatory:"false" json:"uiLanguage"`
// User Locale of the virtual machine.
UserLocale *string `mandatory:"false" json:"userLocale"`
// User name of the virtual machine.
Username *string `mandatory:"false" json:"username"`
// Windows License Key of the virtual machine.
WindowsLicenseKey *string `mandatory:"false" json:"windowsLicenseKey"`
}
func (m OlvmInitialization) String() string
func (m OlvmInitialization) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmInitializationCloudInitNetworkProtocolEnum Enum with underlying type: string
type OlvmInitializationCloudInitNetworkProtocolEnum string
Set of constants representing the allowable values for OlvmInitializationCloudInitNetworkProtocolEnum
const (
OlvmInitializationCloudInitNetworkProtocolEni OlvmInitializationCloudInitNetworkProtocolEnum = "ENI"
OlvmInitializationCloudInitNetworkProtocolOpenstackMetadata OlvmInitializationCloudInitNetworkProtocolEnum = "OPENSTACK_METADATA"
)
func GetMappingOlvmInitializationCloudInitNetworkProtocolEnum(val string) (OlvmInitializationCloudInitNetworkProtocolEnum, bool)
GetMappingOlvmInitializationCloudInitNetworkProtocolEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmInitializationCloudInitNetworkProtocolEnumValues() []OlvmInitializationCloudInitNetworkProtocolEnum
GetOlvmInitializationCloudInitNetworkProtocolEnumValues Enumerates the set of values for OlvmInitializationCloudInitNetworkProtocolEnum
OlvmIp Represents the IP configuration of a network interface.
type OlvmIp struct {
// The text representation of the IP address.
Address *string `mandatory:"false" json:"address"`
// The address of the default gateway.
Gateway *string `mandatory:"false" json:"gateway"`
// The network mask.
Netmask *string `mandatory:"false" json:"netmask"`
// The version of the IP protocol.
IpVersion OlvmIpIpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"`
}
func (m OlvmIp) String() string
func (m OlvmIp) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmIpIpVersionEnum Enum with underlying type: string
type OlvmIpIpVersionEnum string
Set of constants representing the allowable values for OlvmIpIpVersionEnum
const (
OlvmIpIpVersionV4 OlvmIpIpVersionEnum = "V4"
OlvmIpIpVersionV6 OlvmIpIpVersionEnum = "V6"
)
func GetMappingOlvmIpIpVersionEnum(val string) (OlvmIpIpVersionEnum, bool)
GetMappingOlvmIpIpVersionEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmIpIpVersionEnumValues() []OlvmIpIpVersionEnum
GetOlvmIpIpVersionEnumValues Enumerates the set of values for OlvmIpIpVersionEnum
OlvmIscsiDetails The host iSCSI details.
type OlvmIscsiDetails struct {
// Address of iSCSI
Address *string `mandatory:"false" json:"address"`
// Disk ID of iSCSI
DiskId *string `mandatory:"false" json:"diskId"`
// Initiator of iSCSI
Initiator *string `mandatory:"false" json:"initiator"`
// LUN Mapping of iSCSI
LunMapping *int `mandatory:"false" json:"lunMapping"`
// Number of paths of iSCSI
Paths *int `mandatory:"false" json:"paths"`
// Port number of iSCSI
Port *int `mandatory:"false" json:"port"`
// Portal of iSCSI
Portal *string `mandatory:"false" json:"portal"`
// Product ID of iSCSI
ProductId *string `mandatory:"false" json:"productId"`
// Serial of iSCSI
Serial *string `mandatory:"false" json:"serial"`
// size of iSCSI
SizeInBytes *int64 `mandatory:"false" json:"sizeInBytes"`
// Status of iSCSI
Status *string `mandatory:"false" json:"status"`
// Storage Domain ID of iSCSI
StorageDomainId *string `mandatory:"false" json:"storageDomainId"`
// target of iSCSI
Target *string `mandatory:"false" json:"target"`
// Username of iSCSI
Username *string `mandatory:"false" json:"username"`
// Vendor ID of iSCSI
VendorId *string `mandatory:"false" json:"vendorId"`
// Volume Group ID of iSCSI
VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"`
}
func (m OlvmIscsiDetails) String() string
func (m OlvmIscsiDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmKernel Kernel version of the operating system.
type OlvmKernel struct {
Version *OlvmVersion `mandatory:"false" json:"version"`
}
func (m OlvmKernel) String() string
func (m OlvmKernel) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmMemoryPolicy Logical grouping of memory-related properties of virtual machine-like entities.
type OlvmMemoryPolicy struct {
// Indicates if ballooning is enabled
IsBallooning *bool `mandatory:"false" json:"isBallooning"`
// The amount of memory, in bytes, that is guaranteed to not be drained by the balloon mechanism
GuaranteedMemoryInBytes *int64 `mandatory:"false" json:"guaranteedMemoryInBytes"`
// Maximum virtual machine memory in Bytes
MaxMemoryInBytes *int64 `mandatory:"false" json:"maxMemoryInBytes"`
MemoryOverCommit *MemoryOverCommit `mandatory:"false" json:"memoryOverCommit"`
TransparentHugePages *TransparentHugePages `mandatory:"false" json:"transparentHugePages"`
}
func (m OlvmMemoryPolicy) String() string
func (m OlvmMemoryPolicy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmMigrationOptions Reference to cluster-wide configuration of migration of a running virtual machine to another host.
type OlvmMigrationOptions struct {
// Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine ??? cluster ??? engine-config.
AutoConverge OlvmMigrationOptionsAutoConvergeEnum `mandatory:"false" json:"autoConverge,omitempty"`
Bandwidth *MigrationBandwidth `mandatory:"false" json:"bandwidth"`
// Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine ??? cluster ??? engine-config.
Compressed OlvmMigrationOptionsCompressedEnum `mandatory:"false" json:"compressed,omitempty"`
// Specifies how many parallel migration connections to use.
CustomParallelMigrations *int `mandatory:"false" json:"customParallelMigrations"`
// Enum representing the boolean value that can be either set, or inherited from a higher level. The inheritance order is virtual machine ??? cluster ??? engine-config.
Encrypted OlvmMigrationOptionsEncryptedEnum `mandatory:"false" json:"encrypted,omitempty"`
// Type representing parallel migration connections policy.
ParallelMigrationsPolicy OlvmMigrationOptionsParallelMigrationsPolicyEnum `mandatory:"false" json:"parallelMigrationsPolicy,omitempty"`
}
func (m OlvmMigrationOptions) String() string
func (m OlvmMigrationOptions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmMigrationOptionsAutoConvergeEnum Enum with underlying type: string
type OlvmMigrationOptionsAutoConvergeEnum string
Set of constants representing the allowable values for OlvmMigrationOptionsAutoConvergeEnum
const (
OlvmMigrationOptionsAutoConvergeFalse OlvmMigrationOptionsAutoConvergeEnum = "FALSE"
OlvmMigrationOptionsAutoConvergeInherit OlvmMigrationOptionsAutoConvergeEnum = "INHERIT"
OlvmMigrationOptionsAutoConvergeTrue OlvmMigrationOptionsAutoConvergeEnum = "TRUE"
)
func GetMappingOlvmMigrationOptionsAutoConvergeEnum(val string) (OlvmMigrationOptionsAutoConvergeEnum, bool)
GetMappingOlvmMigrationOptionsAutoConvergeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmMigrationOptionsAutoConvergeEnumValues() []OlvmMigrationOptionsAutoConvergeEnum
GetOlvmMigrationOptionsAutoConvergeEnumValues Enumerates the set of values for OlvmMigrationOptionsAutoConvergeEnum
OlvmMigrationOptionsCompressedEnum Enum with underlying type: string
type OlvmMigrationOptionsCompressedEnum string
Set of constants representing the allowable values for OlvmMigrationOptionsCompressedEnum
const (
OlvmMigrationOptionsCompressedFalse OlvmMigrationOptionsCompressedEnum = "FALSE"
OlvmMigrationOptionsCompressedInherit OlvmMigrationOptionsCompressedEnum = "INHERIT"
OlvmMigrationOptionsCompressedTrue OlvmMigrationOptionsCompressedEnum = "TRUE"
)
func GetMappingOlvmMigrationOptionsCompressedEnum(val string) (OlvmMigrationOptionsCompressedEnum, bool)
GetMappingOlvmMigrationOptionsCompressedEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmMigrationOptionsCompressedEnumValues() []OlvmMigrationOptionsCompressedEnum
GetOlvmMigrationOptionsCompressedEnumValues Enumerates the set of values for OlvmMigrationOptionsCompressedEnum
OlvmMigrationOptionsEncryptedEnum Enum with underlying type: string
type OlvmMigrationOptionsEncryptedEnum string
Set of constants representing the allowable values for OlvmMigrationOptionsEncryptedEnum
const (
OlvmMigrationOptionsEncryptedFalse OlvmMigrationOptionsEncryptedEnum = "FALSE"
OlvmMigrationOptionsEncryptedInherit OlvmMigrationOptionsEncryptedEnum = "INHERIT"
OlvmMigrationOptionsEncryptedTrue OlvmMigrationOptionsEncryptedEnum = "TRUE"
)
func GetMappingOlvmMigrationOptionsEncryptedEnum(val string) (OlvmMigrationOptionsEncryptedEnum, bool)
GetMappingOlvmMigrationOptionsEncryptedEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmMigrationOptionsEncryptedEnumValues() []OlvmMigrationOptionsEncryptedEnum
GetOlvmMigrationOptionsEncryptedEnumValues Enumerates the set of values for OlvmMigrationOptionsEncryptedEnum
OlvmMigrationOptionsParallelMigrationsPolicyEnum Enum with underlying type: string
type OlvmMigrationOptionsParallelMigrationsPolicyEnum string
Set of constants representing the allowable values for OlvmMigrationOptionsParallelMigrationsPolicyEnum
const (
OlvmMigrationOptionsParallelMigrationsPolicyAuto OlvmMigrationOptionsParallelMigrationsPolicyEnum = "AUTO"
OlvmMigrationOptionsParallelMigrationsPolicyAutoParallel OlvmMigrationOptionsParallelMigrationsPolicyEnum = "AUTO_PARALLEL"
OlvmMigrationOptionsParallelMigrationsPolicyCustom OlvmMigrationOptionsParallelMigrationsPolicyEnum = "CUSTOM"
OlvmMigrationOptionsParallelMigrationsPolicyDisabled OlvmMigrationOptionsParallelMigrationsPolicyEnum = "DISABLED"
OlvmMigrationOptionsParallelMigrationsPolicyInherit OlvmMigrationOptionsParallelMigrationsPolicyEnum = "INHERIT"
)
func GetMappingOlvmMigrationOptionsParallelMigrationsPolicyEnum(val string) (OlvmMigrationOptionsParallelMigrationsPolicyEnum, bool)
GetMappingOlvmMigrationOptionsParallelMigrationsPolicyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmMigrationOptionsParallelMigrationsPolicyEnumValues() []OlvmMigrationOptionsParallelMigrationsPolicyEnum
GetOlvmMigrationOptionsParallelMigrationsPolicyEnumValues Enumerates the set of values for OlvmMigrationOptionsParallelMigrationsPolicyEnum
OlvmNicConfiguration The type describes the configuration of a virtual network interface.
type OlvmNicConfiguration struct {
BootProtocol *OlvmBootProtocol `mandatory:"false" json:"bootProtocol"`
Ip *OlvmIp `mandatory:"false" json:"ip"`
Ipv6 *OlvmIp `mandatory:"false" json:"ipv6"`
Ipv6BootProtocol *OlvmBootProtocol `mandatory:"false" json:"ipv6BootProtocol"`
// Network interface name.
Name *string `mandatory:"false" json:"name"`
// Specifies whether the network interface should be activated on the virtual machine guest operating system boot.
IsOnBoot *bool `mandatory:"false" json:"isOnBoot"`
}
func (m OlvmNicConfiguration) String() string
func (m OlvmNicConfiguration) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmOperatingSystem Information describing the operating system. This is used for both virtual machines and hosts.
type OlvmOperatingSystem struct {
// Configuration of the boot sequence of a virtual machine.
Boot []OlvmBootDeviceEnum `mandatory:"false" json:"boot"`
// Custom kernel parameters for starting the virtual machine if Linux operating system is used.
CmdLine *string `mandatory:"false" json:"cmdLine"`
// A custom part of the host kernel command line.
CustomKernelCmdLine *string `mandatory:"false" json:"customKernelCmdLine"`
// Path to custom initial ramdisk on ISO storage domain if Linux operating system is used.
InitRd *string `mandatory:"false" json:"initRd"`
// Path to custom kernel on ISO storage domain if Linux operating system is used.
Kernel *string `mandatory:"false" json:"kernel"`
// The host kernel command line as reported by a running host.
ReportedKernelCmdLine *string `mandatory:"false" json:"reportedKernelCmdLine"`
// Operating system name in human readable form
Type *string `mandatory:"false" json:"type"`
Version *OlvmVersion `mandatory:"false" json:"version"`
}
func (m OlvmOperatingSystem) String() string
func (m OlvmOperatingSystem) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmPmProxy Power management proxy types.
type OlvmPmProxy struct {
// Pm Proxy Type
Type OlvmPmProxyTypeEnum `mandatory:"false" json:"type,omitempty"`
}
func (m OlvmPmProxy) String() string
func (m OlvmPmProxy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmPmProxyTypeEnum Enum with underlying type: string
type OlvmPmProxyTypeEnum string
Set of constants representing the allowable values for OlvmPmProxyTypeEnum
const (
OlvmPmProxyTypeCluster OlvmPmProxyTypeEnum = "CLUSTER"
OlvmPmProxyTypeDc OlvmPmProxyTypeEnum = "DC"
OlvmPmProxyTypeOtherDc OlvmPmProxyTypeEnum = "OTHER_DC"
)
func GetMappingOlvmPmProxyTypeEnum(val string) (OlvmPmProxyTypeEnum, bool)
GetMappingOlvmPmProxyTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmPmProxyTypeEnumValues() []OlvmPmProxyTypeEnum
GetOlvmPmProxyTypeEnumValues Enumerates the set of values for OlvmPmProxyTypeEnum
OlvmPowerManagement OLVM Power management definitions
type OlvmPowerManagement struct {
// Address of power management
Address *string `mandatory:"false" json:"address"`
// Supported sources of random number generator.
Agents []OlvmAgent `mandatory:"false" json:"agents"`
// Toggles the automated power control of the host in order to save energy.
IsAutomaticPmEnabled *bool `mandatory:"false" json:"isAutomaticPmEnabled"`
// Indicates whether power management configuration is enabled or disabled.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
// Toggles whether to determine if kdump is running on the host before it is shut down.
IsKDumpDetection *bool `mandatory:"false" json:"isKDumpDetection"`
// Determines the power management proxy.
PmProxies []OlvmPmProxy `mandatory:"false" json:"pmProxies"`
// Determines the power status of the host.
Status OlvmPowerManagementStatusEnum `mandatory:"false" json:"status,omitempty"`
// Fencing device code.
Type *string `mandatory:"false" json:"type"`
// A valid user name for power management.
Username *string `mandatory:"false" json:"username"`
}
func (m OlvmPowerManagement) String() string
func (m OlvmPowerManagement) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmPowerManagementStatusEnum Enum with underlying type: string
type OlvmPowerManagementStatusEnum string
Set of constants representing the allowable values for OlvmPowerManagementStatusEnum
const (
OlvmPowerManagementStatusOff OlvmPowerManagementStatusEnum = "OFF"
OlvmPowerManagementStatusOn OlvmPowerManagementStatusEnum = "ON"
OlvmPowerManagementStatusUnknown OlvmPowerManagementStatusEnum = "UNKNOWN"
)
func GetMappingOlvmPowerManagementStatusEnum(val string) (OlvmPowerManagementStatusEnum, bool)
GetMappingOlvmPowerManagementStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmPowerManagementStatusEnumValues() []OlvmPowerManagementStatusEnum
GetOlvmPowerManagementStatusEnumValues Enumerates the set of values for OlvmPowerManagementStatusEnum
OlvmProperty Property object in OLVM.
type OlvmProperty struct {
// Name of the property.
Name *string `mandatory:"false" json:"name"`
// Value of the property.
Value *string `mandatory:"false" json:"value"`
}
func (m OlvmProperty) String() string
func (m OlvmProperty) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmSelinux Represents SELinux in the system
type OlvmSelinux struct {
// Represents an SELinux enforcement mode.
SeLinuxMode OlvmSelinuxSeLinuxModeEnum `mandatory:"false" json:"seLinuxMode,omitempty"`
}
func (m OlvmSelinux) String() string
func (m OlvmSelinux) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmSelinuxSeLinuxModeEnum Enum with underlying type: string
type OlvmSelinuxSeLinuxModeEnum string
Set of constants representing the allowable values for OlvmSelinuxSeLinuxModeEnum
const (
OlvmSelinuxSeLinuxModeDisabled OlvmSelinuxSeLinuxModeEnum = "DISABLED"
OlvmSelinuxSeLinuxModeEnforcing OlvmSelinuxSeLinuxModeEnum = "ENFORCING"
OlvmSelinuxSeLinuxModePermissive OlvmSelinuxSeLinuxModeEnum = "PERMISSIVE"
)
func GetMappingOlvmSelinuxSeLinuxModeEnum(val string) (OlvmSelinuxSeLinuxModeEnum, bool)
GetMappingOlvmSelinuxSeLinuxModeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmSelinuxSeLinuxModeEnumValues() []OlvmSelinuxSeLinuxModeEnum
GetOlvmSelinuxSeLinuxModeEnumValues Enumerates the set of values for OlvmSelinuxSeLinuxModeEnum
OlvmSerialNumber Serial number object in OLVM
type OlvmSerialNumber struct {
// Type representing the policy of a Serial Number
Policy OlvmSerialNumberPolicyEnum `mandatory:"false" json:"policy,omitempty"`
// Value of the serial number policy.
Value *string `mandatory:"false" json:"value"`
}
func (m OlvmSerialNumber) String() string
func (m OlvmSerialNumber) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmSerialNumberPolicyEnum Enum with underlying type: string
type OlvmSerialNumberPolicyEnum string
Set of constants representing the allowable values for OlvmSerialNumberPolicyEnum
const (
OlvmSerialNumberPolicyCustom OlvmSerialNumberPolicyEnum = "CUSTOM"
OlvmSerialNumberPolicyHost OlvmSerialNumberPolicyEnum = "HOST"
OlvmSerialNumberPolicyNone OlvmSerialNumberPolicyEnum = "NONE"
OlvmSerialNumberPolicyVm OlvmSerialNumberPolicyEnum = "VM"
)
func GetMappingOlvmSerialNumberPolicyEnum(val string) (OlvmSerialNumberPolicyEnum, bool)
GetMappingOlvmSerialNumberPolicyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmSerialNumberPolicyEnumValues() []OlvmSerialNumberPolicyEnum
GetOlvmSerialNumberPolicyEnumValues Enumerates the set of values for OlvmSerialNumberPolicyEnum
OlvmSpm The host storage pool manager (SPM) status and definition.
type OlvmSpm struct {
// Priority of this SPM.
Priority *int `mandatory:"false" json:"priority"`
// Status of this SPM.
SpmStatus OlvmSpmSpmStatusEnum `mandatory:"false" json:"spmStatus,omitempty"`
}
func (m OlvmSpm) String() string
func (m OlvmSpm) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmSpmSpmStatusEnum Enum with underlying type: string
type OlvmSpmSpmStatusEnum string
Set of constants representing the allowable values for OlvmSpmSpmStatusEnum
const (
OlvmSpmSpmStatusContending OlvmSpmSpmStatusEnum = "CONTENDING"
OlvmSpmSpmStatusNone OlvmSpmSpmStatusEnum = "NONE"
OlvmSpmSpmStatusSpm OlvmSpmSpmStatusEnum = "SPM"
)
func GetMappingOlvmSpmSpmStatusEnum(val string) (OlvmSpmSpmStatusEnum, bool)
GetMappingOlvmSpmSpmStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmSpmSpmStatusEnumValues() []OlvmSpmSpmStatusEnum
GetOlvmSpmSpmStatusEnumValues Enumerates the set of values for OlvmSpmSpmStatusEnum
OlvmStorageDomainAssetDetails OLVM Storage Domain type of asset.
type OlvmStorageDomainAssetDetails struct {
OlvmStorageDomain *OlvmStorageDomainProperties `mandatory:"true" json:"olvmStorageDomain"`
}
func (m OlvmStorageDomainAssetDetails) String() string
func (m OlvmStorageDomainAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmStorageDomainProperties OLVM Storage Domain properties.
type OlvmStorageDomainProperties struct {
// A human-readable name in plain text.
StorageDomainName *string `mandatory:"true" json:"storageDomainName"`
// A human-readable description in plain text.
StorageDomainDescription *string `mandatory:"false" json:"storageDomainDescription"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// Space available in bytes.
AvailableSpaceInBytes *int64 `mandatory:"false" json:"availableSpaceInBytes"`
// Space used in bytes.
UsedSpaceInBytes *int64 `mandatory:"false" json:"usedSpaceInBytes"`
// Space committed in bytes.
CommittedSpaceInBytes *int64 `mandatory:"false" json:"committedSpaceInBytes"`
// Block size in bytes.
BlockSizeInBytes *int64 `mandatory:"false" json:"blockSizeInBytes"`
// Whether a data storage domain is used as backup domain or not.
IsBackup *bool `mandatory:"false" json:"isBackup"`
// Indicates if this is the primary (master) storage domain of a data center.
IsPrimary *bool `mandatory:"false" json:"isPrimary"`
// Whether this storage domain is imported.
IsImport *bool `mandatory:"false" json:"isImport"`
// Indicates whether disks' blocks on block storage domains will be discarded right before they are deleted.
IsDiscardAfterDelete *bool `mandatory:"false" json:"isDiscardAfterDelete"`
// Indicates whether a block storage domain supports discard operations
IsSupportDiscard *bool `mandatory:"false" json:"isSupportDiscard"`
// Indicates whether a block storage domain supports the property that discard zeroes the data.
IsSupportDiscardZeroesData *bool `mandatory:"false" json:"isSupportDiscardZeroesData"`
// Serves as the default value of wipe_after_delete for disks on this storage domain.
IsWipeAfterDelete *bool `mandatory:"false" json:"isWipeAfterDelete"`
// Ensure storage domain always has at least this amount of unoccupied space in GBs.
CriticalSpaceActionBlockerInGBs *int `mandatory:"false" json:"criticalSpaceActionBlockerInGBs"`
// If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged.
WarningLowSpaceIndicatorInPercentage *int `mandatory:"false" json:"warningLowSpaceIndicatorInPercentage"`
// Status of storage domain.
ExternalStatus OlvmStorageDomainPropertiesExternalStatusEnum `mandatory:"false" json:"externalStatus,omitempty"`
// Status of storage domain.
StorageDomainStatus OlvmStorageDomainPropertiesStorageDomainStatusEnum `mandatory:"false" json:"storageDomainStatus,omitempty"`
Storage *Storage `mandatory:"false" json:"storage"`
// Type which represents a format of storage domain.
StorageFormat OlvmStorageDomainPropertiesStorageFormatEnum `mandatory:"false" json:"storageFormat,omitempty"`
// Indicates the kind of data managed by a storage domain.
StorageDomainType OlvmStorageDomainPropertiesStorageDomainTypeEnum `mandatory:"false" json:"storageDomainType,omitempty"`
// List of data centers where storage domain belongs
DataCenters []OlvmDataCenter `mandatory:"false" json:"dataCenters"`
}
func (m OlvmStorageDomainProperties) String() string
func (m OlvmStorageDomainProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmStorageDomainPropertiesExternalStatusEnum Enum with underlying type: string
type OlvmStorageDomainPropertiesExternalStatusEnum string
Set of constants representing the allowable values for OlvmStorageDomainPropertiesExternalStatusEnum
const (
OlvmStorageDomainPropertiesExternalStatusError OlvmStorageDomainPropertiesExternalStatusEnum = "ERROR"
OlvmStorageDomainPropertiesExternalStatusFailure OlvmStorageDomainPropertiesExternalStatusEnum = "FAILURE"
OlvmStorageDomainPropertiesExternalStatusInfo OlvmStorageDomainPropertiesExternalStatusEnum = "INFO"
OlvmStorageDomainPropertiesExternalStatusOk OlvmStorageDomainPropertiesExternalStatusEnum = "OK"
OlvmStorageDomainPropertiesExternalStatusWarning OlvmStorageDomainPropertiesExternalStatusEnum = "WARNING"
)
func GetMappingOlvmStorageDomainPropertiesExternalStatusEnum(val string) (OlvmStorageDomainPropertiesExternalStatusEnum, bool)
GetMappingOlvmStorageDomainPropertiesExternalStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmStorageDomainPropertiesExternalStatusEnumValues() []OlvmStorageDomainPropertiesExternalStatusEnum
GetOlvmStorageDomainPropertiesExternalStatusEnumValues Enumerates the set of values for OlvmStorageDomainPropertiesExternalStatusEnum
OlvmStorageDomainPropertiesStorageDomainStatusEnum Enum with underlying type: string
type OlvmStorageDomainPropertiesStorageDomainStatusEnum string
Set of constants representing the allowable values for OlvmStorageDomainPropertiesStorageDomainStatusEnum
const (
OlvmStorageDomainPropertiesStorageDomainStatusActivating OlvmStorageDomainPropertiesStorageDomainStatusEnum = "ACTIVATING"
OlvmStorageDomainPropertiesStorageDomainStatusActive OlvmStorageDomainPropertiesStorageDomainStatusEnum = "ACTIVE"
OlvmStorageDomainPropertiesStorageDomainStatusDetaching OlvmStorageDomainPropertiesStorageDomainStatusEnum = "DETACHING"
OlvmStorageDomainPropertiesStorageDomainStatusInactive OlvmStorageDomainPropertiesStorageDomainStatusEnum = "INACTIVE"
OlvmStorageDomainPropertiesStorageDomainStatusLocked OlvmStorageDomainPropertiesStorageDomainStatusEnum = "LOCKED"
OlvmStorageDomainPropertiesStorageDomainStatusMaintenance OlvmStorageDomainPropertiesStorageDomainStatusEnum = "MAINTENANCE"
OlvmStorageDomainPropertiesStorageDomainStatusMixed OlvmStorageDomainPropertiesStorageDomainStatusEnum = "MIXED"
OlvmStorageDomainPropertiesStorageDomainStatusPreparingForMaintenance OlvmStorageDomainPropertiesStorageDomainStatusEnum = "PREPARING_FOR_MAINTENANCE"
OlvmStorageDomainPropertiesStorageDomainStatusUnattached OlvmStorageDomainPropertiesStorageDomainStatusEnum = "UNATTACHED"
OlvmStorageDomainPropertiesStorageDomainStatusUnknown OlvmStorageDomainPropertiesStorageDomainStatusEnum = "UNKNOWN"
)
func GetMappingOlvmStorageDomainPropertiesStorageDomainStatusEnum(val string) (OlvmStorageDomainPropertiesStorageDomainStatusEnum, bool)
GetMappingOlvmStorageDomainPropertiesStorageDomainStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmStorageDomainPropertiesStorageDomainStatusEnumValues() []OlvmStorageDomainPropertiesStorageDomainStatusEnum
GetOlvmStorageDomainPropertiesStorageDomainStatusEnumValues Enumerates the set of values for OlvmStorageDomainPropertiesStorageDomainStatusEnum
OlvmStorageDomainPropertiesStorageDomainTypeEnum Enum with underlying type: string
type OlvmStorageDomainPropertiesStorageDomainTypeEnum string
Set of constants representing the allowable values for OlvmStorageDomainPropertiesStorageDomainTypeEnum
const (
OlvmStorageDomainPropertiesStorageDomainTypeData OlvmStorageDomainPropertiesStorageDomainTypeEnum = "DATA"
OlvmStorageDomainPropertiesStorageDomainTypeExport OlvmStorageDomainPropertiesStorageDomainTypeEnum = "EXPORT"
OlvmStorageDomainPropertiesStorageDomainTypeImage OlvmStorageDomainPropertiesStorageDomainTypeEnum = "IMAGE"
OlvmStorageDomainPropertiesStorageDomainTypeIso OlvmStorageDomainPropertiesStorageDomainTypeEnum = "ISO"
OlvmStorageDomainPropertiesStorageDomainTypeManagedBlockStorage OlvmStorageDomainPropertiesStorageDomainTypeEnum = "MANAGED_BLOCK_STORAGE"
OlvmStorageDomainPropertiesStorageDomainTypeVolume OlvmStorageDomainPropertiesStorageDomainTypeEnum = "VOLUME"
)
func GetMappingOlvmStorageDomainPropertiesStorageDomainTypeEnum(val string) (OlvmStorageDomainPropertiesStorageDomainTypeEnum, bool)
GetMappingOlvmStorageDomainPropertiesStorageDomainTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmStorageDomainPropertiesStorageDomainTypeEnumValues() []OlvmStorageDomainPropertiesStorageDomainTypeEnum
GetOlvmStorageDomainPropertiesStorageDomainTypeEnumValues Enumerates the set of values for OlvmStorageDomainPropertiesStorageDomainTypeEnum
OlvmStorageDomainPropertiesStorageFormatEnum Enum with underlying type: string
type OlvmStorageDomainPropertiesStorageFormatEnum string
Set of constants representing the allowable values for OlvmStorageDomainPropertiesStorageFormatEnum
const (
OlvmStorageDomainPropertiesStorageFormatV1 OlvmStorageDomainPropertiesStorageFormatEnum = "V1"
OlvmStorageDomainPropertiesStorageFormatV2 OlvmStorageDomainPropertiesStorageFormatEnum = "V2"
OlvmStorageDomainPropertiesStorageFormatV3 OlvmStorageDomainPropertiesStorageFormatEnum = "V3"
OlvmStorageDomainPropertiesStorageFormatV4 OlvmStorageDomainPropertiesStorageFormatEnum = "V4"
OlvmStorageDomainPropertiesStorageFormatV5 OlvmStorageDomainPropertiesStorageFormatEnum = "V5"
)
func GetMappingOlvmStorageDomainPropertiesStorageFormatEnum(val string) (OlvmStorageDomainPropertiesStorageFormatEnum, bool)
GetMappingOlvmStorageDomainPropertiesStorageFormatEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmStorageDomainPropertiesStorageFormatEnumValues() []OlvmStorageDomainPropertiesStorageFormatEnum
GetOlvmStorageDomainPropertiesStorageFormatEnumValues Enumerates the set of values for OlvmStorageDomainPropertiesStorageFormatEnum
OlvmTargetAsset Description of the VM target asset.
type OlvmTargetAsset struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// OCID of the associated migration plan.
MigrationPlanId *string `mandatory:"true" json:"migrationPlanId"`
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"true" json:"isExcludedFromExecution"`
EstimatedCost *CostEstimation `mandatory:"true" json:"estimatedCost"`
// The time when the target asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the target asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// The time when the assessment was done. An RFC3339 formatted datetime string.
TimeAssessed *common.SDKTime `mandatory:"true" json:"timeAssessed"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// Compartment identifier
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// Created resource identifier
CreatedResourceId *string `mandatory:"false" json:"createdResourceId"`
// Messages about the compatibility issues.
CompatibilityMessages []CompatibilityMessage `mandatory:"false" json:"compatibilityMessages"`
MigrationAsset *MigrationAsset `mandatory:"false" json:"migrationAsset"`
// Microsoft license for VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
// The current state of the target asset.
LifecycleState TargetAssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
}
func (m OlvmTargetAsset) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m OlvmTargetAsset) GetCompatibilityMessages() []CompatibilityMessage
GetCompatibilityMessages returns CompatibilityMessages
func (m OlvmTargetAsset) GetCreatedResourceId() *string
GetCreatedResourceId returns CreatedResourceId
func (m OlvmTargetAsset) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m OlvmTargetAsset) GetEstimatedCost() *CostEstimation
GetEstimatedCost returns EstimatedCost
func (m OlvmTargetAsset) GetId() *string
GetId returns Id
func (m OlvmTargetAsset) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m OlvmTargetAsset) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m OlvmTargetAsset) GetLifecycleState() TargetAssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m OlvmTargetAsset) GetMigrationAsset() *MigrationAsset
GetMigrationAsset returns MigrationAsset
func (m OlvmTargetAsset) GetMigrationPlanId() *string
GetMigrationPlanId returns MigrationPlanId
func (m OlvmTargetAsset) GetTimeAssessed() *common.SDKTime
GetTimeAssessed returns TimeAssessed
func (m OlvmTargetAsset) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m OlvmTargetAsset) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m OlvmTargetAsset) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m OlvmTargetAsset) String() string
func (m OlvmTargetAsset) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmTargetAssetSummary Summary of the VM target asset.
type OlvmTargetAssetSummary struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// OCID of the associated migration plan.
MigrationPlanId *string `mandatory:"true" json:"migrationPlanId"`
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"true" json:"isExcludedFromExecution"`
EstimatedCost *CostEstimation `mandatory:"true" json:"estimatedCost"`
// The time when the target asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the target asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// The time when the assessment was done. An RFC3339 formatted datetime string.
TimeAssessed *common.SDKTime `mandatory:"true" json:"timeAssessed"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Compartment identifier
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// Created resource identifier
CreatedResourceId *string `mandatory:"false" json:"createdResourceId"`
// Messages about compatibility issues.
CompatibilityMessages []CompatibilityMessage `mandatory:"false" json:"compatibilityMessages"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
MigrationAsset *MigrationAssetSummary `mandatory:"false" json:"migrationAsset"`
// Microsoft license for VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
// The current state of the target asset.
LifecycleState TargetAssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
}
func (m OlvmTargetAssetSummary) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m OlvmTargetAssetSummary) GetCompatibilityMessages() []CompatibilityMessage
GetCompatibilityMessages returns CompatibilityMessages
func (m OlvmTargetAssetSummary) GetCreatedResourceId() *string
GetCreatedResourceId returns CreatedResourceId
func (m OlvmTargetAssetSummary) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m OlvmTargetAssetSummary) GetEstimatedCost() *CostEstimation
GetEstimatedCost returns EstimatedCost
func (m OlvmTargetAssetSummary) GetId() *string
GetId returns Id
func (m OlvmTargetAssetSummary) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m OlvmTargetAssetSummary) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m OlvmTargetAssetSummary) GetLifecycleState() TargetAssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m OlvmTargetAssetSummary) GetMigrationAsset() *MigrationAssetSummary
GetMigrationAsset returns MigrationAsset
func (m OlvmTargetAssetSummary) GetMigrationPlanId() *string
GetMigrationPlanId returns MigrationPlanId
func (m OlvmTargetAssetSummary) GetTimeAssessed() *common.SDKTime
GetTimeAssessed returns TimeAssessed
func (m OlvmTargetAssetSummary) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m OlvmTargetAssetSummary) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m OlvmTargetAssetSummary) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m OlvmTargetAssetSummary) String() string
func (m OlvmTargetAssetSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmTargetEnvironment OLVM target enviroment
type OlvmTargetEnvironment struct {
// Inventory asset id of the olvm cluster
ClusterAssetId *string `mandatory:"true" json:"clusterAssetId"`
// Inventory asset Id of the vnic profile
VnicProfileAssetId *string `mandatory:"true" json:"vnicProfileAssetId"`
// Target compartment identifier
TargetCompartmentId *string `mandatory:"false" json:"targetCompartmentId"`
// OLVM OS type to inventory asset id of the template
OlvmTemplates map[string]string `mandatory:"false" json:"olvmTemplates"`
// Preferred VM shape type provided by the customer.
PreferredShapeType VmTargetAssetPreferredShapeTypeEnum `mandatory:"false" json:"preferredShapeType,omitempty"`
}
func (m OlvmTargetEnvironment) GetTargetCompartmentId() *string
GetTargetCompartmentId returns TargetCompartmentId
func (m OlvmTargetEnvironment) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m OlvmTargetEnvironment) String() string
func (m OlvmTargetEnvironment) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmTemplateAssetDetails OLVM Template type of asset.
type OlvmTemplateAssetDetails struct {
OlvmTemplate *OlvmTemplateProperties `mandatory:"true" json:"olvmTemplate"`
}
func (m OlvmTemplateAssetDetails) String() string
func (m OlvmTemplateAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmTemplateProperties OLVM Template properties.
type OlvmTemplateProperties struct {
// Name of the property.
TemplateName *string `mandatory:"true" json:"templateName"`
// Specifies if and how the auto CPU and NUMA configuration is applied.
AutoPinningPolicy OlvmTemplatePropertiesAutoPinningPolicyEnum `mandatory:"false" json:"autoPinningPolicy,omitempty"`
Bios *OlvmBios `mandatory:"false" json:"bios"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
Console *OlvmConsole `mandatory:"false" json:"console"`
Cpu *OlvmCpu `mandatory:"false" json:"cpu"`
// Type representing the CPU and NUMA pinning policy.
CpuPinningPolicy OlvmTemplatePropertiesCpuPinningPolicyEnum `mandatory:"false" json:"cpuPinningPolicy,omitempty"`
// Number of CPU Shares
CpuShares *int `mandatory:"false" json:"cpuShares"`
// Creation time.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
CustomCompatibilityVersion *OlvmVersion `mandatory:"false" json:"customCompatibilityVersion"`
// Custom CPU model
CustomCpuModel *string `mandatory:"false" json:"customCpuModel"`
// Custom Emulated machine
CustomEmulatedMachine *string `mandatory:"false" json:"customEmulatedMachine"`
// Custom properties applied to the vNIC profile.
CustomProperties []OlvmCustomProperty `mandatory:"false" json:"customProperties"`
// If true, the virtual machine cannot be deleted.
IsDeleteProtected *bool `mandatory:"false" json:"isDeleteProtected"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
Display *OlvmDisplay `mandatory:"false" json:"display"`
Domain *OlvmDomain `mandatory:"false" json:"domain"`
HighAvailability *OlvmHighAvailability `mandatory:"false" json:"highAvailability"`
Initialization *OlvmInitialization `mandatory:"false" json:"initialization"`
// For performance tuning of IO threading.
IoThreads *int `mandatory:"false" json:"ioThreads"`
LargeIcon *OlvmIcon `mandatory:"false" json:"largeIcon"`
StorageDomainLease *OlvmStorageDomainProperties `mandatory:"false" json:"storageDomainLease"`
// The virtual machine???s memory, in bytes.
MemoryInBytes *int64 `mandatory:"false" json:"memoryInBytes"`
MemoryPolicy *OlvmMemoryPolicy `mandatory:"false" json:"memoryPolicy"`
MigrationPolicy *OlvmMigrationOptions `mandatory:"false" json:"migrationPolicy"`
// Maximum time the virtual machine can be non responsive during its live migration to another host in ms.
MigrationDowntimeInMs *int `mandatory:"false" json:"migrationDowntimeInMs"`
// If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus.
IsMultiQueuesEnabled *bool `mandatory:"false" json:"isMultiQueuesEnabled"`
// The origin of this virtual machine.
Origin *string `mandatory:"false" json:"origin"`
Os *OlvmOperatingSystem `mandatory:"false" json:"os"`
PlacementPolicy *OlvmVmPlacementPolicy `mandatory:"false" json:"placementPolicy"`
SerialNumber *OlvmSerialNumber `mandatory:"false" json:"serialNumber"`
SmallIcon *OlvmIcon `mandatory:"false" json:"smallIcon"`
// If true, the sound card is added to the virtual machine.
IsSoundcardEnabled *bool `mandatory:"false" json:"isSoundcardEnabled"`
// If true, the virtual machine will be initially in 'paused' state after start.
IsStartPaused *bool `mandatory:"false" json:"isStartPaused"`
// If true, the virtual machine is stateless - it???s state (disks) are rolled-back after shutdown.
IsStateless *bool `mandatory:"false" json:"isStateless"`
// The status of the template.
Status OlvmTemplatePropertiesStatusEnum `mandatory:"false" json:"status,omitempty"`
// Determines how the virtual machine will be resumed after storage error.
StorageErrorResumeBehavior OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum `mandatory:"false" json:"storageErrorResumeBehavior,omitempty"`
// Name of time zone.
Timezone *string `mandatory:"false" json:"timezone"`
// If true, a TPM device is added to the virtual machine.
IsTpmEnabled *bool `mandatory:"false" json:"isTpmEnabled"`
// If true, the network data transfer will be encrypted during virtual machine live migration.
IsTunnelMigration *bool `mandatory:"false" json:"isTunnelMigration"`
Type *OlvmVmType `mandatory:"false" json:"type"`
Usb *OlvmUsb `mandatory:"false" json:"usb"`
Version *OlvmTemplateVersion `mandatory:"false" json:"version"`
// Indicates if Virtio SCSI Support is enabled.
IsVirtioScsiEnabled *bool `mandatory:"false" json:"isVirtioScsiEnabled"`
// Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info
VirtioScsiMultiQueues *int `mandatory:"false" json:"virtioScsiMultiQueues"`
// If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues
IsVirtioScsiMultiQueuesEnabled *bool `mandatory:"false" json:"isVirtioScsiMultiQueuesEnabled"`
Vm *OlvmVirtualMachine `mandatory:"false" json:"vm"`
}
func (m OlvmTemplateProperties) String() string
func (m OlvmTemplateProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmTemplatePropertiesAutoPinningPolicyEnum Enum with underlying type: string
type OlvmTemplatePropertiesAutoPinningPolicyEnum string
Set of constants representing the allowable values for OlvmTemplatePropertiesAutoPinningPolicyEnum
const (
OlvmTemplatePropertiesAutoPinningPolicyAdjust OlvmTemplatePropertiesAutoPinningPolicyEnum = "ADJUST"
OlvmTemplatePropertiesAutoPinningPolicyDisabled OlvmTemplatePropertiesAutoPinningPolicyEnum = "DISABLED"
OlvmTemplatePropertiesAutoPinningPolicyExisting OlvmTemplatePropertiesAutoPinningPolicyEnum = "EXISTING"
)
func GetMappingOlvmTemplatePropertiesAutoPinningPolicyEnum(val string) (OlvmTemplatePropertiesAutoPinningPolicyEnum, bool)
GetMappingOlvmTemplatePropertiesAutoPinningPolicyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmTemplatePropertiesAutoPinningPolicyEnumValues() []OlvmTemplatePropertiesAutoPinningPolicyEnum
GetOlvmTemplatePropertiesAutoPinningPolicyEnumValues Enumerates the set of values for OlvmTemplatePropertiesAutoPinningPolicyEnum
OlvmTemplatePropertiesCpuPinningPolicyEnum Enum with underlying type: string
type OlvmTemplatePropertiesCpuPinningPolicyEnum string
Set of constants representing the allowable values for OlvmTemplatePropertiesCpuPinningPolicyEnum
const (
OlvmTemplatePropertiesCpuPinningPolicyDedicated OlvmTemplatePropertiesCpuPinningPolicyEnum = "DEDICATED"
OlvmTemplatePropertiesCpuPinningPolicyIsolatedThreads OlvmTemplatePropertiesCpuPinningPolicyEnum = "ISOLATED_THREADS"
OlvmTemplatePropertiesCpuPinningPolicyManual OlvmTemplatePropertiesCpuPinningPolicyEnum = "MANUAL"
OlvmTemplatePropertiesCpuPinningPolicyNone OlvmTemplatePropertiesCpuPinningPolicyEnum = "NONE"
OlvmTemplatePropertiesCpuPinningPolicyResizeAndPinNuma OlvmTemplatePropertiesCpuPinningPolicyEnum = "RESIZE_AND_PIN_NUMA"
)
func GetMappingOlvmTemplatePropertiesCpuPinningPolicyEnum(val string) (OlvmTemplatePropertiesCpuPinningPolicyEnum, bool)
GetMappingOlvmTemplatePropertiesCpuPinningPolicyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmTemplatePropertiesCpuPinningPolicyEnumValues() []OlvmTemplatePropertiesCpuPinningPolicyEnum
GetOlvmTemplatePropertiesCpuPinningPolicyEnumValues Enumerates the set of values for OlvmTemplatePropertiesCpuPinningPolicyEnum
OlvmTemplatePropertiesStatusEnum Enum with underlying type: string
type OlvmTemplatePropertiesStatusEnum string
Set of constants representing the allowable values for OlvmTemplatePropertiesStatusEnum
const (
OlvmTemplatePropertiesStatusIllegal OlvmTemplatePropertiesStatusEnum = "ILLEGAL"
OlvmTemplatePropertiesStatusLocked OlvmTemplatePropertiesStatusEnum = "LOCKED"
OlvmTemplatePropertiesStatusOk OlvmTemplatePropertiesStatusEnum = "OK"
)
func GetMappingOlvmTemplatePropertiesStatusEnum(val string) (OlvmTemplatePropertiesStatusEnum, bool)
GetMappingOlvmTemplatePropertiesStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmTemplatePropertiesStatusEnumValues() []OlvmTemplatePropertiesStatusEnum
GetOlvmTemplatePropertiesStatusEnumValues Enumerates the set of values for OlvmTemplatePropertiesStatusEnum
OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum Enum with underlying type: string
type OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum string
Set of constants representing the allowable values for OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum
const (
OlvmTemplatePropertiesStorageErrorResumeBehaviorAutoResume OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum = "AUTO_RESUME"
OlvmTemplatePropertiesStorageErrorResumeBehaviorKill OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum = "KILL"
OlvmTemplatePropertiesStorageErrorResumeBehaviorLeavePaused OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum = "LEAVE_PAUSED"
)
func GetMappingOlvmTemplatePropertiesStorageErrorResumeBehaviorEnum(val string) (OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum, bool)
GetMappingOlvmTemplatePropertiesStorageErrorResumeBehaviorEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmTemplatePropertiesStorageErrorResumeBehaviorEnumValues() []OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum
GetOlvmTemplatePropertiesStorageErrorResumeBehaviorEnumValues Enumerates the set of values for OlvmTemplatePropertiesStorageErrorResumeBehaviorEnum
OlvmTemplateVersion Indicates whether this is the base version or a sub-version of another template.
type OlvmTemplateVersion struct {
// The name of this version.
VersionName *string `mandatory:"false" json:"versionName"`
// The index of this version in the versions hierarchy of the template.
VersionNumber *int `mandatory:"false" json:"versionNumber"`
}
func (m OlvmTemplateVersion) String() string
func (m OlvmTemplateVersion) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmUsb Configuration of USB devices for this virtual machine (count, type).
type OlvmUsb struct {
// Determines whether the USB device should be included or not.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
// Type of USB device redirection
UsbType OlvmUsbUsbTypeEnum `mandatory:"false" json:"usbType,omitempty"`
}
func (m OlvmUsb) String() string
func (m OlvmUsb) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmUsbUsbTypeEnum Enum with underlying type: string
type OlvmUsbUsbTypeEnum string
Set of constants representing the allowable values for OlvmUsbUsbTypeEnum
const (
OlvmUsbUsbTypeLegacy OlvmUsbUsbTypeEnum = "LEGACY"
OlvmUsbUsbTypeNative OlvmUsbUsbTypeEnum = "NATIVE"
)
func GetMappingOlvmUsbUsbTypeEnum(val string) (OlvmUsbUsbTypeEnum, bool)
GetMappingOlvmUsbUsbTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmUsbUsbTypeEnumValues() []OlvmUsbUsbTypeEnum
GetOlvmUsbUsbTypeEnumValues Enumerates the set of values for OlvmUsbUsbTypeEnum
OlvmVersion Version in OLVM
type OlvmVersion struct {
// Build number of this version
Build *int `mandatory:"false" json:"build"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
// Full version
FullVersion *string `mandatory:"false" json:"fullVersion"`
// A unique identifier
Id *string `mandatory:"false" json:"id"`
// Major version
Major *int `mandatory:"false" json:"major"`
// Minor version
Minor *int `mandatory:"false" json:"minor"`
// A human-readable name in plain text
Name *string `mandatory:"false" json:"name"`
// Revision number
Revision *int `mandatory:"false" json:"revision"`
}
func (m OlvmVersion) String() string
func (m OlvmVersion) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVirtualMachine Represents a virtual machine.
type OlvmVirtualMachine struct {
// Specifies if and how the auto CPU and NUMA configuration is applied.
AutoPinningPolicy OlvmVirtualMachineAutoPinningPolicyEnum `mandatory:"false" json:"autoPinningPolicy,omitempty"`
Bios *OlvmBios `mandatory:"false" json:"bios"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
Console *OlvmConsole `mandatory:"false" json:"console"`
Cpu *OlvmCpu `mandatory:"false" json:"cpu"`
// Type representing the CPU and NUMA pinning policy.
CpuPinningPolicy OlvmVirtualMachineCpuPinningPolicyEnum `mandatory:"false" json:"cpuPinningPolicy,omitempty"`
// Number of CPU Shares
CpuShares *int `mandatory:"false" json:"cpuShares"`
// Creation time.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
CustomCompatibilityVersion *OlvmVersion `mandatory:"false" json:"customCompatibilityVersion"`
// Custom CPU model
CustomCpuModel *string `mandatory:"false" json:"customCpuModel"`
// Custom Emulated machine
CustomEmulatedMachine *string `mandatory:"false" json:"customEmulatedMachine"`
// Custom properties applied to the vNIC profile.
CustomProperties []OlvmCustomProperty `mandatory:"false" json:"customProperties"`
// If true, the virtual machine cannot be deleted.
IsDeleteProtected *bool `mandatory:"false" json:"isDeleteProtected"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
Display *OlvmDisplay `mandatory:"false" json:"display"`
Domain *OlvmDomain `mandatory:"false" json:"domain"`
// Fully qualified domain name of the virtual machine.
Fqdn *string `mandatory:"false" json:"fqdn"`
GuestOperatingSystem *OlvmGuestOperatingSystem `mandatory:"false" json:"guestOperatingSystem"`
// What time zone is used by the virtual machine (as returned by guest agent).
GuestTimeZone *string `mandatory:"false" json:"guestTimeZone"`
// Indicates whether the virtual machine has snapshots with disks in ILLEGAL state.
IsContainIllegalImages *bool `mandatory:"false" json:"isContainIllegalImages"`
HighAvailability *OlvmHighAvailability `mandatory:"false" json:"highAvailability"`
Initialization *OlvmInitialization `mandatory:"false" json:"initialization"`
// For performance tuning of IO threading.
IoThreads *int `mandatory:"false" json:"ioThreads"`
LargeIcon *OlvmIcon `mandatory:"false" json:"largeIcon"`
StorageDomainLease *OlvmStorageDomainProperties `mandatory:"false" json:"storageDomainLease"`
// The virtual machine???s memory, in bytes.
MemoryInBytes *int64 `mandatory:"false" json:"memoryInBytes"`
MemoryPolicy *OlvmMemoryPolicy `mandatory:"false" json:"memoryPolicy"`
MigrationPolicy *OlvmMigrationOptions `mandatory:"false" json:"migrationPolicy"`
// Maximum time the virtual machine can be non responsive during its live migration to another host in ms.
MigrationDowntimeInMs *int `mandatory:"false" json:"migrationDowntimeInMs"`
// If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus.
IsMultiQueuesEnabled *bool `mandatory:"false" json:"isMultiQueuesEnabled"`
// Name of the property.
VirtualMachineName *string `mandatory:"false" json:"virtualMachineName"`
// Indicates if virtual machine configuration has been changed and requires restart of the virtual machine.
IsNextRunConfigurationExists *bool `mandatory:"false" json:"isNextRunConfigurationExists"`
// How the NUMA topology is applied.
NumaTuneMode OlvmVirtualMachineNumaTuneModeEnum `mandatory:"false" json:"numaTuneMode,omitempty"`
// The origin of this virtual machine.
Origin *string `mandatory:"false" json:"origin"`
Os *OlvmOperatingSystem `mandatory:"false" json:"os"`
PlacementPolicy *OlvmVmPlacementPolicy `mandatory:"false" json:"placementPolicy"`
// If true, the virtual machine has been started using the run once command, meaning it???s configuration might differ from the stored one for the purpose of this single run.
IsRunOnce *bool `mandatory:"false" json:"isRunOnce"`
SerialNumber *OlvmSerialNumber `mandatory:"false" json:"serialNumber"`
SmallIcon *OlvmIcon `mandatory:"false" json:"smallIcon"`
// If true, the sound card is added to the virtual machine.
IsSoundcardEnabled *bool `mandatory:"false" json:"isSoundcardEnabled"`
// If true, the virtual machine will be initially in 'paused' state after start.
IsStartPaused *bool `mandatory:"false" json:"isStartPaused"`
// The date in which the virtual machine was started.
TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"`
// If true, the virtual machine is stateless - it???s state (disks) are rolled-back after shutdown.
IsStateless *bool `mandatory:"false" json:"isStateless"`
Status *OlvmVmStatus `mandatory:"false" json:"status"`
// Human readable detail of current status.
StatusDetail *string `mandatory:"false" json:"statusDetail"`
// The reason the virtual machine was stopped.
StopReason *string `mandatory:"false" json:"stopReason"`
// The date in which the virtual machine was stopped.
TimeStop *common.SDKTime `mandatory:"false" json:"timeStop"`
// Determines how the virtual machine will be resumed after storage error.
StorageErrorResumeBehavior OlvmVirtualMachineStorageErrorResumeBehaviorEnum `mandatory:"false" json:"storageErrorResumeBehavior,omitempty"`
// Name of time zone.
Timezone *string `mandatory:"false" json:"timezone"`
// If true, a TPM device is added to the virtual machine.
IsTpmEnabled *bool `mandatory:"false" json:"isTpmEnabled"`
// If true, the network data transfer will be encrypted during virtual machine live migration.
IsTunnelMigration *bool `mandatory:"false" json:"isTunnelMigration"`
Type *OlvmVmType `mandatory:"false" json:"type"`
Usb *OlvmUsb `mandatory:"false" json:"usb"`
// If true, the virtual machine is reconfigured to the latest version of it???s template when it is started.
IsUseLatestTemplateVersion *bool `mandatory:"false" json:"isUseLatestTemplateVersion"`
// Indicates if Virtio SCSI Support is enabled.
IsVirtioScsiEnabled *bool `mandatory:"false" json:"isVirtioScsiEnabled"`
// Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info
VirtioScsiMultiQueues *int `mandatory:"false" json:"virtioScsiMultiQueues"`
// If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues
IsVirtioScsiMultiQueuesEnabled *bool `mandatory:"false" json:"isVirtioScsiMultiQueuesEnabled"`
}
func (m OlvmVirtualMachine) String() string
func (m OlvmVirtualMachine) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVirtualMachineAutoPinningPolicyEnum Enum with underlying type: string
type OlvmVirtualMachineAutoPinningPolicyEnum string
Set of constants representing the allowable values for OlvmVirtualMachineAutoPinningPolicyEnum
const (
OlvmVirtualMachineAutoPinningPolicyAdjust OlvmVirtualMachineAutoPinningPolicyEnum = "ADJUST"
OlvmVirtualMachineAutoPinningPolicyDisabled OlvmVirtualMachineAutoPinningPolicyEnum = "DISABLED"
OlvmVirtualMachineAutoPinningPolicyExisting OlvmVirtualMachineAutoPinningPolicyEnum = "EXISTING"
)
func GetMappingOlvmVirtualMachineAutoPinningPolicyEnum(val string) (OlvmVirtualMachineAutoPinningPolicyEnum, bool)
GetMappingOlvmVirtualMachineAutoPinningPolicyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVirtualMachineAutoPinningPolicyEnumValues() []OlvmVirtualMachineAutoPinningPolicyEnum
GetOlvmVirtualMachineAutoPinningPolicyEnumValues Enumerates the set of values for OlvmVirtualMachineAutoPinningPolicyEnum
OlvmVirtualMachineCpuPinningPolicyEnum Enum with underlying type: string
type OlvmVirtualMachineCpuPinningPolicyEnum string
Set of constants representing the allowable values for OlvmVirtualMachineCpuPinningPolicyEnum
const (
OlvmVirtualMachineCpuPinningPolicyDedicated OlvmVirtualMachineCpuPinningPolicyEnum = "DEDICATED"
OlvmVirtualMachineCpuPinningPolicyIsolatedThreads OlvmVirtualMachineCpuPinningPolicyEnum = "ISOLATED_THREADS"
OlvmVirtualMachineCpuPinningPolicyManual OlvmVirtualMachineCpuPinningPolicyEnum = "MANUAL"
OlvmVirtualMachineCpuPinningPolicyNone OlvmVirtualMachineCpuPinningPolicyEnum = "NONE"
OlvmVirtualMachineCpuPinningPolicyResizeAndPinNuma OlvmVirtualMachineCpuPinningPolicyEnum = "RESIZE_AND_PIN_NUMA"
)
func GetMappingOlvmVirtualMachineCpuPinningPolicyEnum(val string) (OlvmVirtualMachineCpuPinningPolicyEnum, bool)
GetMappingOlvmVirtualMachineCpuPinningPolicyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVirtualMachineCpuPinningPolicyEnumValues() []OlvmVirtualMachineCpuPinningPolicyEnum
GetOlvmVirtualMachineCpuPinningPolicyEnumValues Enumerates the set of values for OlvmVirtualMachineCpuPinningPolicyEnum
OlvmVirtualMachineNumaTuneModeEnum Enum with underlying type: string
type OlvmVirtualMachineNumaTuneModeEnum string
Set of constants representing the allowable values for OlvmVirtualMachineNumaTuneModeEnum
const (
OlvmVirtualMachineNumaTuneModeInterleave OlvmVirtualMachineNumaTuneModeEnum = "INTERLEAVE"
OlvmVirtualMachineNumaTuneModePreferred OlvmVirtualMachineNumaTuneModeEnum = "PREFERRED"
OlvmVirtualMachineNumaTuneModeStrict OlvmVirtualMachineNumaTuneModeEnum = "STRICT"
)
func GetMappingOlvmVirtualMachineNumaTuneModeEnum(val string) (OlvmVirtualMachineNumaTuneModeEnum, bool)
GetMappingOlvmVirtualMachineNumaTuneModeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVirtualMachineNumaTuneModeEnumValues() []OlvmVirtualMachineNumaTuneModeEnum
GetOlvmVirtualMachineNumaTuneModeEnumValues Enumerates the set of values for OlvmVirtualMachineNumaTuneModeEnum
OlvmVirtualMachineStorageErrorResumeBehaviorEnum Enum with underlying type: string
type OlvmVirtualMachineStorageErrorResumeBehaviorEnum string
Set of constants representing the allowable values for OlvmVirtualMachineStorageErrorResumeBehaviorEnum
const (
OlvmVirtualMachineStorageErrorResumeBehaviorAutoResume OlvmVirtualMachineStorageErrorResumeBehaviorEnum = "AUTO_RESUME"
OlvmVirtualMachineStorageErrorResumeBehaviorKill OlvmVirtualMachineStorageErrorResumeBehaviorEnum = "KILL"
OlvmVirtualMachineStorageErrorResumeBehaviorLeavePaused OlvmVirtualMachineStorageErrorResumeBehaviorEnum = "LEAVE_PAUSED"
)
func GetMappingOlvmVirtualMachineStorageErrorResumeBehaviorEnum(val string) (OlvmVirtualMachineStorageErrorResumeBehaviorEnum, bool)
GetMappingOlvmVirtualMachineStorageErrorResumeBehaviorEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVirtualMachineStorageErrorResumeBehaviorEnumValues() []OlvmVirtualMachineStorageErrorResumeBehaviorEnum
GetOlvmVirtualMachineStorageErrorResumeBehaviorEnumValues Enumerates the set of values for OlvmVirtualMachineStorageErrorResumeBehaviorEnum
OlvmVmPlacementPolicy The configuration of the virtual machine???s placement policy.
type OlvmVmPlacementPolicy struct {
// Affinity of the virtual machine.
VmAffinity OlvmVmPlacementPolicyVmAffinityEnum `mandatory:"false" json:"vmAffinity,omitempty"`
// List of hosts.
Hosts []OlvmHost `mandatory:"false" json:"hosts"`
}
func (m OlvmVmPlacementPolicy) String() string
func (m OlvmVmPlacementPolicy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVmPlacementPolicyVmAffinityEnum Enum with underlying type: string
type OlvmVmPlacementPolicyVmAffinityEnum string
Set of constants representing the allowable values for OlvmVmPlacementPolicyVmAffinityEnum
const (
OlvmVmPlacementPolicyVmAffinityMigratable OlvmVmPlacementPolicyVmAffinityEnum = "MIGRATABLE"
OlvmVmPlacementPolicyVmAffinityPinned OlvmVmPlacementPolicyVmAffinityEnum = "PINNED"
OlvmVmPlacementPolicyVmAffinityUserMigratable OlvmVmPlacementPolicyVmAffinityEnum = "USER_MIGRATABLE"
)
func GetMappingOlvmVmPlacementPolicyVmAffinityEnum(val string) (OlvmVmPlacementPolicyVmAffinityEnum, bool)
GetMappingOlvmVmPlacementPolicyVmAffinityEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVmPlacementPolicyVmAffinityEnumValues() []OlvmVmPlacementPolicyVmAffinityEnum
GetOlvmVmPlacementPolicyVmAffinityEnumValues Enumerates the set of values for OlvmVmPlacementPolicyVmAffinityEnum
OlvmVmStatus The current status of the virtual machine.
type OlvmVmStatus struct {
// Type representing a status of a virtual machine.
Status OlvmVmStatusStatusEnum `mandatory:"false" json:"status,omitempty"`
}
func (m OlvmVmStatus) String() string
func (m OlvmVmStatus) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVmStatusStatusEnum Enum with underlying type: string
type OlvmVmStatusStatusEnum string
Set of constants representing the allowable values for OlvmVmStatusStatusEnum
const (
OlvmVmStatusStatusDown OlvmVmStatusStatusEnum = "DOWN"
OlvmVmStatusStatusImageLocked OlvmVmStatusStatusEnum = "IMAGE_LOCKED"
OlvmVmStatusStatusMigrating OlvmVmStatusStatusEnum = "MIGRATING"
OlvmVmStatusStatusNotResponding OlvmVmStatusStatusEnum = "NOT_RESPONDING"
OlvmVmStatusStatusPaused OlvmVmStatusStatusEnum = "PAUSED"
OlvmVmStatusStatusPoweringDown OlvmVmStatusStatusEnum = "POWERING_DOWN"
OlvmVmStatusStatusPoweringUp OlvmVmStatusStatusEnum = "POWERING_UP"
OlvmVmStatusStatusRebootInProgress OlvmVmStatusStatusEnum = "REBOOT_IN_PROGRESS"
OlvmVmStatusStatusRestoringState OlvmVmStatusStatusEnum = "RESTORING_STATE"
OlvmVmStatusStatusSavingState OlvmVmStatusStatusEnum = "SAVING_STATE"
OlvmVmStatusStatusSuspended OlvmVmStatusStatusEnum = "SUSPENDED"
OlvmVmStatusStatusUnassigned OlvmVmStatusStatusEnum = "UNASSIGNED"
OlvmVmStatusStatusUnknown OlvmVmStatusStatusEnum = "UNKNOWN"
OlvmVmStatusStatusUp OlvmVmStatusStatusEnum = "UP"
OlvmVmStatusStatusWaitForLaunch OlvmVmStatusStatusEnum = "WAIT_FOR_LAUNCH"
)
func GetMappingOlvmVmStatusStatusEnum(val string) (OlvmVmStatusStatusEnum, bool)
GetMappingOlvmVmStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVmStatusStatusEnumValues() []OlvmVmStatusStatusEnum
GetOlvmVmStatusStatusEnumValues Enumerates the set of values for OlvmVmStatusStatusEnum
OlvmVmSummary Type containing information related to virtual machines on a particular host.
type OlvmVmSummary struct {
// The number of virtual machines active on the host.
Active *int `mandatory:"false" json:"active"`
// The number of virtual machines migrating to or from the host.
Migrating *int `mandatory:"false" json:"migrating"`
// The number of virtual machines present on the host.
Total *int `mandatory:"false" json:"total"`
}
func (m OlvmVmSummary) String() string
func (m OlvmVmSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVmType Determines whether the virtual machine is optimized for desktop or server.
type OlvmVmType struct {
// Type representing what the virtual machine is optimized for.
VmType OlvmVmTypeVmTypeEnum `mandatory:"false" json:"vmType,omitempty"`
}
func (m OlvmVmType) String() string
func (m OlvmVmType) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVmTypeVmTypeEnum Enum with underlying type: string
type OlvmVmTypeVmTypeEnum string
Set of constants representing the allowable values for OlvmVmTypeVmTypeEnum
const (
OlvmVmTypeVmTypeDesktop OlvmVmTypeVmTypeEnum = "DESKTOP"
OlvmVmTypeVmTypeHighPerformance OlvmVmTypeVmTypeEnum = "HIGH_PERFORMANCE"
OlvmVmTypeVmTypeServer OlvmVmTypeVmTypeEnum = "SERVER"
)
func GetMappingOlvmVmTypeVmTypeEnum(val string) (OlvmVmTypeVmTypeEnum, bool)
GetMappingOlvmVmTypeVmTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVmTypeVmTypeEnumValues() []OlvmVmTypeVmTypeEnum
GetOlvmVmTypeVmTypeEnumValues Enumerates the set of values for OlvmVmTypeVmTypeEnum
OlvmVnicProfileAssetDetails OLVM Vnic Profile type of asset.
type OlvmVnicProfileAssetDetails struct {
OlvmVnicProfile *OlvmVnicProfileProperties `mandatory:"true" json:"olvmVnicProfile"`
}
func (m OlvmVnicProfileAssetDetails) String() string
func (m OlvmVnicProfileAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVnicProfileProperties OLVM Vnic Profile properties.
type OlvmVnicProfileProperties struct {
// A human-readable name in plain text
VnicProfileName *string `mandatory:"true" json:"vnicProfileName"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// Custom properties applied to the vNIC profile.
CustomProperties []OlvmCustomProperty `mandatory:"false" json:"customProperties"`
// A human-readable description in plain text.
Description *string `mandatory:"false" json:"description"`
// Indicates whether passThrough NIC is migratable or not.
IsMigratable *bool `mandatory:"false" json:"isMigratable"`
// Describes whether the vNIC is to be implemented as a pass-through device or a virtual one.
PassThrough OlvmVnicProfilePropertiesPassThroughEnum `mandatory:"false" json:"passThrough,omitempty"`
// Indicates if port mirroring is enabled.
IsPortMirroring *bool `mandatory:"false" json:"isPortMirroring"`
}
func (m OlvmVnicProfileProperties) String() string
func (m OlvmVnicProfileProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OlvmVnicProfilePropertiesPassThroughEnum Enum with underlying type: string
type OlvmVnicProfilePropertiesPassThroughEnum string
Set of constants representing the allowable values for OlvmVnicProfilePropertiesPassThroughEnum
const (
OlvmVnicProfilePropertiesPassThroughDisabled OlvmVnicProfilePropertiesPassThroughEnum = "DISABLED"
OlvmVnicProfilePropertiesPassThroughEnabled OlvmVnicProfilePropertiesPassThroughEnum = "ENABLED"
)
func GetMappingOlvmVnicProfilePropertiesPassThroughEnum(val string) (OlvmVnicProfilePropertiesPassThroughEnum, bool)
GetMappingOlvmVnicProfilePropertiesPassThroughEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOlvmVnicProfilePropertiesPassThroughEnumValues() []OlvmVnicProfilePropertiesPassThroughEnum
GetOlvmVnicProfilePropertiesPassThroughEnumValues Enumerates the set of values for OlvmVnicProfilePropertiesPassThroughEnum
OperationStatusEnum Enum with underlying type: string
type OperationStatusEnum string
Set of constants representing the allowable values for OperationStatusEnum
const (
OperationStatusAccepted OperationStatusEnum = "ACCEPTED"
OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS"
OperationStatusWaiting OperationStatusEnum = "WAITING"
OperationStatusFailed OperationStatusEnum = "FAILED"
OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED"
OperationStatusCanceling OperationStatusEnum = "CANCELING"
OperationStatusCanceled OperationStatusEnum = "CANCELED"
OperationStatusNeedsAttention OperationStatusEnum = "NEEDS_ATTENTION"
)
func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)
GetMappingOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationStatusEnumValues() []OperationStatusEnum
GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum
OperationTypeEnum Enum with underlying type: string
type OperationTypeEnum string
Set of constants representing the allowable values for OperationTypeEnum
const (
OperationTypeCreateMigration OperationTypeEnum = "CREATE_MIGRATION"
OperationTypeUpdateMigration OperationTypeEnum = "UPDATE_MIGRATION"
OperationTypeRefreshMigration OperationTypeEnum = "REFRESH_MIGRATION"
OperationTypeDeleteMigration OperationTypeEnum = "DELETE_MIGRATION"
OperationTypeMoveMigration OperationTypeEnum = "MOVE_MIGRATION"
OperationTypeStartAssetReplication OperationTypeEnum = "START_ASSET_REPLICATION"
OperationTypeStartMigrationReplication OperationTypeEnum = "START_MIGRATION_REPLICATION"
OperationTypeCreateReplicationSchedule OperationTypeEnum = "CREATE_REPLICATION_SCHEDULE"
OperationTypeUpdateReplicationSchedule OperationTypeEnum = "UPDATE_REPLICATION_SCHEDULE"
OperationTypeDeleteReplicationSchedule OperationTypeEnum = "DELETE_REPLICATION_SCHEDULE"
OperationTypeMoveReplicationSchedule OperationTypeEnum = "MOVE_REPLICATION_SCHEDULE"
OperationTypeCreateMigrationPlan OperationTypeEnum = "CREATE_MIGRATION_PLAN"
OperationTypeUpdateMigrationPlan OperationTypeEnum = "UPDATE_MIGRATION_PLAN"
OperationTypeDeleteMigrationPlan OperationTypeEnum = "DELETE_MIGRATION_PLAN"
OperationTypeMoveMigrationPlan OperationTypeEnum = "MOVE_MIGRATION_PLAN"
OperationTypeRefreshMigrationPlan OperationTypeEnum = "REFRESH_MIGRATION_PLAN"
OperationTypeExecuteMigrationPlan OperationTypeEnum = "EXECUTE_MIGRATION_PLAN"
OperationTypeRefreshMigrationAsset OperationTypeEnum = "REFRESH_MIGRATION_ASSET"
OperationTypeCreateMigrationAsset OperationTypeEnum = "CREATE_MIGRATION_ASSET"
OperationTypeDeleteMigrationAsset OperationTypeEnum = "DELETE_MIGRATION_ASSET"
OperationTypeCreateTargetAsset OperationTypeEnum = "CREATE_TARGET_ASSET"
OperationTypeUpdateTargetAsset OperationTypeEnum = "UPDATE_TARGET_ASSET"
OperationTypeDeleteTargetAsset OperationTypeEnum = "DELETE_TARGET_ASSET"
OperationTypePrepareTargetAsset OperationTypeEnum = "PREPARE_TARGET_ASSET"
)
func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)
GetMappingOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOperationTypeEnumValues() []OperationTypeEnum
GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum
OsImageEstimation Cost estimation for the OS image.
type OsImageEstimation struct {
// Total price per hour
TotalPerHour *float32 `mandatory:"true" json:"totalPerHour"`
// Total price per hour by subscription
TotalPerHourBySubscription *float32 `mandatory:"false" json:"totalPerHourBySubscription"`
}
func (m OsImageEstimation) String() string
func (m OsImageEstimation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PeakResourceAssessmentStrategy Peak usage based strategy.
type PeakResourceAssessmentStrategy struct {
// The real resource usage is multiplied to this number before making any recommendation.
AdjustmentMultiplier *float32 `mandatory:"false" json:"adjustmentMultiplier"`
// The type of resource.
ResourceType ResourceAssessmentStrategyResourceTypeEnum `mandatory:"true" json:"resourceType"`
// The current state of the migration plan.
MetricType MetricTypeEnum `mandatory:"false" json:"metricType,omitempty"`
// The current state of the migration plan.
MetricTimeWindow MetricTimeWindowEnum `mandatory:"false" json:"metricTimeWindow,omitempty"`
}
func (m PeakResourceAssessmentStrategy) GetResourceType() ResourceAssessmentStrategyResourceTypeEnum
GetResourceType returns ResourceType
func (m PeakResourceAssessmentStrategy) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PeakResourceAssessmentStrategy) String() string
func (m PeakResourceAssessmentStrategy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PercentileResourceAssessmentStrategy The strategy based on percentile usage.
type PercentileResourceAssessmentStrategy struct {
// The real resource usage is multiplied to this number before making any recommendation.
AdjustmentMultiplier *float32 `mandatory:"false" json:"adjustmentMultiplier"`
// Percentile value
Percentile PercentileResourceAssessmentStrategyPercentileEnum `mandatory:"true" json:"percentile"`
// The type of resource.
ResourceType ResourceAssessmentStrategyResourceTypeEnum `mandatory:"true" json:"resourceType"`
// The current state of the migration plan.
MetricTimeWindow MetricTimeWindowEnum `mandatory:"false" json:"metricTimeWindow,omitempty"`
}
func (m PercentileResourceAssessmentStrategy) GetResourceType() ResourceAssessmentStrategyResourceTypeEnum
GetResourceType returns ResourceType
func (m PercentileResourceAssessmentStrategy) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PercentileResourceAssessmentStrategy) String() string
func (m PercentileResourceAssessmentStrategy) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PercentileResourceAssessmentStrategyPercentileEnum Enum with underlying type: string
type PercentileResourceAssessmentStrategyPercentileEnum string
Set of constants representing the allowable values for PercentileResourceAssessmentStrategyPercentileEnum
const (
PercentileResourceAssessmentStrategyPercentileP50 PercentileResourceAssessmentStrategyPercentileEnum = "P50"
PercentileResourceAssessmentStrategyPercentileP90 PercentileResourceAssessmentStrategyPercentileEnum = "P90"
PercentileResourceAssessmentStrategyPercentileP95 PercentileResourceAssessmentStrategyPercentileEnum = "P95"
PercentileResourceAssessmentStrategyPercentileP99 PercentileResourceAssessmentStrategyPercentileEnum = "P99"
)
func GetMappingPercentileResourceAssessmentStrategyPercentileEnum(val string) (PercentileResourceAssessmentStrategyPercentileEnum, bool)
GetMappingPercentileResourceAssessmentStrategyPercentileEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPercentileResourceAssessmentStrategyPercentileEnumValues() []PercentileResourceAssessmentStrategyPercentileEnum
GetPercentileResourceAssessmentStrategyPercentileEnumValues Enumerates the set of values for PercentileResourceAssessmentStrategyPercentileEnum
Placement Describes the placement of an instance.
type Placement struct {
// The affinity setting for the instance on the Dedicated Host.
Affinity *string `mandatory:"false" json:"affinity"`
// The Availability Zone of the instance.
AvailabilityZone *string `mandatory:"false" json:"availabilityZone"`
// The name of the placement group the instance is in.
GroupName *string `mandatory:"false" json:"groupName"`
// The ID of the Dedicated Host on which the instance resides.
HostKey *string `mandatory:"false" json:"hostKey"`
// The ARN of the host resource group in which to launch the instances.
HostResourceGroupArn *string `mandatory:"false" json:"hostResourceGroupArn"`
// The number of the partition that the instance is in.
PartitionNumber *int `mandatory:"false" json:"partitionNumber"`
// Reserved for future use.
SpreadDomain *string `mandatory:"false" json:"spreadDomain"`
// The tenancy of the instance (if the instance is running in a VPC).
Tenancy *string `mandatory:"false" json:"tenancy"`
}
func (m Placement) String() string
func (m Placement) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PreemptibleInstanceConfigDetails Configuration options for preemptible instances.
type PreemptibleInstanceConfigDetails struct {
PreemptionAction PreemptionAction `mandatory:"true" json:"preemptionAction"`
}
func (m PreemptibleInstanceConfigDetails) String() string
func (m *PreemptibleInstanceConfigDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m PreemptibleInstanceConfigDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PreemptionAction The action to run when the preemptible instance is interrupted for eviction.
type PreemptionAction interface {
}
PreemptionActionTypeEnum Enum with underlying type: string
type PreemptionActionTypeEnum string
Set of constants representing the allowable values for PreemptionActionTypeEnum
const (
PreemptionActionTypeTerminate PreemptionActionTypeEnum = "TERMINATE"
)
func GetMappingPreemptionActionTypeEnum(val string) (PreemptionActionTypeEnum, bool)
GetMappingPreemptionActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPreemptionActionTypeEnumValues() []PreemptionActionTypeEnum
GetPreemptionActionTypeEnumValues Enumerates the set of values for PreemptionActionTypeEnum
RefreshMigrationAssetRequest wrapper for the RefreshMigrationAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/RefreshMigrationAsset.go.html to see an example of how to use RefreshMigrationAssetRequest.
type RefreshMigrationAssetRequest struct {
// Unique migration asset identifier
MigrationAssetId *string `mandatory:"true" contributesTo:"path" name:"migrationAssetId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request RefreshMigrationAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request RefreshMigrationAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RefreshMigrationAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RefreshMigrationAssetRequest) String() string
func (request RefreshMigrationAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
RefreshMigrationAssetResponse wrapper for the RefreshMigrationAsset operation
type RefreshMigrationAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response RefreshMigrationAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RefreshMigrationAssetResponse) String() string
RefreshMigrationPlanRequest wrapper for the RefreshMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/RefreshMigrationPlan.go.html to see an example of how to use RefreshMigrationPlanRequest.
type RefreshMigrationPlanRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request RefreshMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request RefreshMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RefreshMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RefreshMigrationPlanRequest) String() string
func (request RefreshMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
RefreshMigrationPlanResponse wrapper for the RefreshMigrationPlan operation
type RefreshMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response RefreshMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RefreshMigrationPlanResponse) String() string
RefreshMigrationRequest wrapper for the RefreshMigration operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/RefreshMigration.go.html to see an example of how to use RefreshMigrationRequest.
type RefreshMigrationRequest struct {
// Unique migration identifier
MigrationId *string `mandatory:"true" contributesTo:"path" name:"migrationId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request RefreshMigrationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request RefreshMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RefreshMigrationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RefreshMigrationRequest) String() string
func (request RefreshMigrationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
RefreshMigrationResponse wrapper for the RefreshMigration operation
type RefreshMigrationResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response RefreshMigrationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RefreshMigrationResponse) String() string
ReplicationLocationDetail Replication location detail where the snapshots reside
type ReplicationLocationDetail struct {
// The type of replication location
ReplicationLocationType ReplicationLocationDetailReplicationLocationTypeEnum `mandatory:"false" json:"replicationLocationType,omitempty"`
// Properties for each of the replication location types
Metadata *interface{} `mandatory:"false" json:"metadata"`
}
func (m ReplicationLocationDetail) String() string
func (m ReplicationLocationDetail) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ReplicationLocationDetailReplicationLocationTypeEnum Enum with underlying type: string
type ReplicationLocationDetailReplicationLocationTypeEnum string
Set of constants representing the allowable values for ReplicationLocationDetailReplicationLocationTypeEnum
const (
ReplicationLocationDetailReplicationLocationTypeOciObjectStore ReplicationLocationDetailReplicationLocationTypeEnum = "OCI_OBJECT_STORE"
ReplicationLocationDetailReplicationLocationTypeOlvmStorageDomain ReplicationLocationDetailReplicationLocationTypeEnum = "OLVM_STORAGE_DOMAIN"
)
func GetMappingReplicationLocationDetailReplicationLocationTypeEnum(val string) (ReplicationLocationDetailReplicationLocationTypeEnum, bool)
GetMappingReplicationLocationDetailReplicationLocationTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetReplicationLocationDetailReplicationLocationTypeEnumValues() []ReplicationLocationDetailReplicationLocationTypeEnum
GetReplicationLocationDetailReplicationLocationTypeEnumValues Enumerates the set of values for ReplicationLocationDetailReplicationLocationTypeEnum
ReplicationProgress Progress of a migration asset's replication process.
type ReplicationProgress struct {
// Percentage of the current replication progress from 0 to 100.
Percentage *int `mandatory:"true" json:"percentage"`
// Status of the current replication progress. It can be None or InProgress.
Status ReplicationProgressStatusEnum `mandatory:"false" json:"status,omitempty"`
// Start time of the current replication process
TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`
// Start time of the last replication process. It can be Completed or Failed.
TimeOflastReplicationStart *common.SDKTime `mandatory:"false" json:"timeOflastReplicationStart"`
// End time of the last replication process. It can be Completed or Failed.
TimeOfLastReplicationEnd *common.SDKTime `mandatory:"false" json:"timeOfLastReplicationEnd"`
// End time of the last successful replication process, which has been completed.
TimeOfLastReplicationSuccess *common.SDKTime `mandatory:"false" json:"timeOfLastReplicationSuccess"`
// Status of the last replication task. It can be Completed or Failed.
LastReplicationStatus ReplicationProgressLastReplicationStatusEnum `mandatory:"false" json:"lastReplicationStatus,omitempty"`
// The child status of the last replication task.
LastReplicationSubStatus *string `mandatory:"false" json:"lastReplicationSubStatus"`
// Error message if the last finished replication failed.
LastReplicationError *string `mandatory:"false" json:"lastReplicationError"`
}
func (m ReplicationProgress) String() string
func (m ReplicationProgress) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ReplicationProgressLastReplicationStatusEnum Enum with underlying type: string
type ReplicationProgressLastReplicationStatusEnum string
Set of constants representing the allowable values for ReplicationProgressLastReplicationStatusEnum
const (
ReplicationProgressLastReplicationStatusNone ReplicationProgressLastReplicationStatusEnum = "NONE"
ReplicationProgressLastReplicationStatusCompleted ReplicationProgressLastReplicationStatusEnum = "COMPLETED"
ReplicationProgressLastReplicationStatusFailed ReplicationProgressLastReplicationStatusEnum = "FAILED"
)
func GetMappingReplicationProgressLastReplicationStatusEnum(val string) (ReplicationProgressLastReplicationStatusEnum, bool)
GetMappingReplicationProgressLastReplicationStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetReplicationProgressLastReplicationStatusEnumValues() []ReplicationProgressLastReplicationStatusEnum
GetReplicationProgressLastReplicationStatusEnumValues Enumerates the set of values for ReplicationProgressLastReplicationStatusEnum
ReplicationProgressStatusEnum Enum with underlying type: string
type ReplicationProgressStatusEnum string
Set of constants representing the allowable values for ReplicationProgressStatusEnum
const (
ReplicationProgressStatusNone ReplicationProgressStatusEnum = "NONE"
ReplicationProgressStatusInProgress ReplicationProgressStatusEnum = "IN_PROGRESS"
)
func GetMappingReplicationProgressStatusEnum(val string) (ReplicationProgressStatusEnum, bool)
GetMappingReplicationProgressStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetReplicationProgressStatusEnumValues() []ReplicationProgressStatusEnum
GetReplicationProgressStatusEnumValues Enumerates the set of values for ReplicationProgressStatusEnum
ReplicationSchedule Replication schedule.
type ReplicationSchedule struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication schedule.
Id *string `mandatory:"true" json:"id"`
// A name of the replication schedule.
DisplayName *string `mandatory:"true" json:"displayName"`
// Recurrence specification for the replication schedule execution.
ExecutionRecurrences *string `mandatory:"true" json:"executionRecurrences"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the replication schedule exists.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Current state of the replication schedule.
LifecycleState ReplicationScheduleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The detailed state of the replication schedule.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The time when the replication schedule was created in RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the replication schedule was last updated in RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m ReplicationSchedule) String() string
func (m ReplicationSchedule) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ReplicationScheduleCollection Results of a replication schedule search. Contains replication schedule summaries.
type ReplicationScheduleCollection struct {
// Replication schedule summaries.
Items []ReplicationScheduleSummary `mandatory:"true" json:"items"`
}
func (m ReplicationScheduleCollection) String() string
func (m ReplicationScheduleCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ReplicationScheduleLifecycleStateEnum Enum with underlying type: string
type ReplicationScheduleLifecycleStateEnum string
Set of constants representing the allowable values for ReplicationScheduleLifecycleStateEnum
const (
ReplicationScheduleLifecycleStateCreating ReplicationScheduleLifecycleStateEnum = "CREATING"
ReplicationScheduleLifecycleStateUpdating ReplicationScheduleLifecycleStateEnum = "UPDATING"
ReplicationScheduleLifecycleStateNeedsAttention ReplicationScheduleLifecycleStateEnum = "NEEDS_ATTENTION"
ReplicationScheduleLifecycleStateActive ReplicationScheduleLifecycleStateEnum = "ACTIVE"
ReplicationScheduleLifecycleStateDeleting ReplicationScheduleLifecycleStateEnum = "DELETING"
ReplicationScheduleLifecycleStateDeleted ReplicationScheduleLifecycleStateEnum = "DELETED"
ReplicationScheduleLifecycleStateFailed ReplicationScheduleLifecycleStateEnum = "FAILED"
)
func GetMappingReplicationScheduleLifecycleStateEnum(val string) (ReplicationScheduleLifecycleStateEnum, bool)
GetMappingReplicationScheduleLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetReplicationScheduleLifecycleStateEnumValues() []ReplicationScheduleLifecycleStateEnum
GetReplicationScheduleLifecycleStateEnumValues Enumerates the set of values for ReplicationScheduleLifecycleStateEnum
ReplicationScheduleSummary Sumarized information about a replication schedule.
type ReplicationScheduleSummary struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the replication schedule.
Id *string `mandatory:"true" json:"id"`
// A name of the replication schedule.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the replication schedule exists.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Recurrence specification for replication schedule execution.
ExecutionRecurrences *string `mandatory:"true" json:"executionRecurrences"`
// Current state of the replication schedule.
LifecycleState ReplicationScheduleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The detailed state of the replication schedule.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The time when the replication schedule was created in RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the replication schedule was last updated in RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m ReplicationScheduleSummary) String() string
func (m ReplicationScheduleSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ResourceAssessmentStrategy Migration strategy for the resource to be migrated.
type ResourceAssessmentStrategy interface {
// The type of resource.
GetResourceType() ResourceAssessmentStrategyResourceTypeEnum
}
ResourceAssessmentStrategyResourceTypeEnum Enum with underlying type: string
type ResourceAssessmentStrategyResourceTypeEnum string
Set of constants representing the allowable values for ResourceAssessmentStrategyResourceTypeEnum
const (
ResourceAssessmentStrategyResourceTypeCpu ResourceAssessmentStrategyResourceTypeEnum = "CPU"
ResourceAssessmentStrategyResourceTypeMemory ResourceAssessmentStrategyResourceTypeEnum = "MEMORY"
ResourceAssessmentStrategyResourceTypeAll ResourceAssessmentStrategyResourceTypeEnum = "ALL"
)
func GetMappingResourceAssessmentStrategyResourceTypeEnum(val string) (ResourceAssessmentStrategyResourceTypeEnum, bool)
GetMappingResourceAssessmentStrategyResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetResourceAssessmentStrategyResourceTypeEnumValues() []ResourceAssessmentStrategyResourceTypeEnum
GetResourceAssessmentStrategyResourceTypeEnumValues Enumerates the set of values for ResourceAssessmentStrategyResourceTypeEnum
ResourceAssessmentStrategyStrategyTypeEnum Enum with underlying type: string
type ResourceAssessmentStrategyStrategyTypeEnum string
Set of constants representing the allowable values for ResourceAssessmentStrategyStrategyTypeEnum
const (
ResourceAssessmentStrategyStrategyTypeAsIs ResourceAssessmentStrategyStrategyTypeEnum = "AS_IS"
ResourceAssessmentStrategyStrategyTypeAverage ResourceAssessmentStrategyStrategyTypeEnum = "AVERAGE"
ResourceAssessmentStrategyStrategyTypePeak ResourceAssessmentStrategyStrategyTypeEnum = "PEAK"
ResourceAssessmentStrategyStrategyTypePercentile ResourceAssessmentStrategyStrategyTypeEnum = "PERCENTILE"
)
func GetMappingResourceAssessmentStrategyStrategyTypeEnum(val string) (ResourceAssessmentStrategyStrategyTypeEnum, bool)
GetMappingResourceAssessmentStrategyStrategyTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetResourceAssessmentStrategyStrategyTypeEnumValues() []ResourceAssessmentStrategyStrategyTypeEnum
GetResourceAssessmentStrategyStrategyTypeEnumValues Enumerates the set of values for ResourceAssessmentStrategyStrategyTypeEnum
RngSourceEnum Enum with underlying type: string
type RngSourceEnum string
Set of constants representing the allowable values for RngSourceEnum
const (
RngSourceHwrng RngSourceEnum = "HWRNG"
RngSourceRandom RngSourceEnum = "RANDOM"
RngSourceUrandom RngSourceEnum = "URANDOM"
)
func GetMappingRngSourceEnum(val string) (RngSourceEnum, bool)
GetMappingRngSourceEnum performs case Insensitive comparison on enum value and return the desired enum
func GetRngSourceEnumValues() []RngSourceEnum
GetRngSourceEnumValues Enumerates the set of values for RngSourceEnum
ScsiController The assets SCSI controller.
type ScsiController struct {
// Provides a label and summary information for the device.
Label *string `mandatory:"false" json:"label"`
// The unit number of the SCSI controller.
UnitNumber *int `mandatory:"false" json:"unitNumber"`
// Shared bus.
SharedBus *string `mandatory:"false" json:"sharedBus"`
}
func (m ScsiController) String() string
func (m ScsiController) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SkipIfConnectivityBroken If enabled, we will not fence a host in case more than a configurable percentage of hosts in the cluster lost connectivity as well.
type SkipIfConnectivityBroken struct {
// If enabled, we will not fence a host in case more than a configurable percentage of hosts in the cluster lost connectivity as well.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
// Threshold for connectivity testing.
Threshold *int `mandatory:"false" json:"threshold"`
}
func (m SkipIfConnectivityBroken) String() string
func (m SkipIfConnectivityBroken) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SkipIfSdActive If enabled, we will skip fencing in case the host maintains its lease in the storage.
type SkipIfSdActive struct {
// If enabled, we will skip fencing in case the host maintains its lease in the storage.
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}
func (m SkipIfSdActive) String() string
func (m SkipIfSdActive) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SortOrderEnum Enum with underlying type: string
type SortOrderEnum string
Set of constants representing the allowable values for SortOrderEnum
const (
SortOrderAsc SortOrderEnum = "ASC"
SortOrderDesc SortOrderEnum = "DESC"
)
func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSortOrderEnumValues() []SortOrderEnum
GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum
StartAssetReplicationRequest wrapper for the StartAssetReplication operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/StartAssetReplication.go.html to see an example of how to use StartAssetReplicationRequest.
type StartAssetReplicationRequest struct {
// Unique migration asset identifier
MigrationAssetId *string `mandatory:"true" contributesTo:"path" name:"migrationAssetId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request StartAssetReplicationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request StartAssetReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request StartAssetReplicationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request StartAssetReplicationRequest) String() string
func (request StartAssetReplicationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
StartAssetReplicationResponse wrapper for the StartAssetReplication operation
type StartAssetReplicationResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response StartAssetReplicationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response StartAssetReplicationResponse) String() string
StartMigrationReplicationRequest wrapper for the StartMigrationReplication operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/StartMigrationReplication.go.html to see an example of how to use StartMigrationReplicationRequest.
type StartMigrationReplicationRequest struct {
// Unique migration identifier
MigrationId *string `mandatory:"true" contributesTo:"path" name:"migrationId"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request StartMigrationReplicationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request StartMigrationReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request StartMigrationReplicationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request StartMigrationReplicationRequest) String() string
func (request StartMigrationReplicationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
StartMigrationReplicationResponse wrapper for the StartMigrationReplication operation
type StartMigrationReplicationResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response StartMigrationReplicationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response StartMigrationReplicationResponse) String() string
Storage Host storage information
type Storage struct {
// A unique identifier.
Id *string `mandatory:"false" json:"id"`
// Address of storage domain.
Address *string `mandatory:"false" json:"address"`
// Free text containing comments about this object.
Comment *string `mandatory:"false" json:"comment"`
// A human-readable description in plain text.
StorageDescription *string `mandatory:"false" json:"storageDescription"`
// The options to be passed when creating a storage domain using a cinder driver.
DriverOptions []OlvmProperty `mandatory:"false" json:"driverOptions"`
// The options containing sensitive information to be passed when creating a storage domain using a cinder driver.
DriverSensitiveOptions []OlvmProperty `mandatory:"false" json:"driverSensitiveOptions"`
// Logical Units of the host storage
LogicalUnits []LogicalUnit `mandatory:"false" json:"logicalUnits"`
// Mount options
MountOptions *string `mandatory:"false" json:"mountOptions"`
// The number of times to retry a request before attempting further recovery actions.
NfsRetrans *int `mandatory:"false" json:"nfsRetrans"`
// The time in tenths of a second to wait for a response before retrying NFS requests.
NfsTimeo *int `mandatory:"false" json:"nfsTimeo"`
// Version of NFS used.
NfsVersion StorageNfsVersionEnum `mandatory:"false" json:"nfsVersion,omitempty"`
// Whether to override LUNs
IsOverrideLuns *bool `mandatory:"false" json:"isOverrideLuns"`
// Password of the host storage.
Password *string `mandatory:"false" json:"password"`
// Paths of the host storage.
Paths *int `mandatory:"false" json:"paths"`
// Port of the host storage.
Port *int `mandatory:"false" json:"port"`
// Portal of the host storage.
Portal *string `mandatory:"false" json:"portal"`
// Target of the host storage.
Target *string `mandatory:"false" json:"target"`
// Username of the host storage.
Username *string `mandatory:"false" json:"username"`
// Type representing a storage domain type.
Type StorageTypeEnum `mandatory:"false" json:"type,omitempty"`
// Type of VFS
VfsType *string `mandatory:"false" json:"vfsType"`
VolumeGroup *VolumeGroup `mandatory:"false" json:"volumeGroup"`
}
func (m Storage) String() string
func (m Storage) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
StorageCostEstimation Cost estimation for storage
type StorageCostEstimation struct {
// Volume estimation
Volumes []VolumeCostEstimation `mandatory:"true" json:"volumes"`
// Gigabyte storage capacity per month.
TotalGbPerMonth *float32 `mandatory:"true" json:"totalGbPerMonth"`
// Gigabyte storage capacity per month by subscription.
TotalGbPerMonthBySubscription *float32 `mandatory:"false" json:"totalGbPerMonthBySubscription"`
}
func (m StorageCostEstimation) String() string
func (m StorageCostEstimation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
StorageNfsVersionEnum Enum with underlying type: string
type StorageNfsVersionEnum string
Set of constants representing the allowable values for StorageNfsVersionEnum
const (
StorageNfsVersionAuto StorageNfsVersionEnum = "AUTO"
StorageNfsVersionV3 StorageNfsVersionEnum = "V3"
StorageNfsVersionV4 StorageNfsVersionEnum = "V4"
StorageNfsVersionV40 StorageNfsVersionEnum = "V4_0"
StorageNfsVersionV41 StorageNfsVersionEnum = "V4_1"
StorageNfsVersionV42 StorageNfsVersionEnum = "V4_2"
)
func GetMappingStorageNfsVersionEnum(val string) (StorageNfsVersionEnum, bool)
GetMappingStorageNfsVersionEnum performs case Insensitive comparison on enum value and return the desired enum
func GetStorageNfsVersionEnumValues() []StorageNfsVersionEnum
GetStorageNfsVersionEnumValues Enumerates the set of values for StorageNfsVersionEnum
StorageTypeEnum Enum with underlying type: string
type StorageTypeEnum string
Set of constants representing the allowable values for StorageTypeEnum
const (
StorageTypeCinder StorageTypeEnum = "CINDER"
StorageTypeFcp StorageTypeEnum = "FCP"
StorageTypeGlance StorageTypeEnum = "GLANCE"
StorageTypeGlusterfs StorageTypeEnum = "GLUSTERFS"
StorageTypeIscsi StorageTypeEnum = "ISCSI"
StorageTypeLocalfs StorageTypeEnum = "LOCALFS"
StorageTypeManagedBlockStorage StorageTypeEnum = "MANAGED_BLOCK_STORAGE"
StorageTypeNfs StorageTypeEnum = "NFS"
StorageTypePosixfs StorageTypeEnum = "POSIXFS"
)
func GetMappingStorageTypeEnum(val string) (StorageTypeEnum, bool)
GetMappingStorageTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetStorageTypeEnumValues() []StorageTypeEnum
GetStorageTypeEnumValues Enumerates the set of values for StorageTypeEnum
SubmitHistoricalMetricsDetails Post historical metric details.
type SubmitHistoricalMetricsDetails struct {
// List of asset historical metrics.
HistoricalMetrics []HistoricalMetric `mandatory:"true" json:"historicalMetrics"`
}
func (m SubmitHistoricalMetricsDetails) String() string
func (m SubmitHistoricalMetricsDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Tag Describes a tag.
type Tag struct {
// The key of the tag.
Key *string `mandatory:"false" json:"key"`
// The value of the tag.
Value *string `mandatory:"false" json:"value"`
}
func (m Tag) String() string
func (m Tag) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TargetAsset Description of the target asset.
type TargetAsset interface {
// Unique identifier that is immutable on creation.
GetId() *string
// The current state of the target asset.
GetLifecycleState() TargetAssetLifecycleStateEnum
// OCID of the associated migration plan.
GetMigrationPlanId() *string
// A boolean indicating whether the asset should be migrated.
GetIsExcludedFromExecution() *bool
GetEstimatedCost() *CostEstimation
// The time when the target asset was created. An RFC3339 formatted datetime string.
GetTimeCreated() *common.SDKTime
// The time when the target asset was updated. An RFC3339 formatted datetime string.
GetTimeUpdated() *common.SDKTime
// The time when the assessment was done. An RFC3339 formatted datetime string.
GetTimeAssessed() *common.SDKTime
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
GetDisplayName() *string
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
GetLifecycleDetails() *string
// Compartment identifier
GetCompartmentId() *string
// Created resource identifier
GetCreatedResourceId() *string
// Messages about the compatibility issues.
GetCompatibilityMessages() []CompatibilityMessage
GetMigrationAsset() *MigrationAsset
}
TargetAssetCollection Results of a target asset search.
type TargetAssetCollection struct {
// List of target asset summaries.
Items []TargetAssetSummary `mandatory:"true" json:"items"`
}
func (m TargetAssetCollection) String() string
func (m *TargetAssetCollection) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m TargetAssetCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TargetAssetLifecycleStateEnum Enum with underlying type: string
type TargetAssetLifecycleStateEnum string
Set of constants representing the allowable values for TargetAssetLifecycleStateEnum
const (
TargetAssetLifecycleStateCreating TargetAssetLifecycleStateEnum = "CREATING"
TargetAssetLifecycleStateUpdating TargetAssetLifecycleStateEnum = "UPDATING"
TargetAssetLifecycleStateNeedsAttention TargetAssetLifecycleStateEnum = "NEEDS_ATTENTION"
TargetAssetLifecycleStateActive TargetAssetLifecycleStateEnum = "ACTIVE"
TargetAssetLifecycleStateDeleting TargetAssetLifecycleStateEnum = "DELETING"
TargetAssetLifecycleStateDeleted TargetAssetLifecycleStateEnum = "DELETED"
TargetAssetLifecycleStateFailed TargetAssetLifecycleStateEnum = "FAILED"
)
func GetMappingTargetAssetLifecycleStateEnum(val string) (TargetAssetLifecycleStateEnum, bool)
GetMappingTargetAssetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetTargetAssetLifecycleStateEnumValues() []TargetAssetLifecycleStateEnum
GetTargetAssetLifecycleStateEnumValues Enumerates the set of values for TargetAssetLifecycleStateEnum
TargetAssetSummary Summary of the target asset.
type TargetAssetSummary interface {
// Unique identifier that is immutable on creation.
GetId() *string
// The current state of the target asset.
GetLifecycleState() TargetAssetLifecycleStateEnum
// OCID of the associated migration plan.
GetMigrationPlanId() *string
// A boolean indicating whether the asset should be migrated.
GetIsExcludedFromExecution() *bool
GetEstimatedCost() *CostEstimation
// The time when the target asset was created. An RFC3339 formatted datetime string.
GetTimeCreated() *common.SDKTime
// The time when the target asset was updated. An RFC3339 formatted datetime string.
GetTimeUpdated() *common.SDKTime
// The time when the assessment was done. An RFC3339 formatted datetime string.
GetTimeAssessed() *common.SDKTime
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
GetDisplayName() *string
// Compartment identifier
GetCompartmentId() *string
// Created resource identifier
GetCreatedResourceId() *string
// Messages about compatibility issues.
GetCompatibilityMessages() []CompatibilityMessage
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
GetLifecycleDetails() *string
GetMigrationAsset() *MigrationAssetSummary
}
TargetAssetSummaryTypeEnum Enum with underlying type: string
type TargetAssetSummaryTypeEnum string
Set of constants representing the allowable values for TargetAssetSummaryTypeEnum
const (
TargetAssetSummaryTypeInstance TargetAssetSummaryTypeEnum = "INSTANCE"
TargetAssetSummaryTypeOlvmInstance TargetAssetSummaryTypeEnum = "OLVM_INSTANCE"
)
func GetMappingTargetAssetSummaryTypeEnum(val string) (TargetAssetSummaryTypeEnum, bool)
GetMappingTargetAssetSummaryTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetTargetAssetSummaryTypeEnumValues() []TargetAssetSummaryTypeEnum
GetTargetAssetSummaryTypeEnumValues Enumerates the set of values for TargetAssetSummaryTypeEnum
TargetAssetTypeEnum Enum with underlying type: string
type TargetAssetTypeEnum string
Set of constants representing the allowable values for TargetAssetTypeEnum
const (
TargetAssetTypeInstance TargetAssetTypeEnum = "INSTANCE"
TargetAssetTypeOlvmInstance TargetAssetTypeEnum = "OLVM_INSTANCE"
)
func GetMappingTargetAssetTypeEnum(val string) (TargetAssetTypeEnum, bool)
GetMappingTargetAssetTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetTargetAssetTypeEnumValues() []TargetAssetTypeEnum
GetTargetAssetTypeEnumValues Enumerates the set of values for TargetAssetTypeEnum
TargetEnvironment Description of the target environment.
type TargetEnvironment interface {
// Target compartment identifier
GetTargetCompartmentId() *string
}
TargetEnvironmentTargetEnvironmentTypeEnum Enum with underlying type: string
type TargetEnvironmentTargetEnvironmentTypeEnum string
Set of constants representing the allowable values for TargetEnvironmentTargetEnvironmentTypeEnum
const (
TargetEnvironmentTargetEnvironmentTypeVmTargetEnv TargetEnvironmentTargetEnvironmentTypeEnum = "VM_TARGET_ENV"
TargetEnvironmentTargetEnvironmentTypeOlvmTargetEnv TargetEnvironmentTargetEnvironmentTypeEnum = "OLVM_TARGET_ENV"
)
func GetMappingTargetEnvironmentTargetEnvironmentTypeEnum(val string) (TargetEnvironmentTargetEnvironmentTypeEnum, bool)
GetMappingTargetEnvironmentTargetEnvironmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetTargetEnvironmentTargetEnvironmentTypeEnumValues() []TargetEnvironmentTargetEnvironmentTypeEnum
GetTargetEnvironmentTargetEnvironmentTypeEnumValues Enumerates the set of values for TargetEnvironmentTargetEnvironmentTypeEnum
TerminatePreemptionAction Terminates the preemptible instance when it is interrupted for eviction.
type TerminatePreemptionAction struct {
// Whether to preserve the boot volume that was used to launch the preemptible instance when the instance is terminated. By default, it is false if not specified.
PreserveBootVolume *bool `mandatory:"false" json:"preserveBootVolume"`
}
func (m TerminatePreemptionAction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m TerminatePreemptionAction) String() string
func (m TerminatePreemptionAction) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TransparentHugePages Type representing a transparent huge pages (THP) support.
type TransparentHugePages struct {
// Whether to enable THP support
IsEnabled *bool `mandatory:"false" json:"isEnabled"`
}
func (m TransparentHugePages) String() string
func (m TransparentHugePages) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateAssetDetails The information of asset to be updated.
type UpdateAssetDetails interface {
// Asset display name.
GetDisplayName() *string
// List of asset source OCID.
GetAssetSourceIds() []string
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
GetFreeformTags() map[string]string
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
GetDefinedTags() map[string]map[string]interface{}
}
UpdateAssetSourceDetails Asset source update request.
type UpdateAssetSourceDetails interface {
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
GetDisplayName() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
GetAssetsCompartmentId() *string
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be assigned to an asset source.
GetDiscoveryScheduleId() *string
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
GetFreeformTags() map[string]string
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
GetDefinedTags() map[string]map[string]interface{}
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
GetSystemTags() map[string]map[string]interface{}
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
GetEnvironmentType() EnvironmentTypeEnum
}
UpdateAwsAssetSourceDetails AWS asset source update request.
type UpdateAwsAssetSourceDetails struct {
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"false" json:"assetsCompartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be assigned to an asset source.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"false" json:"discoveryCredentials"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// Flag indicating whether cost data collection is enabled for assets, originating from this asset source.
IsCostInformationCollected *bool `mandatory:"false" json:"isCostInformationCollected"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m UpdateAwsAssetSourceDetails) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m UpdateAwsAssetSourceDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m UpdateAwsAssetSourceDetails) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m UpdateAwsAssetSourceDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m UpdateAwsAssetSourceDetails) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m UpdateAwsAssetSourceDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m UpdateAwsAssetSourceDetails) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m UpdateAwsAssetSourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateAwsAssetSourceDetails) String() string
func (m UpdateAwsAssetSourceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateAwsEbsAssetDetails The information of AWS EBS asset to be updated.
type UpdateAwsEbsAssetDetails struct {
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
AwsEbs *AwsEbsProperties `mandatory:"false" json:"awsEbs"`
}
func (m UpdateAwsEbsAssetDetails) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m UpdateAwsEbsAssetDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m UpdateAwsEbsAssetDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m UpdateAwsEbsAssetDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m UpdateAwsEbsAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateAwsEbsAssetDetails) String() string
func (m UpdateAwsEbsAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateAwsEc2AssetDetails The information of AWS VM asset to be updated.
type UpdateAwsEc2AssetDetails struct {
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
Compute *ComputeProperties `mandatory:"false" json:"compute"`
Vm *VmProperties `mandatory:"false" json:"vm"`
AwsEc2 *AwsEc2Properties `mandatory:"false" json:"awsEc2"`
AwsEc2Cost *MonthlyCostSummary `mandatory:"false" json:"awsEc2Cost"`
AttachedEbsVolumesCost *MonthlyCostSummary `mandatory:"false" json:"attachedEbsVolumesCost"`
}
func (m UpdateAwsEc2AssetDetails) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m UpdateAwsEc2AssetDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m UpdateAwsEc2AssetDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m UpdateAwsEc2AssetDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m UpdateAwsEc2AssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateAwsEc2AssetDetails) String() string
func (m UpdateAwsEc2AssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateDiscoveryScheduleDetails Information about discovery schedule to be updated.
type UpdateDiscoveryScheduleDetails struct {
// A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Recurrence specification for the discovery schedule execution.
ExecutionRecurrences *string `mandatory:"false" json:"executionRecurrences"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m UpdateDiscoveryScheduleDetails) String() string
func (m UpdateDiscoveryScheduleDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateMigrationAssetDetails Details of the updated migration asset.
type UpdateMigrationAssetDetails struct {
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
// List of migration assets that depends on this asset.
DependsOn []string `mandatory:"false" json:"dependsOn"`
}
func (m UpdateMigrationAssetDetails) String() string
func (m UpdateMigrationAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateMigrationAssetRequest wrapper for the UpdateMigrationAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateMigrationAsset.go.html to see an example of how to use UpdateMigrationAssetRequest.
type UpdateMigrationAssetRequest struct {
// Unique migration asset identifier
MigrationAssetId *string `mandatory:"true" contributesTo:"path" name:"migrationAssetId"`
// The information to be updated.
UpdateMigrationAssetDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request UpdateMigrationAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateMigrationAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateMigrationAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateMigrationAssetRequest) String() string
func (request UpdateMigrationAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateMigrationAssetResponse wrapper for the UpdateMigrationAsset operation
type UpdateMigrationAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// The MigrationAsset instance
MigrationAsset `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response UpdateMigrationAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateMigrationAssetResponse) String() string
UpdateMigrationDetails The information to be updated.
type UpdateMigrationDetails struct {
// Migration identifier
DisplayName *string `mandatory:"false" json:"displayName"`
// Replication schedule identifier
ReplicationScheduleId *string `mandatory:"false" json:"replicationScheduleId"`
// Indicates whether migration is marked as complete.
IsCompleted *bool `mandatory:"false" json:"isCompleted"`
// Type of migration project (OCI/OLVM). This determines the target environment for the migration.
MigrationType MigrationMigrationTypeEnum `mandatory:"false" json:"migrationType,omitempty"`
MigrationConfig *MigrationConfig `mandatory:"false" json:"migrationConfig"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m UpdateMigrationDetails) String() string
func (m UpdateMigrationDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateMigrationPlanDetails The information to be updated.
type UpdateMigrationPlanDetails struct {
// Migration plan identifier
DisplayName *string `mandatory:"false" json:"displayName"`
// List of strategies for the resources to be migrated.
Strategies []ResourceAssessmentStrategy `mandatory:"false" json:"strategies"`
// List of target environments.
TargetEnvironments []TargetEnvironment `mandatory:"false" json:"targetEnvironments"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m UpdateMigrationPlanDetails) String() string
func (m *UpdateMigrationPlanDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m UpdateMigrationPlanDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateMigrationPlanRequest wrapper for the UpdateMigrationPlan operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateMigrationPlan.go.html to see an example of how to use UpdateMigrationPlanRequest.
type UpdateMigrationPlanRequest struct {
// Unique migration plan identifier
MigrationPlanId *string `mandatory:"true" contributesTo:"path" name:"migrationPlanId"`
// The information to be updated.
UpdateMigrationPlanDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request UpdateMigrationPlanRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateMigrationPlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateMigrationPlanRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateMigrationPlanRequest) String() string
func (request UpdateMigrationPlanRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateMigrationPlanResponse wrapper for the UpdateMigrationPlan operation
type UpdateMigrationPlanResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response UpdateMigrationPlanResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateMigrationPlanResponse) String() string
UpdateMigrationRequest wrapper for the UpdateMigration operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateMigration.go.html to see an example of how to use UpdateMigrationRequest.
type UpdateMigrationRequest struct {
// Unique migration identifier
MigrationId *string `mandatory:"true" contributesTo:"path" name:"migrationId"`
// The information to be updated.
UpdateMigrationDetails `contributesTo:"body"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request UpdateMigrationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateMigrationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateMigrationRequest) String() string
func (request UpdateMigrationRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateMigrationResponse wrapper for the UpdateMigration operation
type UpdateMigrationResponse struct {
// The underlying http response
RawResponse *http.Response
// The Migration instance
Migration `presentIn:"body"`
// For optimistic concurrency control, see `if-match.`
Etag *string `presentIn:"header" name:"etag"`
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}
func (response UpdateMigrationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateMigrationResponse) String() string
UpdateOlvmAssetSourceDetails OLVM asset source update request.
type UpdateOlvmAssetSourceDetails struct {
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"false" json:"assetsCompartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be assigned to an asset source.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// Endpoint for OLVM asset discovery and replication in the form of ```https://<host>:<port>```
OlvmEndpoint *string `mandatory:"false" json:"olvmEndpoint"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"false" json:"discoveryCredentials"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m UpdateOlvmAssetSourceDetails) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m UpdateOlvmAssetSourceDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m UpdateOlvmAssetSourceDetails) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m UpdateOlvmAssetSourceDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m UpdateOlvmAssetSourceDetails) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m UpdateOlvmAssetSourceDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m UpdateOlvmAssetSourceDetails) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m UpdateOlvmAssetSourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateOlvmAssetSourceDetails) String() string
func (m UpdateOlvmAssetSourceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateOlvmTargetAssetDetails Description of the OLVM target asset.
type UpdateOlvmTargetAssetDetails struct {
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"false" json:"isExcludedFromExecution"`
// Microsoft license for the VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
}
func (m UpdateOlvmTargetAssetDetails) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m UpdateOlvmTargetAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateOlvmTargetAssetDetails) String() string
func (m UpdateOlvmTargetAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateReplicationScheduleDetails Information about replication schedule to be updated.
type UpdateReplicationScheduleDetails struct {
// A user-friendly name for a replication schedule. Does not have to be unique, and is mutable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Recurrence specification for replication schedule execution.
ExecutionRecurrences *string `mandatory:"false" json:"executionRecurrences"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m UpdateReplicationScheduleDetails) String() string
func (m UpdateReplicationScheduleDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateReplicationScheduleRequest wrapper for the UpdateReplicationSchedule operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateReplicationSchedule.go.html to see an example of how to use UpdateReplicationScheduleRequest.
type UpdateReplicationScheduleRequest struct {
// Unique replication schedule identifier in path
ReplicationScheduleId *string `mandatory:"true" contributesTo:"path" name:"replicationScheduleId"`
// The information to be updated.
UpdateReplicationScheduleDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request UpdateReplicationScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateReplicationScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateReplicationScheduleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateReplicationScheduleRequest) String() string
func (request UpdateReplicationScheduleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateReplicationScheduleResponse wrapper for the UpdateReplicationSchedule operation
type UpdateReplicationScheduleResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response UpdateReplicationScheduleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateReplicationScheduleResponse) String() string
UpdateTargetAssetDetails Details of the updated target asset.
type UpdateTargetAssetDetails interface {
// A boolean indicating whether the asset should be migrated.
GetIsExcludedFromExecution() *bool
}
UpdateTargetAssetDetailsTypeEnum Enum with underlying type: string
type UpdateTargetAssetDetailsTypeEnum string
Set of constants representing the allowable values for UpdateTargetAssetDetailsTypeEnum
const (
UpdateTargetAssetDetailsTypeInstance UpdateTargetAssetDetailsTypeEnum = "INSTANCE"
UpdateTargetAssetDetailsTypeOlvmInstance UpdateTargetAssetDetailsTypeEnum = "OLVM_INSTANCE"
)
func GetMappingUpdateTargetAssetDetailsTypeEnum(val string) (UpdateTargetAssetDetailsTypeEnum, bool)
GetMappingUpdateTargetAssetDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetUpdateTargetAssetDetailsTypeEnumValues() []UpdateTargetAssetDetailsTypeEnum
GetUpdateTargetAssetDetailsTypeEnumValues Enumerates the set of values for UpdateTargetAssetDetailsTypeEnum
UpdateTargetAssetRequest wrapper for the UpdateTargetAsset operation
Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudmigrations/UpdateTargetAsset.go.html to see an example of how to use UpdateTargetAssetRequest.
type UpdateTargetAssetRequest struct {
// Unique target asset identifier
TargetAssetId *string `mandatory:"true" contributesTo:"path" name:"targetAssetId"`
// The information to be updated.
UpdateTargetAssetDetails `contributesTo:"body"`
// A token that uniquely identifies a request so it can be retried in case of a timeout or
// server error without risk of executing that same action again. Retry tokens expire after 24
// hours, but can be invalidated before that due to conflicting operations. For example, if a resource
// has been deleted and purged from the system, then a retry of the original creation request
// might be rejected.
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// For optimistic concurrency control. In the PUT or DELETE call
// for a resource, set the `if-match` parameter to the value of the
// etag from a previous GET or POST response for that resource.
// The resource will be updated or deleted only if the etag you
// provide matches the resource's current etag value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`
// The client request ID for tracing.
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
// Metadata about the request. This information will not be transmitted to the service, but
// represents information that the SDK will consume to drive retry behavior.
RequestMetadata common.RequestMetadata
}
func (request UpdateTargetAssetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateTargetAssetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateTargetAssetRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateTargetAssetRequest) String() string
func (request UpdateTargetAssetRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateTargetAssetResponse wrapper for the UpdateTargetAsset operation
type UpdateTargetAssetResponse struct {
// The underlying http response
RawResponse *http.Response
// Unique Oracle-assigned identifier for the request. If you need to contact
// Oracle about a particular request, please provide the request ID.
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}
func (response UpdateTargetAssetResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateTargetAssetResponse) String() string
UpdateVmAssetDetails The information of VM asset to be updated.
type UpdateVmAssetDetails struct {
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m UpdateVmAssetDetails) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m UpdateVmAssetDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m UpdateVmAssetDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m UpdateVmAssetDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m UpdateVmAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateVmAssetDetails) String() string
func (m UpdateVmAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateVmTargetAssetDetails Description of the VM target asset.
type UpdateVmTargetAssetDetails struct {
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"false" json:"isExcludedFromExecution"`
// Performance of the block volumes.
BlockVolumesPerformance *int `mandatory:"false" json:"blockVolumesPerformance"`
// Microsoft license for VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
UserSpec *LaunchInstanceDetails `mandatory:"false" json:"userSpec"`
// Preferred VM shape type that you provided.
PreferredShapeType VmTargetAssetPreferredShapeTypeEnum `mandatory:"false" json:"preferredShapeType,omitempty"`
}
func (m UpdateVmTargetAssetDetails) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m UpdateVmTargetAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateVmTargetAssetDetails) String() string
func (m UpdateVmTargetAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateVmWareAssetSourceDetails VMware asset source update request.
type UpdateVmWareAssetSourceDetails struct {
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"false" json:"assetsCompartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be assigned to an asset source.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// Endpoint for VMware asset discovery and replication in the form of ```https://<host>:<port>/sdk```
VcenterEndpoint *string `mandatory:"false" json:"vcenterEndpoint"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"false" json:"discoveryCredentials"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m UpdateVmWareAssetSourceDetails) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m UpdateVmWareAssetSourceDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m UpdateVmWareAssetSourceDetails) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m UpdateVmWareAssetSourceDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m UpdateVmWareAssetSourceDetails) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m UpdateVmWareAssetSourceDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m UpdateVmWareAssetSourceDetails) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m UpdateVmWareAssetSourceDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateVmWareAssetSourceDetails) String() string
func (m UpdateVmWareAssetSourceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateVmwareVmAssetDetails The information of VMware VM asset to be updated.
type UpdateVmwareVmAssetDetails struct {
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
Compute *ComputeProperties `mandatory:"false" json:"compute"`
Vm *VmProperties `mandatory:"false" json:"vm"`
VmwareVm *VmwareVmProperties `mandatory:"false" json:"vmwareVm"`
VmwareVCenter *VmwareVCenterProperties `mandatory:"false" json:"vmwareVCenter"`
}
func (m UpdateVmwareVmAssetDetails) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m UpdateVmwareVmAssetDetails) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m UpdateVmwareVmAssetDetails) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m UpdateVmwareVmAssetDetails) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m UpdateVmwareVmAssetDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m UpdateVmwareVmAssetDetails) String() string
func (m UpdateVmwareVmAssetDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VcpuPin vCPU Pin
type VcpuPin struct {
// CPU Set
CpuSet *string `mandatory:"false" json:"cpuSet"`
// vCPU number
Vcpu *int `mandatory:"false" json:"vcpu"`
}
func (m VcpuPin) String() string
func (m VcpuPin) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmAsset VM type of asset.
type VmAsset struct {
// Inventory ID to which an asset belongs to.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// Asset OCID that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment to which an asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key that the asset belongs to.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
// The time when the asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
Compute *ComputeProperties `mandatory:"true" json:"compute"`
Vm *VmProperties `mandatory:"true" json:"vm"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// The current state of the asset.
LifecycleState AssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m VmAsset) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m VmAsset) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m VmAsset) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m VmAsset) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m VmAsset) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m VmAsset) GetExternalAssetKey() *string
GetExternalAssetKey returns ExternalAssetKey
func (m VmAsset) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m VmAsset) GetId() *string
GetId returns Id
func (m VmAsset) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m VmAsset) GetLifecycleState() AssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m VmAsset) GetSourceKey() *string
GetSourceKey returns SourceKey
func (m VmAsset) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m VmAsset) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m VmAsset) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m VmAsset) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VmAsset) String() string
func (m VmAsset) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmProperties Virtual machine related properties.
type VmProperties struct {
// Hypervisor vendor.
HypervisorVendor *string `mandatory:"false" json:"hypervisorVendor"`
// Hypervisor version.
HypervisorVersion *string `mandatory:"false" json:"hypervisorVersion"`
// Host name/IP address of VM on which the host is running.
HypervisorHost *string `mandatory:"false" json:"hypervisorHost"`
}
func (m VmProperties) String() string
func (m VmProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmTargetAsset Description of the VM target asset.
type VmTargetAsset struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// OCID of the associated migration plan.
MigrationPlanId *string `mandatory:"true" json:"migrationPlanId"`
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"true" json:"isExcludedFromExecution"`
EstimatedCost *CostEstimation `mandatory:"true" json:"estimatedCost"`
// The time when the target asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the target asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// The time when the assessment was done. An RFC3339 formatted datetime string.
TimeAssessed *common.SDKTime `mandatory:"true" json:"timeAssessed"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// Compartment identifier
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// Created resource identifier
CreatedResourceId *string `mandatory:"false" json:"createdResourceId"`
// Messages about the compatibility issues.
CompatibilityMessages []CompatibilityMessage `mandatory:"false" json:"compatibilityMessages"`
MigrationAsset *MigrationAsset `mandatory:"false" json:"migrationAsset"`
TestSpec *LaunchInstanceDetails `mandatory:"false" json:"testSpec"`
// Performance of the block volumes.
BlockVolumesPerformance *int `mandatory:"false" json:"blockVolumesPerformance"`
// Microsoft license for VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
UserSpec *LaunchInstanceDetails `mandatory:"false" json:"userSpec"`
RecommendedSpec *LaunchInstanceDetails `mandatory:"false" json:"recommendedSpec"`
// Preferred VM shape type that you provide.
PreferredShapeType VmTargetAssetPreferredShapeTypeEnum `mandatory:"true" json:"preferredShapeType"`
// The current state of the target asset.
LifecycleState TargetAssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
}
func (m VmTargetAsset) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m VmTargetAsset) GetCompatibilityMessages() []CompatibilityMessage
GetCompatibilityMessages returns CompatibilityMessages
func (m VmTargetAsset) GetCreatedResourceId() *string
GetCreatedResourceId returns CreatedResourceId
func (m VmTargetAsset) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m VmTargetAsset) GetEstimatedCost() *CostEstimation
GetEstimatedCost returns EstimatedCost
func (m VmTargetAsset) GetId() *string
GetId returns Id
func (m VmTargetAsset) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m VmTargetAsset) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m VmTargetAsset) GetLifecycleState() TargetAssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m VmTargetAsset) GetMigrationAsset() *MigrationAsset
GetMigrationAsset returns MigrationAsset
func (m VmTargetAsset) GetMigrationPlanId() *string
GetMigrationPlanId returns MigrationPlanId
func (m VmTargetAsset) GetTimeAssessed() *common.SDKTime
GetTimeAssessed returns TimeAssessed
func (m VmTargetAsset) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m VmTargetAsset) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m VmTargetAsset) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VmTargetAsset) String() string
func (m VmTargetAsset) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmTargetAssetPreferredShapeTypeEnum Enum with underlying type: string
type VmTargetAssetPreferredShapeTypeEnum string
Set of constants representing the allowable values for VmTargetAssetPreferredShapeTypeEnum
const (
VmTargetAssetPreferredShapeTypeVm VmTargetAssetPreferredShapeTypeEnum = "VM"
VmTargetAssetPreferredShapeTypeVmIntel VmTargetAssetPreferredShapeTypeEnum = "VM_INTEL"
VmTargetAssetPreferredShapeTypeVmIntelStandard VmTargetAssetPreferredShapeTypeEnum = "VM_INTEL_Standard"
VmTargetAssetPreferredShapeTypeVmIntelDensio VmTargetAssetPreferredShapeTypeEnum = "VM_INTEL_DensIO"
VmTargetAssetPreferredShapeTypeVmIntelGpu VmTargetAssetPreferredShapeTypeEnum = "VM_INTEL_GPU"
VmTargetAssetPreferredShapeTypeVmIntelOptimized VmTargetAssetPreferredShapeTypeEnum = "VM_INTEL_Optimized"
VmTargetAssetPreferredShapeTypeVmAmd VmTargetAssetPreferredShapeTypeEnum = "VM_AMD"
VmTargetAssetPreferredShapeTypeVmAmdStandard VmTargetAssetPreferredShapeTypeEnum = "VM_AMD_Standard"
)
func GetMappingVmTargetAssetPreferredShapeTypeEnum(val string) (VmTargetAssetPreferredShapeTypeEnum, bool)
GetMappingVmTargetAssetPreferredShapeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetVmTargetAssetPreferredShapeTypeEnumValues() []VmTargetAssetPreferredShapeTypeEnum
GetVmTargetAssetPreferredShapeTypeEnumValues Enumerates the set of values for VmTargetAssetPreferredShapeTypeEnum
VmTargetAssetSummary Summary of the VM target asset.
type VmTargetAssetSummary struct {
// Unique identifier that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// OCID of the associated migration plan.
MigrationPlanId *string `mandatory:"true" json:"migrationPlanId"`
// A boolean indicating whether the asset should be migrated.
IsExcludedFromExecution *bool `mandatory:"true" json:"isExcludedFromExecution"`
EstimatedCost *CostEstimation `mandatory:"true" json:"estimatedCost"`
// The time when the target asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the target asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// The time when the assessment was done. An RFC3339 formatted datetime string.
TimeAssessed *common.SDKTime `mandatory:"true" json:"timeAssessed"`
UserSpec *LaunchInstanceDetails `mandatory:"true" json:"userSpec"`
RecommendedSpec *LaunchInstanceDetails `mandatory:"true" json:"recommendedSpec"`
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// Compartment identifier
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// Created resource identifier
CreatedResourceId *string `mandatory:"false" json:"createdResourceId"`
// Messages about compatibility issues.
CompatibilityMessages []CompatibilityMessage `mandatory:"false" json:"compatibilityMessages"`
// A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
MigrationAsset *MigrationAssetSummary `mandatory:"false" json:"migrationAsset"`
// Performance of the block volumes.
BlockVolumesPerformance *int `mandatory:"false" json:"blockVolumesPerformance"`
// Microsoft license for VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
// The current state of the target asset.
LifecycleState TargetAssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The preferred VM shape type that you provide.
PreferredShapeType VmTargetAssetPreferredShapeTypeEnum `mandatory:"true" json:"preferredShapeType"`
}
func (m VmTargetAssetSummary) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m VmTargetAssetSummary) GetCompatibilityMessages() []CompatibilityMessage
GetCompatibilityMessages returns CompatibilityMessages
func (m VmTargetAssetSummary) GetCreatedResourceId() *string
GetCreatedResourceId returns CreatedResourceId
func (m VmTargetAssetSummary) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m VmTargetAssetSummary) GetEstimatedCost() *CostEstimation
GetEstimatedCost returns EstimatedCost
func (m VmTargetAssetSummary) GetId() *string
GetId returns Id
func (m VmTargetAssetSummary) GetIsExcludedFromExecution() *bool
GetIsExcludedFromExecution returns IsExcludedFromExecution
func (m VmTargetAssetSummary) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m VmTargetAssetSummary) GetLifecycleState() TargetAssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m VmTargetAssetSummary) GetMigrationAsset() *MigrationAssetSummary
GetMigrationAsset returns MigrationAsset
func (m VmTargetAssetSummary) GetMigrationPlanId() *string
GetMigrationPlanId returns MigrationPlanId
func (m VmTargetAssetSummary) GetTimeAssessed() *common.SDKTime
GetTimeAssessed returns TimeAssessed
func (m VmTargetAssetSummary) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m VmTargetAssetSummary) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m VmTargetAssetSummary) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VmTargetAssetSummary) String() string
func (m VmTargetAssetSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmTargetEnvironment Description of the VM target environment.
type VmTargetEnvironment struct {
// OCID of the VM configuration VCN.
Vcn *string `mandatory:"true" json:"vcn"`
// OCID of the VM configuration subnet.
Subnet *string `mandatory:"true" json:"subnet"`
// Target compartment identifier
TargetCompartmentId *string `mandatory:"false" json:"targetCompartmentId"`
// Availability Domain of the VM configuration.
AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"`
// Fault domain of the VM configuration.
FaultDomain *string `mandatory:"false" json:"faultDomain"`
// OCID of the dedicated VM configuration host.
DedicatedVmHost *string `mandatory:"false" json:"dedicatedVmHost"`
// Microsoft license for the VM configuration.
MsLicense *string `mandatory:"false" json:"msLicense"`
// Preferred VM shape type provided by the customer.
PreferredShapeType VmTargetAssetPreferredShapeTypeEnum `mandatory:"false" json:"preferredShapeType,omitempty"`
}
func (m VmTargetEnvironment) GetTargetCompartmentId() *string
GetTargetCompartmentId returns TargetCompartmentId
func (m VmTargetEnvironment) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VmTargetEnvironment) String() string
func (m VmTargetEnvironment) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmWareAssetSource VMware asset source. Used for discovery of virtual machines (VMs) registered in the VMware vCenter installation.
type VmWareAssetSource struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// The detailed state of the asset source.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The time when the asset source was created in the RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The point in time that the asset source was last updated in the RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
// Endpoint for VMware asset discovery and replication in the form of ```https://<host>:<port>/sdk```
VcenterEndpoint *string `mandatory:"true" json:"vcenterEndpoint"`
DiscoveryCredentials *AssetSourceCredentials `mandatory:"true" json:"discoveryCredentials"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an attached discovery schedule.
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
// The current state of the asset source.
LifecycleState AssetSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m VmWareAssetSource) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m VmWareAssetSource) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m VmWareAssetSource) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m VmWareAssetSource) GetDiscoveryScheduleId() *string
GetDiscoveryScheduleId returns DiscoveryScheduleId
func (m VmWareAssetSource) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m VmWareAssetSource) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m VmWareAssetSource) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m VmWareAssetSource) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m VmWareAssetSource) GetId() *string
GetId returns Id
func (m VmWareAssetSource) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m VmWareAssetSource) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m VmWareAssetSource) GetLifecycleState() AssetSourceLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m VmWareAssetSource) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m VmWareAssetSource) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m VmWareAssetSource) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m VmWareAssetSource) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VmWareAssetSource) String() string
func (m VmWareAssetSource) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmWareAssetSourceSummary Summary of an VMware asset source provided in the list.
type VmWareAssetSourceSummary struct {
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the environment.
EnvironmentId *string `mandatory:"true" json:"environmentId"`
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The detailed state of the asset source.
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
// Endpoint for VMware asset discovery and replication in the form of ```https://<host>:<port>/sdk```
VcenterEndpoint *string `mandatory:"true" json:"vcenterEndpoint"`
// The time when the asset source was created in RFC3339 format.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The point in time that the asset source was last updated in RFC3339 format.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// The current state of the asset source.
LifecycleState AssetSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m VmWareAssetSourceSummary) GetAssetsCompartmentId() *string
GetAssetsCompartmentId returns AssetsCompartmentId
func (m VmWareAssetSourceSummary) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m VmWareAssetSourceSummary) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m VmWareAssetSourceSummary) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m VmWareAssetSourceSummary) GetEnvironmentId() *string
GetEnvironmentId returns EnvironmentId
func (m VmWareAssetSourceSummary) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m VmWareAssetSourceSummary) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m VmWareAssetSourceSummary) GetId() *string
GetId returns Id
func (m VmWareAssetSourceSummary) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m VmWareAssetSourceSummary) GetLifecycleDetails() *string
GetLifecycleDetails returns LifecycleDetails
func (m VmWareAssetSourceSummary) GetLifecycleState() AssetSourceLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m VmWareAssetSourceSummary) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m VmWareAssetSourceSummary) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m VmWareAssetSourceSummary) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m VmWareAssetSourceSummary) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VmWareAssetSourceSummary) String() string
func (m VmWareAssetSourceSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmwareVCenterProperties VMware vCenter related properties.
type VmwareVCenterProperties struct {
// vCenter unique key.
VcenterKey *string `mandatory:"false" json:"vcenterKey"`
// Dot-separated version string.
VcenterVersion *string `mandatory:"false" json:"vcenterVersion"`
// Data center name.
DataCenter *string `mandatory:"false" json:"dataCenter"`
}
func (m VmwareVCenterProperties) String() string
func (m VmwareVCenterProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmwareVmAsset VMware VM type of asset.
type VmwareVmAsset struct {
// Inventory ID to which an asset belongs to.
InventoryId *string `mandatory:"true" json:"inventoryId"`
// Asset OCID that is immutable on creation.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment to which an asset belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The source key that the asset belongs to.
SourceKey *string `mandatory:"true" json:"sourceKey"`
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`
// The time when the asset was created. An RFC3339 formatted datetime string.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The time when the asset was updated. An RFC3339 formatted datetime string.
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
Compute *ComputeProperties `mandatory:"true" json:"compute"`
Vm *VmProperties `mandatory:"true" json:"vm"`
VmwareVm *VmwareVmProperties `mandatory:"true" json:"vmwareVm"`
VmwareVCenter *VmwareVCenterProperties `mandatory:"true" json:"vmwareVCenter"`
// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`
// List of asset source OCID.
AssetSourceIds []string `mandatory:"false" json:"assetSourceIds"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
// The current state of the asset.
LifecycleState AssetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
EnvironmentType EnvironmentTypeEnum `mandatory:"false" json:"environmentType,omitempty"`
}
func (m VmwareVmAsset) GetAssetSourceIds() []string
GetAssetSourceIds returns AssetSourceIds
func (m VmwareVmAsset) GetCompartmentId() *string
GetCompartmentId returns CompartmentId
func (m VmwareVmAsset) GetDefinedTags() map[string]map[string]interface{}
GetDefinedTags returns DefinedTags
func (m VmwareVmAsset) GetDisplayName() *string
GetDisplayName returns DisplayName
func (m VmwareVmAsset) GetEnvironmentType() EnvironmentTypeEnum
GetEnvironmentType returns EnvironmentType
func (m VmwareVmAsset) GetExternalAssetKey() *string
GetExternalAssetKey returns ExternalAssetKey
func (m VmwareVmAsset) GetFreeformTags() map[string]string
GetFreeformTags returns FreeformTags
func (m VmwareVmAsset) GetId() *string
GetId returns Id
func (m VmwareVmAsset) GetInventoryId() *string
GetInventoryId returns InventoryId
func (m VmwareVmAsset) GetLifecycleState() AssetLifecycleStateEnum
GetLifecycleState returns LifecycleState
func (m VmwareVmAsset) GetSourceKey() *string
GetSourceKey returns SourceKey
func (m VmwareVmAsset) GetSystemTags() map[string]map[string]interface{}
GetSystemTags returns SystemTags
func (m VmwareVmAsset) GetTimeCreated() *common.SDKTime
GetTimeCreated returns TimeCreated
func (m VmwareVmAsset) GetTimeUpdated() *common.SDKTime
GetTimeUpdated returns TimeUpdated
func (m VmwareVmAsset) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m VmwareVmAsset) String() string
func (m VmwareVmAsset) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VmwareVmProperties VMware virtual machine related properties.
type VmwareVmProperties struct {
// Cluster name.
Cluster *string `mandatory:"false" json:"cluster"`
// Customer fields.
CustomerFields []string `mandatory:"false" json:"customerFields"`
// Customer defined tags.
CustomerTags []CustomerTag `mandatory:"false" json:"customerTags"`
// vCenter-specific identifier of the virtual machine.
InstanceUuid *string `mandatory:"false" json:"instanceUuid"`
// Path directory of the asset.
Path *string `mandatory:"false" json:"path"`
// VMware tools status.
VmwareToolsStatus *string `mandatory:"false" json:"vmwareToolsStatus"`
// Whether changed block tracking for this VM's disk is active.
IsDisksUuidEnabled *bool `mandatory:"false" json:"isDisksUuidEnabled"`
// Indicates that change tracking is supported for virtual disks of this virtual machine.
// However, even if change tracking is supported, it might not be available for all disks of the virtual machine.
IsDisksCbtEnabled *bool `mandatory:"false" json:"isDisksCbtEnabled"`
// Fault tolerance state.
FaultToleranceState *string `mandatory:"false" json:"faultToleranceState"`
// Fault tolerance bandwidth.
FaultToleranceBandwidth *int `mandatory:"false" json:"faultToleranceBandwidth"`
// Fault tolerance to secondary latency.
FaultToleranceSecondaryLatency *int `mandatory:"false" json:"faultToleranceSecondaryLatency"`
}
func (m VmwareVmProperties) String() string
func (m VmwareVmProperties) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VolumeAttachment Describes volume attachment details.
type VolumeAttachment struct {
// Indicates whether the EBS volume is deleted on instance termination.
IsDeleteOnTermination *bool `mandatory:"false" json:"isDeleteOnTermination"`
// The device name.
Device *string `mandatory:"false" json:"device"`
// The ID of the instance.
InstanceKey *string `mandatory:"false" json:"instanceKey"`
// The attachment state of the volume.
Status *string `mandatory:"false" json:"status"`
// The ID of the volume.
VolumeKey *string `mandatory:"false" json:"volumeKey"`
}
func (m VolumeAttachment) String() string
func (m VolumeAttachment) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VolumeCostEstimation Cost estimation for volume
type VolumeCostEstimation struct {
// Gigabyte storage capacity
CapacityGb *float32 `mandatory:"true" json:"capacityGb"`
// Gigabyte storage capacity per month.
TotalGbPerMonth *float32 `mandatory:"true" json:"totalGbPerMonth"`
// Volume description
Description *string `mandatory:"false" json:"description"`
// Gigabyte storage capacity per month by subscription
TotalGbPerMonthBySubscription *float32 `mandatory:"false" json:"totalGbPerMonthBySubscription"`
}
func (m VolumeCostEstimation) String() string
func (m VolumeCostEstimation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
VolumeGroup Volume Group of the host storage
type VolumeGroup struct {
// A unique identifier of the volume group
Id *string `mandatory:"false" json:"id"`
// List of logical units of the volume group
LogicalUnits []LogicalUnit `mandatory:"false" json:"logicalUnits"`
}
func (m VolumeGroup) String() string
func (m VolumeGroup) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequest A description of a work request status.
type WorkRequest struct {
// The type of the work request.
OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`
// Status of current work request.
Status OperationStatusEnum `mandatory:"true" json:"status"`
// The ID of the work request.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment that contains the work request. Work requests should be scoped to
// the same compartment as the resource that is affected by the work request. If the work request affects multiple resources,
// and these resources are not in the same compartment, the service team can choose the primary
// resource of the compartment to be used.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The resources affected by this work request.
Resources []WorkRequestResource `mandatory:"true" json:"resources"`
// The percentage of request completed.
PercentComplete *float32 `mandatory:"true" json:"percentComplete"`
// The date and time when the request was created, as described in
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`
// The date and time when the request started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339),
// section 14.29.
TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`
// The date and time when the object was complete, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}
func (m WorkRequest) String() string
func (m WorkRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestError An error encountered while executing a work request.
type WorkRequestError struct {
// A machine-usable code for the error that occured. Error codes are listed on
// (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm)
Code *string `mandatory:"true" json:"code"`
// A human-readable description of the issue encountered.
Message *string `mandatory:"true" json:"message"`
// The time when the error occured. An RFC3339 formatted datetime string.
Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}
func (m WorkRequestError) String() string
func (m WorkRequestError) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestErrorCollection Results of the work request error search. Contains both work request error items and other information, such as metadata.
type WorkRequestErrorCollection struct {
// List of work request error objects.
Items []WorkRequestError `mandatory:"true" json:"items"`
}
func (m WorkRequestErrorCollection) String() string
func (m WorkRequestErrorCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestLogEntry A log message from the execution of a work request.
type WorkRequestLogEntry struct {
// Human-readable log message.
Message *string `mandatory:"true" json:"message"`
// The time when the log message was written. An RFC3339 formatted datetime string.
Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}
func (m WorkRequestLogEntry) String() string
func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestLogEntryCollection Results of the work request log search. Contains both work request log items and other information, such as metadata.
type WorkRequestLogEntryCollection struct {
// List of work request log entries.
Items []WorkRequestLogEntry `mandatory:"true" json:"items"`
}
func (m WorkRequestLogEntryCollection) String() string
func (m WorkRequestLogEntryCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestResource A resource that is created and operated by a work request.
type WorkRequestResource struct {
// The resource type that is affected by the work request.
EntityType *string `mandatory:"true" json:"entityType"`
// The way in which this resource is affected by the work is tracked in the work request.
// A resource being created, updated, or deleted will remain in the IN_PROGRESS state until
// work is complete for that resource. At this point, it transitions to CREATED, UPDATED,
// or DELETED, respectively.
ActionType ActionTypeEnum `mandatory:"true" json:"actionType"`
// The identifier of the resource that is affected by the work request.
Identifier *string `mandatory:"true" json:"identifier"`
// The URI path where you can do a GET operation to access the resource metadata.
EntityUri *string `mandatory:"false" json:"entityUri"`
}
func (m WorkRequestResource) String() string
func (m WorkRequestResource) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestSummary A summary of the status of a work request.
type WorkRequestSummary struct {
// The type of work request.
OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`
// Status of the current work request.
Status OperationStatusEnum `mandatory:"true" json:"status"`
// The ID of the work request.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment that contains the work request. Work requests should be scoped to
// the same compartment as the resource that is affected by the work request. If the work request affects multiple resources,
// and these resources are not in the same compartment, the service team can choose the primary
// resource of the compartment to be used.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The resources affected by this work request.
Resources []WorkRequestResource `mandatory:"true" json:"resources"`
// The percentage of request completed.
PercentComplete *float32 `mandatory:"true" json:"percentComplete"`
// The date and time when the request was created, as described in
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`
// The date and time when the request started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339),
// section 14.29.
TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`
// The date and time when the object was complete, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
// Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Usage of system tag keys. These predefined keys are scoped to namespaces.
// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}
func (m WorkRequestSummary) String() string
func (m WorkRequestSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
WorkRequestSummaryCollection Results of the work request search. Contains both work request items and other information, such as metadata.
type WorkRequestSummaryCollection struct {
// List of work request summary objects.
Items []WorkRequestSummary `mandatory:"true" json:"items"`
}
func (m WorkRequestSummaryCollection) String() string
func (m WorkRequestSummaryCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly