armmigrationdiscoverysap

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 14 Imported by: 0

README

Azure Migrationdiscovery Module for Go

PkgGoDev

The armmigrationdiscoverysap module provides operations for working with Azure Migrationdiscovery.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Migrationdiscovery module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Migrationdiscovery. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Migrationdiscovery module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armmigrationdiscoverysap.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armmigrationdiscoverysap.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewSapDiscoverySitesClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Migrationdiscovery label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType string

ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

const (
	ActionTypeInternal ActionType = "Internal"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns the possible values for the ActionType const type.

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewSapDiscoverySitesClient

func (c *ClientFactory) NewSapDiscoverySitesClient() *SapDiscoverySitesClient

NewSapDiscoverySitesClient creates a new instance of SapDiscoverySitesClient.

func (*ClientFactory) NewSapInstancesClient

func (c *ClientFactory) NewSapInstancesClient() *SapInstancesClient

NewSapInstancesClient creates a new instance of SapInstancesClient.

func (*ClientFactory) NewServerInstancesClient

func (c *ClientFactory) NewServerInstancesClient() *ServerInstancesClient

NewServerInstancesClient creates a new instance of ServerInstancesClient.

type ConfigurationData

type ConfigurationData struct {
	// READ-ONLY; Provide the CPU value of the server. For example, 16, 32 etc.
	CPU *int32

	// READ-ONLY; Provide the CPU clock speed of the server in MHz. This should be a non-zero value. For example, 2100.
	CPUInMhz *int32

	// READ-ONLY; Provide the CPU architecture type of the server. For example, Xeon Platinum 8171M, Xeon E5-2673 v3.
	CPUType *string

	// READ-ONLY; The database of this is a server instance. Applicable only if SAP instance type for this server instance is
	// 'DB'.
	DatabaseType *DatabaseType

	// READ-ONLY; Provide the HW manufacturer company of the server. For example, Microsoft Corporation.
	HardwareManufacturer *string

	// READ-ONLY; Specify if the Hardware is a physical server or virtual machine.
	Model *string

	// READ-ONLY; Provide the RAM of the server. This should be a non-zero value. For example, 256.
	RAM *int32

	// READ-ONLY; Provide the SAPS for each server of the SAP system. This should be a non-zero value. For example, 1000.
	Saps *int32

	// READ-ONLY; Provide the target HANA database size you need. Applicable only if SAP instance type for this server instance
	// is 'DB' and you are migrating an AnyDb database to SAP S/4HANA.
	TargetHanaRAMSizeGB *int32

	// READ-ONLY; Provide the total disk IOPS capacity. Add the disk volume for each individual disk and provide the sum total
	// in this field.
	TotalDiskIops *int32

	// READ-ONLY; Provide the total disk volume capacity in GB. Add the disk volume for each individual disks and provide the
	// total sum in this field.
	TotalDiskSizeGB *int32
}

ConfigurationData - The SAP instance specific configuration data.

func (ConfigurationData) MarshalJSON

func (c ConfigurationData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConfigurationData.

func (*ConfigurationData) UnmarshalJSON

func (c *ConfigurationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationData.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type DataSource

type DataSource string

DataSource - The data source for this resource.

const (
	// DataSourceExcel - The type of DataSource- Excel.
	DataSourceExcel DataSource = "Excel"
	// DataSourceNative - The type of DataSource- Native.
	DataSourceNative DataSource = "Native"
)

func PossibleDataSourceValues

func PossibleDataSourceValues() []DataSource

PossibleDataSourceValues returns the possible values for the DataSource const type.

type DatabaseType

type DatabaseType string

DatabaseType - Select the database if this is a database server. Leave blank or add Not Applicable for all other instances except the Database Instance.

const (
	// DatabaseTypeAdabas - The type of Database- Adabas.
	DatabaseTypeAdabas DatabaseType = "Adabas"
	// DatabaseTypeDb2 - The type of Database- Db2.
	DatabaseTypeDb2 DatabaseType = "Db2"
	// DatabaseTypeHANA - The type of Database- HANA.
	DatabaseTypeHANA DatabaseType = "HANA"
	// DatabaseTypeInformix - The type of Database- Informix.
	DatabaseTypeInformix DatabaseType = "Informix"
	// DatabaseTypeOracle - The type of Database- Oracle.
	DatabaseTypeOracle DatabaseType = "Oracle"
	// DatabaseTypeSAPASE - The type of Database- SAPASE.
	DatabaseTypeSAPASE DatabaseType = "SAPASE"
	// DatabaseTypeSAPDB - The type of Database- SAPDB.
	DatabaseTypeSAPDB DatabaseType = "SAPDB"
	// DatabaseTypeSAPMaxDB - The type of Database- SAPMaxDB.
	DatabaseTypeSAPMaxDB DatabaseType = "SAPMaxDB"
	// DatabaseTypeSQLServer - The type of Database- SQLServer.
	DatabaseTypeSQLServer DatabaseType = "SQLServer"
)

func PossibleDatabaseTypeValues

func PossibleDatabaseTypeValues() []DatabaseType

PossibleDatabaseTypeValues returns the possible values for the DatabaseType const type.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// READ-ONLY; The additional info.
	Info any

	// READ-ONLY; The additional info type.
	Type *string
}

ErrorAdditionalInfo - The resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.

func (*ErrorAdditionalInfo) UnmarshalJSON

func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.

type ErrorDefinition

type ErrorDefinition struct {
	// READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string

	// READ-ONLY; Internal error details.
	Details []*ErrorDefinition

	// READ-ONLY; Description of the error.
	Message *string

	// READ-ONLY; Description of the recommendation.
	Recommendation *string
}

ErrorDefinition - Error definition.

func (ErrorDefinition) MarshalJSON

func (e ErrorDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorDefinition.

func (*ErrorDefinition) UnmarshalJSON

func (e *ErrorDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDefinition.

type ErrorDetail

type ErrorDetail struct {
	// READ-ONLY; The error additional info.
	AdditionalInfo []*ErrorAdditionalInfo

	// READ-ONLY; The error code.
	Code *string

	// READ-ONLY; The error details.
	Details []*ErrorDetail

	// READ-ONLY; The error message.
	Message *string

	// READ-ONLY; The error target.
	Target *string
}

ErrorDetail - The error detail.

func (ErrorDetail) MarshalJSON

func (e ErrorDetail) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorDetail.

func (*ErrorDetail) UnmarshalJSON

func (e *ErrorDetail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.

type ExcelPerformanceData

type ExcelPerformanceData struct {
	// REQUIRED; The data source of the performance data.
	DataSource *DataSource

	// READ-ONLY; Provide the max CPU percentage load on the server. Omit the percentage symbol while filling this value.
	MaxCPULoad *int32

	// READ-ONLY; Provide the source Database size in GB. Applicable only if SAP instance type for this server instance is 'DB'.
	TotalSourceDbSizeGB *int32
}

ExcelPerformanceData - The SAP instance specific performance data for Excel import.

func (*ExcelPerformanceData) GetPerformanceData

func (e *ExcelPerformanceData) GetPerformanceData() *PerformanceData

GetPerformanceData implements the PerformanceDataClassification interface for type ExcelPerformanceData.

func (ExcelPerformanceData) MarshalJSON

func (e ExcelPerformanceData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExcelPerformanceData.

func (*ExcelPerformanceData) UnmarshalJSON

func (e *ExcelPerformanceData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExcelPerformanceData.

type ExtendedLocation

type ExtendedLocation struct {
	// REQUIRED; The extended location name.
	Name *string

	// REQUIRED; The extended location type.
	Type *string
}

ExtendedLocation - The extended location definition.

func (ExtendedLocation) MarshalJSON

func (e ExtendedLocation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExtendedLocation.

func (*ExtendedLocation) UnmarshalJSON

func (e *ExtendedLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedLocation.

type NativePerformanceData

type NativePerformanceData struct {
	// REQUIRED; The data source of the performance data.
	DataSource *DataSource
}

NativePerformanceData - The SAP instance specific performance data for native discovery.

func (*NativePerformanceData) GetPerformanceData

func (n *NativePerformanceData) GetPerformanceData() *PerformanceData

GetPerformanceData implements the PerformanceDataClassification interface for type NativePerformanceData.

func (NativePerformanceData) MarshalJSON

func (n NativePerformanceData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NativePerformanceData.

func (*NativePerformanceData) UnmarshalJSON

func (n *NativePerformanceData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NativePerformanceData.

type OperatingSystem

type OperatingSystem string

OperatingSystem - This is Operating System on which the host server is running.

const (
	// OperatingSystemIBMAIX - The type of Operating system- IBMAIX.
	OperatingSystemIBMAIX OperatingSystem = "IBMAIX"
	// OperatingSystemRedHat - The type of Operating system- RedHat.
	OperatingSystemRedHat OperatingSystem = "RedHat"
	// OperatingSystemSUSE - The type of Operating system- SUSE.
	OperatingSystemSUSE OperatingSystem = "SUSE"
	// OperatingSystemSolaris - The type of Operating system- Solaris.
	OperatingSystemSolaris OperatingSystem = "Solaris"
	// OperatingSystemUnix - The type of Operating system- Unix.
	OperatingSystemUnix OperatingSystem = "Unix"
	// OperatingSystemWindowsServer - The type of Operating system- WindowsServer.
	OperatingSystemWindowsServer OperatingSystem = "WindowsServer"
)

func PossibleOperatingSystemValues

func PossibleOperatingSystemValues() []OperatingSystem

PossibleOperatingSystemValues returns the possible values for the OperatingSystem const type.

type Operation

type Operation struct {
	// Localized display information for this particular operation.
	Display *OperationDisplay

	// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
	ActionType *ActionType

	// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane
	// operations.
	IsDataAction *bool

	// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
	// "Microsoft.Compute/virtualMachines/capture/action"
	Name *string

	// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
	// value is "user,system"
	Origin *Origin
}

Operation - Details of a REST API operation, returned from the Resource Provider Operations API

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string

	// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
	// Machine", "Restart Virtual Machine".
	Operation *string

	// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
	// Compute".
	Provider *string

	// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
	// Schedule Collections".
	Resource *string
}

OperationDisplay - Localized display information for this particular operation.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON

func (o *OperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.

type OperationListResult

type OperationListResult struct {
	// READ-ONLY; URL to get the next set of operation list results (if there are any).
	NextLink *string

	// READ-ONLY; List of operations supported by the resource provider
	Value []*Operation
}

OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationStatusResult

type OperationStatusResult struct {
	// REQUIRED; Operation status.
	Status *string

	// The end time of the operation.
	EndTime *time.Time

	// If present, details of the operation error.
	Error *ErrorDetail

	// Fully qualified ID for the async operation.
	ID *string

	// Name of the async operation.
	Name *string

	// The operations list.
	Operations []*OperationStatusResult

	// Percent of the operation that is complete.
	PercentComplete *float32

	// The start time of the operation.
	StartTime *time.Time
}

OperationStatusResult - The current status of an async operation.

func (OperationStatusResult) MarshalJSON

func (o OperationStatusResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationStatusResult.

func (*OperationStatusResult) UnmarshalJSON

func (o *OperationStatusResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatusResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - List the operations for the provider

Generated from API version 2023-10-01-preview

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/operations/preview/2023-10-01-preview/examples/Operations_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperationsClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OperationListResult = armmigrationdiscoverysap.OperationListResult{
		// 	Value: []*armmigrationdiscoverysap.Operation{
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor."),
		// 				Operation: to.Ptr("monitors_List"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Gets a list of SAP monitors in the specified resource group."),
		// 				Operation: to.Ptr("monitors_ListByResourceGroup"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Gets properties of a SAP monitor for the specified subscription, resource group, and resource name."),
		// 				Operation: to.Ptr("monitors_Get"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Creates a SAP monitor for the specified subscription, resource group, and resource name."),
		// 				Operation: to.Ptr("monitors_Create"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/delete"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Deletes a SAP monitor with the specified subscription, resource group, and monitor name."),
		// 				Operation: to.Ptr("monitors_Delete"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name."),
		// 				Operation: to.Ptr("monitors_Update"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/providerInstances/read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each provider instances."),
		// 				Operation: to.Ptr("ProviderInstances_List"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/providerInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/providerInstances/read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Gets properties of a provider instance for the specified subscription, resource group, Monitor name, and resource name."),
		// 				Operation: to.Ptr("ProviderInstances_Get"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/providerInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/providerInstances/write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Creates a provider instance for the specified subscription, resource group, Monitor name, and resource name."),
		// 				Operation: to.Ptr("ProviderInstances_Create"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/providerInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/providerInstances/delete"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Deletes a provider instance for the specified subscription, resource group, Monitor name, and resource name."),
		// 				Operation: to.Ptr("ProviderInstances_Delete"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/providerInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor/read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Gets a list of properties of a SAP Landscape monitor configuration for the specified subscription, resource group, and resource name."),
		// 				Operation: to.Ptr("SapLandscapeMonitor_List"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/sapLandscapeMonitor"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor/read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Gets properties of a SAP Landscape monitor configuration for the specified subscription, resource group, and resource name."),
		// 				Operation: to.Ptr("SapLandscapeMonitor_Get"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/sapLandscapeMonitor"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor/write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Creates a SAP Landscape monitor configuration for the specified subscription, resource group, and resource name."),
		// 				Operation: to.Ptr("SapLandscapeMonitor_Create"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/sapLandscapeMonitor"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor/delete"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Deletes a SAP Landscape monitor configuration with the specified subscription, resource group, and monitor name."),
		// 				Operation: to.Ptr("SapLandscapeMonitor_Delete"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("monitors/sapLandscapeMonitor"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/Write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Set SapDiscoverySites"),
		// 				Operation: to.Ptr("Creates or updates the SapDiscoverySites"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("SapDiscoverySites"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/Delete"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Delete SapDiscoverySites"),
		// 				Operation: to.Ptr("Deletes the SapDiscoverySites"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("SapDiscoverySites"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/Read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Read SapDiscoverySites"),
		// 				Operation: to.Ptr("Reads the SapDiscoverySites"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("SapDiscoverySites"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/SapInstances/Write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Set SapInstances"),
		// 				Operation: to.Ptr("Creates or updates the SapInstances"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("SapInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/SapInstances/Delete"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Delete SapInstances"),
		// 				Operation: to.Ptr("Deletes the SapInstances"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("SapInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/SapInstances/Read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Read SapInstances"),
		// 				Operation: to.Ptr("Reads the SapInstances"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("SapInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/SapInstances/serverInstances/Write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Set serverInstances"),
		// 				Operation: to.Ptr("Creates or updates the serverInstances"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("serverInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/SapInstances/serverInstances/Delete"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Delete serverInstances"),
		// 				Operation: to.Ptr("Deletes the serverInstances"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("serverInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/SapDiscoverySites/SapInstances/serverInstances/Read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Read serverInstances"),
		// 				Operation: to.Ptr("Reads the serverInstances"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("serverInstances"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/connectors/Write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Set connectors"),
		// 				Operation: to.Ptr("Creates or updates the connectors"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("connectors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/connectors/Read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Read connectors"),
		// 				Operation: to.Ptr("Reads the connectors"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("connectors"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/connectors/acssBackups/Write"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Set acssBackups"),
		// 				Operation: to.Ptr("Creates or updates the acssBackups"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("acssBackups"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Workloads/connectors/acssBackups/Read"),
		// 			Display: &armmigrationdiscoverysap.OperationDisplay{
		// 				Description: to.Ptr("Read acssBackups"),
		// 				Operation: to.Ptr("Reads the acssBackups"),
		// 				Provider: to.Ptr("Microsoft.Workloads"),
		// 				Resource: to.Ptr("acssBackups"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 	}},
		// }
	}
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type Origin

type Origin string

Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

const (
	OriginSystem     Origin = "system"
	OriginUser       Origin = "user"
	OriginUserSystem Origin = "user,system"
)

func PossibleOriginValues

func PossibleOriginValues() []Origin

PossibleOriginValues returns the possible values for the Origin const type.

type PerformanceData

type PerformanceData struct {
	// REQUIRED; The data source of the performance data.
	DataSource *DataSource
}

PerformanceData - The SAP instance specific performance data.

func (*PerformanceData) GetPerformanceData

func (p *PerformanceData) GetPerformanceData() *PerformanceData

GetPerformanceData implements the PerformanceDataClassification interface for type PerformanceData.

func (PerformanceData) MarshalJSON

func (p PerformanceData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PerformanceData.

func (*PerformanceData) UnmarshalJSON

func (p *PerformanceData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PerformanceData.

type PerformanceDataClassification

type PerformanceDataClassification interface {
	// GetPerformanceData returns the PerformanceData content of the underlying type.
	GetPerformanceData() *PerformanceData
}

PerformanceDataClassification provides polymorphic access to related types. Call the interface's GetPerformanceData() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExcelPerformanceData, *NativePerformanceData, *PerformanceData

type ProvisioningState

type ProvisioningState string

ProvisioningState - Defines the provisioning states.

const (
	// ProvisioningStateAccepted - The provisioning state Accepted.
	ProvisioningStateAccepted ProvisioningState = "Accepted"
	// ProvisioningStateCanceled - The provisioning state Cancelled.
	ProvisioningStateCanceled ProvisioningState = "Canceled"
	// ProvisioningStateCreating - The provisioning state Creating.
	ProvisioningStateCreating ProvisioningState = "Creating"
	// ProvisioningStateDeleting - The provisioning state Deleting.
	ProvisioningStateDeleting ProvisioningState = "Deleting"
	// ProvisioningStateFailed - The provisioning state Failed.
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateSucceeded - The provisioning state Succeeded.
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	// ProvisioningStateUnknown - The provisioning state Unknown.
	ProvisioningStateUnknown ProvisioningState = "Unknown"
	// ProvisioningStateUpdating - The provisioning state Updating.
	ProvisioningStateUpdating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

type SAPDiscoverySite

type SAPDiscoverySite struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The extended location definition.
	ExtendedLocation *ExtendedLocation

	// The resource-specific properties for this resource.
	Properties *SAPDiscoverySiteProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SAPDiscoverySite - Define the SAP Migration discovery site resource.

func (SAPDiscoverySite) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPDiscoverySite.

func (*SAPDiscoverySite) UnmarshalJSON

func (s *SAPDiscoverySite) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDiscoverySite.

type SAPDiscoverySiteListResult

type SAPDiscoverySiteListResult struct {
	// REQUIRED; The SAPDiscoverySite items on this page
	Value []*SAPDiscoverySite

	// READ-ONLY; The link to the next page of items
	NextLink *string
}

SAPDiscoverySiteListResult - The response of a SAPDiscoverySite list operation.

func (SAPDiscoverySiteListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPDiscoverySiteListResult.

func (*SAPDiscoverySiteListResult) UnmarshalJSON

func (s *SAPDiscoverySiteListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDiscoverySiteListResult.

type SAPDiscoverySiteProperties

type SAPDiscoverySiteProperties struct {
	// The master site ID from Azure Migrate.
	MasterSiteID *string

	// The migrate project ID from Azure Migrate.
	MigrateProjectID *string

	// READ-ONLY; Indicates any errors on the SAP Migration discovery site resource.
	Errors *SAPMigrateError

	// READ-ONLY; Defines the provisioning states.
	ProvisioningState *ProvisioningState
}

SAPDiscoverySiteProperties - Defines the SAP Migration discovery site resource properties.

func (SAPDiscoverySiteProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPDiscoverySiteProperties.

func (*SAPDiscoverySiteProperties) UnmarshalJSON

func (s *SAPDiscoverySiteProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDiscoverySiteProperties.

type SAPDiscoverySiteTagsUpdate

type SAPDiscoverySiteTagsUpdate struct {
	// Resource tags.
	Tags map[string]*string
}

SAPDiscoverySiteTagsUpdate - The type used for updating tags in SAPDiscoverySite resources.

func (SAPDiscoverySiteTagsUpdate) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPDiscoverySiteTagsUpdate.

func (*SAPDiscoverySiteTagsUpdate) UnmarshalJSON

func (s *SAPDiscoverySiteTagsUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDiscoverySiteTagsUpdate.

type SAPInstance

type SAPInstance struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The resource-specific properties for this resource.
	Properties *SAPInstanceProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SAPInstance - Define the SAP Instance resource.

func (SAPInstance) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPInstance.

func (*SAPInstance) UnmarshalJSON

func (s *SAPInstance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPInstance.

type SAPInstanceListResult

type SAPInstanceListResult struct {
	// REQUIRED; The SAPInstance items on this page
	Value []*SAPInstance

	// READ-ONLY; The link to the next page of items
	NextLink *string
}

SAPInstanceListResult - The response of a SAPInstance list operation.

func (SAPInstanceListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPInstanceListResult.

func (*SAPInstanceListResult) UnmarshalJSON

func (s *SAPInstanceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPInstanceListResult.

type SAPInstanceProperties

type SAPInstanceProperties struct {
	// READ-ONLY; Enter a business function/department identifier to group multiple SIDs.
	Application *string

	// READ-ONLY; The Environment; PRD, QA, DEV, etc to which SAP system belongs to. Select from the list of available dropdown
	// values.
	Environment *SapInstanceEnvironment

	// READ-ONLY; Defines the errors related to SAP Instance resource.
	Errors *SAPMigrateError

	// READ-ONLY; This is the SID of the production system in a landscape. An SAP system could itself be a production SID or a
	// part of a landscape with a different Production SID. This field can be used to relate
	// non-prod SIDs, other components, SID (WEBDISP) to the prod SID. Enter the value of Production SID.
	LandscapeSid *string

	// READ-ONLY; Defines the provisioning states.
	ProvisioningState *ProvisioningState

	// READ-ONLY; This is the SID of SAP System. Keeping this not equal to ID as different landscapes can have repeated System
	// SID IDs.
	SystemSid *string
}

SAPInstanceProperties - Defines the SAP Instance properties.

func (SAPInstanceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPInstanceProperties.

func (*SAPInstanceProperties) UnmarshalJSON

func (s *SAPInstanceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPInstanceProperties.

type SAPInstanceTagsUpdate

type SAPInstanceTagsUpdate struct {
	// Resource tags.
	Tags map[string]*string
}

SAPInstanceTagsUpdate - The type used for updating tags in SAPInstance resources.

func (SAPInstanceTagsUpdate) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPInstanceTagsUpdate.

func (*SAPInstanceTagsUpdate) UnmarshalJSON

func (s *SAPInstanceTagsUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPInstanceTagsUpdate.

type SAPMigrateError

type SAPMigrateError struct {
	// The SAP Discovery site resource error body.
	Properties *ErrorDefinition
}

SAPMigrateError - An error response from the SAP migrate resources.

func (SAPMigrateError) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SAPMigrateError.

func (*SAPMigrateError) UnmarshalJSON

func (s *SAPMigrateError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SAPMigrateError.

type SapDiscoverySitesClient

type SapDiscoverySitesClient struct {
	// contains filtered or unexported fields
}

SapDiscoverySitesClient contains the methods for the SapDiscoverySites group. Don't use this type directly, use NewSapDiscoverySitesClient() instead.

func NewSapDiscoverySitesClient

func NewSapDiscoverySitesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SapDiscoverySitesClient, error)

NewSapDiscoverySitesClient creates a new instance of SapDiscoverySitesClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SapDiscoverySitesClient) BeginCreate

func (client *SapDiscoverySitesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, resource SAPDiscoverySite, options *SapDiscoverySitesClientBeginCreateOptions) (*runtime.Poller[SapDiscoverySitesClientCreateResponse], error)

BeginCreate - Creates a discovery site resource for SAP Migration. This resource will be used to run system discovery and assessment with Azure Migrate. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • resource - Resource create parameters.
  • options - SapDiscoverySitesClientBeginCreateOptions contains the optional parameters for the SapDiscoverySitesClient.BeginCreate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPDiscoverySites_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSapDiscoverySitesClient().BeginCreate(ctx, "test-rg", "SampleSite", armmigrationdiscoverysap.SAPDiscoverySite{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"property1": to.Ptr("value1"),
			"property2": to.Ptr("value2"),
		},
		Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
			MasterSiteID:     to.Ptr("MasterSiteIdResourceId"),
			MigrateProjectID: to.Ptr("MigrateProjectId"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SAPDiscoverySite = armmigrationdiscoverysap.SAPDiscoverySite{
	// 	Name: to.Ptr("SampleSite"),
	// 	Type: to.Ptr("microsoft.workloads/sapDiscoverySites"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"property1": to.Ptr("value1"),
	// 		"property2": to.Ptr("value2"),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
	// 		Errors: &armmigrationdiscoverysap.SAPMigrateError{
	// 			Properties: &armmigrationdiscoverysap.ErrorDefinition{
	// 				Code: to.Ptr("ErrorCode1"),
	// 				Message: to.Ptr("This would be an elaborate error message"),
	// 				Details: []*armmigrationdiscoverysap.ErrorDefinition{
	// 					{
	// 						Code: to.Ptr("ErrorCode2"),
	// 						Message: to.Ptr("This would be an elaborate error message"),
	// 				}},
	// 			},
	// 		},
	// 		MasterSiteID: to.Ptr("MasterSiteIdResourceId"),
	// 		MigrateProjectID: to.Ptr("MigrateProjectId"),
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

func (*SapDiscoverySitesClient) BeginDelete

func (client *SapDiscoverySitesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, options *SapDiscoverySitesClientBeginDeleteOptions) (*runtime.Poller[SapDiscoverySitesClientDeleteResponse], error)

BeginDelete - Deletes a SAP Migration discovery site resource and its child resources, that is the associated SAP Instances and Server Instances. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • options - SapDiscoverySitesClientBeginDeleteOptions contains the optional parameters for the SapDiscoverySitesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPDiscoverySites_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSapDiscoverySitesClient().BeginDelete(ctx, "test-rg", "SampleSite", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*SapDiscoverySitesClient) BeginImportEntities

BeginImportEntities - Import your SAP systems' inventory using the Discovery template [https://go.microsoft.com/fwlink/?linkid=2249111] into your SAP Migration discovery site resource and it's child resources, the SAP instances and Server instances. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • options - SapDiscoverySitesClientBeginImportEntitiesOptions contains the optional parameters for the SapDiscoverySitesClient.BeginImportEntities method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPDiscoverySites_ImportEntities.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSapDiscoverySitesClient().BeginImportEntities(ctx, "test-rg", "SampleSite", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OperationStatusResult = armmigrationdiscoverysap.OperationStatusResult{
	// 	Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"),
	// 	EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()),
	// 	Error: &armmigrationdiscoverysap.ErrorDetail{
	// 		Code: to.Ptr("ExcelUploadNotSupported"),
	// 		Message: to.Ptr("Excel upload is not supported for a natively discovered Site."),
	// 		Details: []*armmigrationdiscoverysap.ErrorDetail{
	// 			{
	// 				Code: to.Ptr("ParallelExcelUploadNotSuppoeted"),
	// 				Message: to.Ptr("Only one excel upload operation allowed for a discovery site at a time."),
	// 		}},
	// 	},
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite"),
	// 	StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()),
	// 	Status: to.Ptr("Succeeded"),
	// }
}
Output:

func (*SapDiscoverySitesClient) Get

func (client *SapDiscoverySitesClient) Get(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, options *SapDiscoverySitesClientGetOptions) (SapDiscoverySitesClientGetResponse, error)

Get - Gets a SAP Migration discovery site resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • options - SapDiscoverySitesClientGetOptions contains the optional parameters for the SapDiscoverySitesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPDiscoverySites_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSapDiscoverySitesClient().Get(ctx, "test-rg", "SampleSite", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SAPDiscoverySite = armmigrationdiscoverysap.SAPDiscoverySite{
	// 	Name: to.Ptr("SampleSite"),
	// 	Type: to.Ptr("microsoft.workloads/sapDiscoverySites"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"property1": to.Ptr("value1"),
	// 		"property2": to.Ptr("value2"),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
	// 		Errors: &armmigrationdiscoverysap.SAPMigrateError{
	// 			Properties: &armmigrationdiscoverysap.ErrorDefinition{
	// 				Code: to.Ptr("ErrorCode1"),
	// 				Message: to.Ptr("This would be an elaborate error message"),
	// 				Details: []*armmigrationdiscoverysap.ErrorDefinition{
	// 					{
	// 						Code: to.Ptr("ErrorCode2"),
	// 						Message: to.Ptr("This would be an elaborate error message"),
	// 				}},
	// 			},
	// 		},
	// 		MasterSiteID: to.Ptr("MasterSiteIdResourceId"),
	// 		MigrateProjectID: to.Ptr("MigrateProjectId"),
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

func (*SapDiscoverySitesClient) NewListByResourceGroupPager

NewListByResourceGroupPager - Gets all SAP Migration discovery site resources in a Resource Group.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - SapDiscoverySitesClientListByResourceGroupOptions contains the optional parameters for the SapDiscoverySitesClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPDiscoverySites_ListByResourceGroup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSapDiscoverySitesClient().NewListByResourceGroupPager("test-rg", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SAPDiscoverySiteListResult = armmigrationdiscoverysap.SAPDiscoverySiteListResult{
		// 	Value: []*armmigrationdiscoverysap.SAPDiscoverySite{
		// 		{
		// 			Name: to.Ptr("SampleSite"),
		// 			Type: to.Ptr("microsoft.workloads/sapDiscoverySites"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"property1": to.Ptr("value1"),
		// 				"property2": to.Ptr("value2"),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
		// 				Errors: &armmigrationdiscoverysap.SAPMigrateError{
		// 					Properties: &armmigrationdiscoverysap.ErrorDefinition{
		// 						Code: to.Ptr("ErrorCode1"),
		// 						Message: to.Ptr("This would be an elaborate error message"),
		// 						Details: []*armmigrationdiscoverysap.ErrorDefinition{
		// 							{
		// 								Code: to.Ptr("ErrorCode2"),
		// 								Message: to.Ptr("This would be an elaborate error message"),
		// 						}},
		// 					},
		// 				},
		// 				MasterSiteID: to.Ptr("MasterSiteIdResourceId"),
		// 				MigrateProjectID: to.Ptr("MigrateProjectId"),
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("SampleSite1"),
		// 			Type: to.Ptr("microsoft.workloads/sapDiscoverySites"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite1"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"property1": to.Ptr("value1"),
		// 				"property2": to.Ptr("value2"),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
		// 				Errors: &armmigrationdiscoverysap.SAPMigrateError{
		// 					Properties: &armmigrationdiscoverysap.ErrorDefinition{
		// 						Code: to.Ptr("ErrorCode1"),
		// 						Message: to.Ptr("This would be an elaborate error message"),
		// 						Details: []*armmigrationdiscoverysap.ErrorDefinition{
		// 							{
		// 								Code: to.Ptr("ErrorCode2"),
		// 								Message: to.Ptr("This would be an elaborate error message"),
		// 						}},
		// 					},
		// 				},
		// 				MasterSiteID: to.Ptr("MasterSiteIdResourceId1"),
		// 				MigrateProjectID: to.Ptr("MigrateProjectId1"),
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*SapDiscoverySitesClient) NewListBySubscriptionPager

NewListBySubscriptionPager - Gets all SAP Migration discovery site resources in a Subscription.

Generated from API version 2023-10-01-preview

  • options - SapDiscoverySitesClientListBySubscriptionOptions contains the optional parameters for the SapDiscoverySitesClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPDiscoverySites_ListBySubscription.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSapDiscoverySitesClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SAPDiscoverySiteListResult = armmigrationdiscoverysap.SAPDiscoverySiteListResult{
		// 	Value: []*armmigrationdiscoverysap.SAPDiscoverySite{
		// 		{
		// 			Name: to.Ptr("SampleSite"),
		// 			Type: to.Ptr("microsoft.workloads/sapDiscoverySites"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"property1": to.Ptr("value1"),
		// 				"property2": to.Ptr("value2"),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
		// 				Errors: &armmigrationdiscoverysap.SAPMigrateError{
		// 					Properties: &armmigrationdiscoverysap.ErrorDefinition{
		// 						Code: to.Ptr("ErrorCode1"),
		// 						Message: to.Ptr("This would be an elaborate error message"),
		// 						Details: []*armmigrationdiscoverysap.ErrorDefinition{
		// 							{
		// 								Code: to.Ptr("ErrorCode2"),
		// 								Message: to.Ptr("This would be an elaborate error message"),
		// 						}},
		// 					},
		// 				},
		// 				MasterSiteID: to.Ptr("MasterSiteIdResourceId"),
		// 				MigrateProjectID: to.Ptr("MigrateProjectId"),
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("SampleSite1"),
		// 			Type: to.Ptr("microsoft.workloads/sapDiscoverySites"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite1"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"property1": to.Ptr("value1"),
		// 				"property2": to.Ptr("value2"),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
		// 				Errors: &armmigrationdiscoverysap.SAPMigrateError{
		// 					Properties: &armmigrationdiscoverysap.ErrorDefinition{
		// 						Code: to.Ptr("ErrorCode1"),
		// 						Message: to.Ptr("This would be an elaborate error message"),
		// 						Details: []*armmigrationdiscoverysap.ErrorDefinition{
		// 							{
		// 								Code: to.Ptr("ErrorCode2"),
		// 								Message: to.Ptr("This would be an elaborate error message"),
		// 						}},
		// 					},
		// 				},
		// 				MasterSiteID: to.Ptr("MasterSiteIdResourceId1"),
		// 				MigrateProjectID: to.Ptr("MigrateProjectId1"),
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*SapDiscoverySitesClient) Update

func (client *SapDiscoverySitesClient) Update(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, properties SAPDiscoverySiteTagsUpdate, options *SapDiscoverySitesClientUpdateOptions) (SapDiscoverySitesClientUpdateResponse, error)

Update - Updates a SAP Migration discovery site resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • properties - The resource properties to be updated.
  • options - SapDiscoverySitesClientUpdateOptions contains the optional parameters for the SapDiscoverySitesClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPDiscoverySites_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSapDiscoverySitesClient().Update(ctx, "test-rg", "SampleSite", armmigrationdiscoverysap.SAPDiscoverySiteTagsUpdate{
		Tags: map[string]*string{
			"tag1": to.Ptr("value1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SAPDiscoverySite = armmigrationdiscoverysap.SAPDiscoverySite{
	// 	Name: to.Ptr("SampleSite"),
	// 	Type: to.Ptr("microsoft.workloads/sapDiscoverySites"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"property1": to.Ptr("value1"),
	// 		"property2": to.Ptr("value2"),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.SAPDiscoverySiteProperties{
	// 		Errors: &armmigrationdiscoverysap.SAPMigrateError{
	// 			Properties: &armmigrationdiscoverysap.ErrorDefinition{
	// 				Code: to.Ptr("ErrorCode1"),
	// 				Message: to.Ptr("This would be an elaborate error message"),
	// 				Details: []*armmigrationdiscoverysap.ErrorDefinition{
	// 					{
	// 						Code: to.Ptr("ErrorCode2"),
	// 						Message: to.Ptr("This would be an elaborate error message"),
	// 				}},
	// 			},
	// 		},
	// 		MasterSiteID: to.Ptr("MasterSiteIdResourceId"),
	// 		MigrateProjectID: to.Ptr("MigrateProjectId"),
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 	},
	// }
}
Output:

type SapDiscoverySitesClientBeginCreateOptions

type SapDiscoverySitesClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SapDiscoverySitesClientBeginCreateOptions contains the optional parameters for the SapDiscoverySitesClient.BeginCreate method.

type SapDiscoverySitesClientBeginDeleteOptions

type SapDiscoverySitesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SapDiscoverySitesClientBeginDeleteOptions contains the optional parameters for the SapDiscoverySitesClient.BeginDelete method.

type SapDiscoverySitesClientBeginImportEntitiesOptions

type SapDiscoverySitesClientBeginImportEntitiesOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SapDiscoverySitesClientBeginImportEntitiesOptions contains the optional parameters for the SapDiscoverySitesClient.BeginImportEntities method.

type SapDiscoverySitesClientCreateResponse

type SapDiscoverySitesClientCreateResponse struct {
	// Define the SAP Migration discovery site resource.
	SAPDiscoverySite
}

SapDiscoverySitesClientCreateResponse contains the response from method SapDiscoverySitesClient.BeginCreate.

type SapDiscoverySitesClientDeleteResponse

type SapDiscoverySitesClientDeleteResponse struct {
}

SapDiscoverySitesClientDeleteResponse contains the response from method SapDiscoverySitesClient.BeginDelete.

type SapDiscoverySitesClientGetOptions

type SapDiscoverySitesClientGetOptions struct {
}

SapDiscoverySitesClientGetOptions contains the optional parameters for the SapDiscoverySitesClient.Get method.

type SapDiscoverySitesClientGetResponse

type SapDiscoverySitesClientGetResponse struct {
	// Define the SAP Migration discovery site resource.
	SAPDiscoverySite
}

SapDiscoverySitesClientGetResponse contains the response from method SapDiscoverySitesClient.Get.

type SapDiscoverySitesClientImportEntitiesResponse

type SapDiscoverySitesClientImportEntitiesResponse struct {
	// The current status of an async operation.
	OperationStatusResult
}

SapDiscoverySitesClientImportEntitiesResponse contains the response from method SapDiscoverySitesClient.BeginImportEntities.

type SapDiscoverySitesClientListByResourceGroupOptions

type SapDiscoverySitesClientListByResourceGroupOptions struct {
}

SapDiscoverySitesClientListByResourceGroupOptions contains the optional parameters for the SapDiscoverySitesClient.NewListByResourceGroupPager method.

type SapDiscoverySitesClientListByResourceGroupResponse

type SapDiscoverySitesClientListByResourceGroupResponse struct {
	// The response of a SAPDiscoverySite list operation.
	SAPDiscoverySiteListResult
}

SapDiscoverySitesClientListByResourceGroupResponse contains the response from method SapDiscoverySitesClient.NewListByResourceGroupPager.

type SapDiscoverySitesClientListBySubscriptionOptions

type SapDiscoverySitesClientListBySubscriptionOptions struct {
}

SapDiscoverySitesClientListBySubscriptionOptions contains the optional parameters for the SapDiscoverySitesClient.NewListBySubscriptionPager method.

type SapDiscoverySitesClientListBySubscriptionResponse

type SapDiscoverySitesClientListBySubscriptionResponse struct {
	// The response of a SAPDiscoverySite list operation.
	SAPDiscoverySiteListResult
}

SapDiscoverySitesClientListBySubscriptionResponse contains the response from method SapDiscoverySitesClient.NewListBySubscriptionPager.

type SapDiscoverySitesClientUpdateOptions

type SapDiscoverySitesClientUpdateOptions struct {
}

SapDiscoverySitesClientUpdateOptions contains the optional parameters for the SapDiscoverySitesClient.Update method.

type SapDiscoverySitesClientUpdateResponse

type SapDiscoverySitesClientUpdateResponse struct {
	// Define the SAP Migration discovery site resource.
	SAPDiscoverySite
}

SapDiscoverySitesClientUpdateResponse contains the response from method SapDiscoverySitesClient.Update.

type SapInstanceEnvironment

type SapInstanceEnvironment string

SapInstanceEnvironment - The Environment; PRD, QA, DEV, etc to which SAP system belongs to. Select from the list of available dropdown values.

const (
	// SapInstanceEnvironmentDevelopment - The type of Sap Instance Environment- Development.
	SapInstanceEnvironmentDevelopment SapInstanceEnvironment = "Development"
	// SapInstanceEnvironmentDisasterRecovery - The type of Sap Instance Environment- DisasterRecovery.
	SapInstanceEnvironmentDisasterRecovery SapInstanceEnvironment = "DisasterRecovery"
	// SapInstanceEnvironmentPreProduction - The type of Sap Instance Environment- PreProduction.
	SapInstanceEnvironmentPreProduction SapInstanceEnvironment = "PreProduction"
	// SapInstanceEnvironmentProduction - The type of Sap Instance Environment- Production.
	SapInstanceEnvironmentProduction SapInstanceEnvironment = "Production"
	// SapInstanceEnvironmentQualityAssurance - The type of Sap Instance Environment- QualityAssurance.
	SapInstanceEnvironmentQualityAssurance SapInstanceEnvironment = "QualityAssurance"
	// SapInstanceEnvironmentSandbox - The type of Sap Instance Environment- Sandbox.
	SapInstanceEnvironmentSandbox SapInstanceEnvironment = "Sandbox"
	// SapInstanceEnvironmentTest - The type of Sap Instance Environment- Test.
	SapInstanceEnvironmentTest SapInstanceEnvironment = "Test"
	// SapInstanceEnvironmentTraining - The type of Sap Instance Environment- Training.
	SapInstanceEnvironmentTraining SapInstanceEnvironment = "Training"
)

func PossibleSapInstanceEnvironmentValues

func PossibleSapInstanceEnvironmentValues() []SapInstanceEnvironment

PossibleSapInstanceEnvironmentValues returns the possible values for the SapInstanceEnvironment const type.

type SapInstanceType

type SapInstanceType string

SapInstanceType - The SAP instance type running on this machine, e.g., App, ASCS, DB, etc. Select from the list of available dropdown values. Only single server and distributed architectures are supported.

const (
	// SapInstanceTypeAPP - The type of Sap Instance- APP.
	SapInstanceTypeAPP SapInstanceType = "APP"
	// SapInstanceTypeASCS - The type of Sap Instance- ASCS.
	SapInstanceTypeASCS SapInstanceType = "ASCS"
	// SapInstanceTypeDB - The type of Sap Instance- DB.
	SapInstanceTypeDB SapInstanceType = "DB"
	// SapInstanceTypeSCS - The type of Sap Instance- SCS.
	SapInstanceTypeSCS SapInstanceType = "SCS"
	// SapInstanceTypeWEBDISP - The type of Sap Instance- WEBDISP.
	SapInstanceTypeWEBDISP SapInstanceType = "WEBDISP"
)

func PossibleSapInstanceTypeValues

func PossibleSapInstanceTypeValues() []SapInstanceType

PossibleSapInstanceTypeValues returns the possible values for the SapInstanceType const type.

type SapInstancesClient

type SapInstancesClient struct {
	// contains filtered or unexported fields
}

SapInstancesClient contains the methods for the SapInstances group. Don't use this type directly, use NewSapInstancesClient() instead.

func NewSapInstancesClient

func NewSapInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SapInstancesClient, error)

NewSapInstancesClient creates a new instance of SapInstancesClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SapInstancesClient) BeginCreate

func (client *SapInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, resource SAPInstance, options *SapInstancesClientBeginCreateOptions) (*runtime.Poller[SapInstancesClientCreateResponse], error)

BeginCreate - Creates the SAP Instance resource. This will be used by service only. PUT operation on this resource by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • resource - Resource create parameters.
  • options - SapInstancesClientBeginCreateOptions contains the optional parameters for the SapInstancesClient.BeginCreate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPInstances_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSapInstancesClient().BeginCreate(ctx, "test-rg", "SampleSite", "MPP_MPP", armmigrationdiscoverysap.SAPInstance{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"property1": to.Ptr("value1"),
			"property2": to.Ptr("value2"),
		},
		Properties: &armmigrationdiscoverysap.SAPInstanceProperties{},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SAPInstance = armmigrationdiscoverysap.SAPInstance{
	// 	Name: to.Ptr("MPP_MPP"),
	// 	Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"property1": to.Ptr("value1"),
	// 		"property2": to.Ptr("value2"),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.SAPInstanceProperties{
	// 		Application: to.Ptr("HR"),
	// 		Environment: to.Ptr(armmigrationdiscoverysap.SapInstanceEnvironmentProduction),
	// 		LandscapeSid: to.Ptr("MPP"),
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 		SystemSid: to.Ptr("MPP"),
	// 	},
	// }
}
Output:

func (*SapInstancesClient) BeginDelete

func (client *SapInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, options *SapInstancesClientBeginDeleteOptions) (*runtime.Poller[SapInstancesClientDeleteResponse], error)

BeginDelete - Deletes the SAP Instance resource. This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which is the SAP Migration discovery site resource, using the delete operation on it. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • options - SapInstancesClientBeginDeleteOptions contains the optional parameters for the SapInstancesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPInstances_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSapInstancesClient().BeginDelete(ctx, "test-rg", "SampleSite", "MPP_MPP", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*SapInstancesClient) Get

func (client *SapInstancesClient) Get(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, options *SapInstancesClientGetOptions) (SapInstancesClientGetResponse, error)

Get - Gets the SAP Instance resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • options - SapInstancesClientGetOptions contains the optional parameters for the SapInstancesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPInstances_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSapInstancesClient().Get(ctx, "test-rg", "SampleSite", "MPP_MPP", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SAPInstance = armmigrationdiscoverysap.SAPInstance{
	// 	Name: to.Ptr("MPP_MPP"),
	// 	Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"property1": to.Ptr("value1"),
	// 		"property2": to.Ptr("value2"),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.SAPInstanceProperties{
	// 		Application: to.Ptr("HR"),
	// 		Environment: to.Ptr(armmigrationdiscoverysap.SapInstanceEnvironmentProduction),
	// 		LandscapeSid: to.Ptr("MPP"),
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 		SystemSid: to.Ptr("MPP"),
	// 	},
	// }
}
Output:

func (*SapInstancesClient) NewListBySapDiscoverySitePager

func (client *SapInstancesClient) NewListBySapDiscoverySitePager(resourceGroupName string, sapDiscoverySiteName string, options *SapInstancesClientListBySapDiscoverySiteOptions) *runtime.Pager[SapInstancesClientListBySapDiscoverySiteResponse]

NewListBySapDiscoverySitePager - Lists the SAP Instance resources for the given SAP Migration discovery site resource.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • options - SapInstancesClientListBySapDiscoverySiteOptions contains the optional parameters for the SapInstancesClient.NewListBySapDiscoverySitePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPInstances_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSapInstancesClient().NewListBySapDiscoverySitePager("test-rg", "SampleSite", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SAPInstanceListResult = armmigrationdiscoverysap.SAPInstanceListResult{
		// 	Value: []*armmigrationdiscoverysap.SAPInstance{
		// 		{
		// 			Name: to.Ptr("MPP_MPP"),
		// 			Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"property1": to.Ptr("value1"),
		// 				"property2": to.Ptr("value2"),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.SAPInstanceProperties{
		// 				Application: to.Ptr("HR"),
		// 				Environment: to.Ptr(armmigrationdiscoverysap.SapInstanceEnvironmentProduction),
		// 				LandscapeSid: to.Ptr("MPP"),
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 				SystemSid: to.Ptr("MPP"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("MPP_MPP_DR"),
		// 			Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP_DR"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"property1": to.Ptr("value1"),
		// 				"property2": to.Ptr("value2"),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.SAPInstanceProperties{
		// 				Application: to.Ptr("HR"),
		// 				Environment: to.Ptr(armmigrationdiscoverysap.SapInstanceEnvironmentDisasterRecovery),
		// 				LandscapeSid: to.Ptr("MPP"),
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 				SystemSid: to.Ptr("MPP"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("MPP_MPD"),
		// 			Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPD"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"property1": to.Ptr("value1"),
		// 				"property2": to.Ptr("value2"),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.SAPInstanceProperties{
		// 				Application: to.Ptr("HR"),
		// 				Environment: to.Ptr(armmigrationdiscoverysap.SapInstanceEnvironmentDevelopment),
		// 				LandscapeSid: to.Ptr("MPP"),
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 				SystemSid: to.Ptr("MPD"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*SapInstancesClient) Update

func (client *SapInstancesClient) Update(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, properties SAPInstanceTagsUpdate, options *SapInstancesClientUpdateOptions) (SapInstancesClientUpdateResponse, error)

Update - Updates the SAP Instance resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • properties - The resource properties to be updated.
  • options - SapInstancesClientUpdateOptions contains the optional parameters for the SapInstancesClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/SAPInstances_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSapInstancesClient().Update(ctx, "test-rg", "SampleSite", "MPP_MPP", armmigrationdiscoverysap.SAPInstanceTagsUpdate{
		Tags: map[string]*string{
			"tag1": to.Ptr("value1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SAPInstance = armmigrationdiscoverysap.SAPInstance{
	// 	Name: to.Ptr("MPP_MPP"),
	// 	Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tag1": to.Ptr("value1"),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.SAPInstanceProperties{
	// 		Environment: to.Ptr(armmigrationdiscoverysap.SapInstanceEnvironmentProduction),
	// 		LandscapeSid: to.Ptr("MPP"),
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 		SystemSid: to.Ptr("MPP"),
	// 	},
	// }
}
Output:

type SapInstancesClientBeginCreateOptions

type SapInstancesClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SapInstancesClientBeginCreateOptions contains the optional parameters for the SapInstancesClient.BeginCreate method.

type SapInstancesClientBeginDeleteOptions

type SapInstancesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SapInstancesClientBeginDeleteOptions contains the optional parameters for the SapInstancesClient.BeginDelete method.

type SapInstancesClientCreateResponse

type SapInstancesClientCreateResponse struct {
	// Define the SAP Instance resource.
	SAPInstance
}

SapInstancesClientCreateResponse contains the response from method SapInstancesClient.BeginCreate.

type SapInstancesClientDeleteResponse

type SapInstancesClientDeleteResponse struct {
}

SapInstancesClientDeleteResponse contains the response from method SapInstancesClient.BeginDelete.

type SapInstancesClientGetOptions

type SapInstancesClientGetOptions struct {
}

SapInstancesClientGetOptions contains the optional parameters for the SapInstancesClient.Get method.

type SapInstancesClientGetResponse

type SapInstancesClientGetResponse struct {
	// Define the SAP Instance resource.
	SAPInstance
}

SapInstancesClientGetResponse contains the response from method SapInstancesClient.Get.

type SapInstancesClientListBySapDiscoverySiteOptions

type SapInstancesClientListBySapDiscoverySiteOptions struct {
}

SapInstancesClientListBySapDiscoverySiteOptions contains the optional parameters for the SapInstancesClient.NewListBySapDiscoverySitePager method.

type SapInstancesClientListBySapDiscoverySiteResponse

type SapInstancesClientListBySapDiscoverySiteResponse struct {
	// The response of a SAPInstance list operation.
	SAPInstanceListResult
}

SapInstancesClientListBySapDiscoverySiteResponse contains the response from method SapInstancesClient.NewListBySapDiscoverySitePager.

type SapInstancesClientUpdateOptions

type SapInstancesClientUpdateOptions struct {
}

SapInstancesClientUpdateOptions contains the optional parameters for the SapInstancesClient.Update method.

type SapInstancesClientUpdateResponse

type SapInstancesClientUpdateResponse struct {
	// Define the SAP Instance resource.
	SAPInstance
}

SapInstancesClientUpdateResponse contains the response from method SapInstancesClient.Update.

type ServerInstance

type ServerInstance struct {
	// The resource-specific properties for this resource.
	Properties *ServerInstanceProperties

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

ServerInstance - Define the Server Instance resource.

func (ServerInstance) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ServerInstance.

func (*ServerInstance) UnmarshalJSON

func (s *ServerInstance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServerInstance.

type ServerInstanceListResult

type ServerInstanceListResult struct {
	// REQUIRED; The ServerInstance items on this page
	Value []*ServerInstance

	// READ-ONLY; The link to the next page of items
	NextLink *string
}

ServerInstanceListResult - The response of a ServerInstance list operation.

func (ServerInstanceListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ServerInstanceListResult.

func (*ServerInstanceListResult) UnmarshalJSON

func (s *ServerInstanceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServerInstanceListResult.

type ServerInstanceProperties

type ServerInstanceProperties struct {
	// READ-ONLY; Configuration data for this server instance.
	ConfigurationData *ConfigurationData

	// READ-ONLY; Defines the errors related to SAP Instance resource.
	Errors *SAPMigrateError

	// READ-ONLY; This is the Instance SID for ASCS/AP/DB instance. An SAP system with HANA database for example could have a
	// different SID for database Instance than that of ASCS instance.
	InstanceSid *string

	// READ-ONLY; This is Operating System on which the host server is running.
	OperatingSystem *OperatingSystem

	// READ-ONLY; Configuration data for this server instance.
	PerformanceData PerformanceDataClassification

	// READ-ONLY; Defines the provisioning states.
	ProvisioningState *ProvisioningState

	// READ-ONLY; Defines the type SAP instance on this server instance.
	SapInstanceType *SapInstanceType

	// READ-ONLY; This is the SAP Application Component; e.g. SAP S/4HANA 2022, SAP ERP ENHANCE PACKAGE.
	SapProduct *string

	// READ-ONLY; Provide the product version of the SAP product.
	SapProductVersion *string

	// READ-ONLY; This is the Virtual Machine Name of the SAP system. Add all the virtual machines attached to an SAP system which
	// you wish to migrate to Azure. Keeping this not equal to ID as for single tier all
	// InstanceTypes would be on same server, leading to multiple resources with same servername.
	ServerName *string
}

ServerInstanceProperties - Defines the SAP Instance properties.

func (ServerInstanceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ServerInstanceProperties.

func (*ServerInstanceProperties) UnmarshalJSON

func (s *ServerInstanceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServerInstanceProperties.

type ServerInstancesClient

type ServerInstancesClient struct {
	// contains filtered or unexported fields
}

ServerInstancesClient contains the methods for the ServerInstances group. Don't use this type directly, use NewServerInstancesClient() instead.

func NewServerInstancesClient

func NewServerInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServerInstancesClient, error)

NewServerInstancesClient creates a new instance of ServerInstancesClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ServerInstancesClient) BeginCreate

func (client *ServerInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, serverInstanceName string, resource ServerInstance, options *ServerInstancesClientBeginCreateOptions) (*runtime.Poller[ServerInstancesClientCreateResponse], error)

BeginCreate - Creates the Server Instance resource. ;This will be used by service only. PUT operation on this resource by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • serverInstanceName - The name of the Server instance resource for SAP Migration.
  • resource - Resource create parameters.
  • options - ServerInstancesClientBeginCreateOptions contains the optional parameters for the ServerInstancesClient.BeginCreate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/ServerInstances_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewServerInstancesClient().BeginCreate(ctx, "test-rg", "SampleSite", "MPP_MPP", "APP_SapServer1", armmigrationdiscoverysap.ServerInstance{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ServerInstance = armmigrationdiscoverysap.ServerInstance{
	// 	Name: to.Ptr("APP_SapServer1"),
	// 	Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances/serverInstances"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP/serverInstances/APP_SapServer1"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.ServerInstanceProperties{
	// 		ConfigurationData: &armmigrationdiscoverysap.ConfigurationData{
	// 			CPU: to.Ptr[int32](8),
	// 			CPUInMhz: to.Ptr[int32](2300),
	// 			CPUType: to.Ptr("AMD EPYC 7452 Processor"),
	// 			DatabaseType: to.Ptr(armmigrationdiscoverysap.DatabaseTypeAdabas),
	// 			HardwareManufacturer: to.Ptr("Microsoft Corporation"),
	// 			Model: to.Ptr("Virtual Machine"),
	// 			RAM: to.Ptr[int32](256),
	// 			Saps: to.Ptr[int32](7000),
	// 			TargetHanaRAMSizeGB: to.Ptr[int32](512),
	// 			TotalDiskIops: to.Ptr[int32](1000),
	// 			TotalDiskSizeGB: to.Ptr[int32](512),
	// 		},
	// 		InstanceSid: to.Ptr("MPP"),
	// 		OperatingSystem: to.Ptr(armmigrationdiscoverysap.OperatingSystem("IBM")),
	// 		PerformanceData: &armmigrationdiscoverysap.ExcelPerformanceData{
	// 			DataSource: to.Ptr(armmigrationdiscoverysap.DataSourceExcel),
	// 			MaxCPULoad: to.Ptr[int32](10),
	// 			TotalSourceDbSizeGB: to.Ptr[int32](750),
	// 		},
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 		SapInstanceType: to.Ptr(armmigrationdiscoverysap.SapInstanceTypeAPP),
	// 		SapProduct: to.Ptr("SAP ERP ENHANCE PACKAGE"),
	// 		SapProductVersion: to.Ptr("6.08"),
	// 		ServerName: to.Ptr("SapServer1"),
	// 	},
	// }
}
Output:

func (*ServerInstancesClient) BeginDelete

func (client *ServerInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, serverInstanceName string, options *ServerInstancesClientBeginDeleteOptions) (*runtime.Poller[ServerInstancesClientDeleteResponse], error)

BeginDelete - Deletes the Server Instance resource. ;This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which is the SAP Migration discovery site resource, using the delete operation on it. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • serverInstanceName - The name of the Server instance resource for SAP Migration.
  • options - ServerInstancesClientBeginDeleteOptions contains the optional parameters for the ServerInstancesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/ServerInstances_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewServerInstancesClient().BeginDelete(ctx, "test-rg", "SampleSite", "MPP_MPP", "APP_SapServer1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ServerInstancesClient) Get

func (client *ServerInstancesClient) Get(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, serverInstanceName string, options *ServerInstancesClientGetOptions) (ServerInstancesClientGetResponse, error)

Get - Gets the Server Instance resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • serverInstanceName - The name of the Server instance resource for SAP Migration.
  • options - ServerInstancesClientGetOptions contains the optional parameters for the ServerInstancesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/ServerInstances_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServerInstancesClient().Get(ctx, "test-rg", "SampleSite", "MPP_MPP", "APP_SapServer1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ServerInstance = armmigrationdiscoverysap.ServerInstance{
	// 	Name: to.Ptr("APP_SapServer1"),
	// 	Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances/serverInstances"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP/serverInstances/APP_SapServer1"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.ServerInstanceProperties{
	// 		ConfigurationData: &armmigrationdiscoverysap.ConfigurationData{
	// 			CPU: to.Ptr[int32](8),
	// 			CPUInMhz: to.Ptr[int32](2300),
	// 			CPUType: to.Ptr("AMD EPYC 7452 Processor"),
	// 			DatabaseType: to.Ptr(armmigrationdiscoverysap.DatabaseTypeAdabas),
	// 			HardwareManufacturer: to.Ptr("Microsoft Corporation"),
	// 			Model: to.Ptr("Virtual Machine"),
	// 			RAM: to.Ptr[int32](256),
	// 			Saps: to.Ptr[int32](7000),
	// 			TargetHanaRAMSizeGB: to.Ptr[int32](512),
	// 			TotalDiskIops: to.Ptr[int32](1000),
	// 			TotalDiskSizeGB: to.Ptr[int32](512),
	// 		},
	// 		InstanceSid: to.Ptr("MPP"),
	// 		OperatingSystem: to.Ptr(armmigrationdiscoverysap.OperatingSystem("IBM")),
	// 		PerformanceData: &armmigrationdiscoverysap.ExcelPerformanceData{
	// 			DataSource: to.Ptr(armmigrationdiscoverysap.DataSourceExcel),
	// 			MaxCPULoad: to.Ptr[int32](10),
	// 			TotalSourceDbSizeGB: to.Ptr[int32](750),
	// 		},
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 		SapInstanceType: to.Ptr(armmigrationdiscoverysap.SapInstanceTypeAPP),
	// 		SapProduct: to.Ptr("SAP ERP ENHANCE PACKAGE"),
	// 		SapProductVersion: to.Ptr("6.08"),
	// 		ServerName: to.Ptr("SapServer1"),
	// 	},
	// }
}
Output:

func (*ServerInstancesClient) NewListBySapInstancePager

func (client *ServerInstancesClient) NewListBySapInstancePager(resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, options *ServerInstancesClientListBySapInstanceOptions) *runtime.Pager[ServerInstancesClientListBySapInstanceResponse]

NewListBySapInstancePager - Lists the Server Instance resources for the given SAP Instance resource.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • options - ServerInstancesClientListBySapInstanceOptions contains the optional parameters for the ServerInstancesClient.NewListBySapInstancePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/ServerInstances_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewServerInstancesClient().NewListBySapInstancePager("test-rg", "SampleSite", "MPP_MPP", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ServerInstanceListResult = armmigrationdiscoverysap.ServerInstanceListResult{
		// 	Value: []*armmigrationdiscoverysap.ServerInstance{
		// 		{
		// 			Name: to.Ptr("APP_SapServer1"),
		// 			Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances/serverInstances"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP/serverInstances/APP_SapServer1"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.ServerInstanceProperties{
		// 				ConfigurationData: &armmigrationdiscoverysap.ConfigurationData{
		// 					CPU: to.Ptr[int32](8),
		// 					CPUInMhz: to.Ptr[int32](2300),
		// 					CPUType: to.Ptr("AMD EPYC 7452 Processor"),
		// 					DatabaseType: to.Ptr(armmigrationdiscoverysap.DatabaseTypeAdabas),
		// 					HardwareManufacturer: to.Ptr("Microsoft Corporation"),
		// 					Model: to.Ptr("Virtual Machine"),
		// 					RAM: to.Ptr[int32](256),
		// 					Saps: to.Ptr[int32](7000),
		// 					TargetHanaRAMSizeGB: to.Ptr[int32](512),
		// 					TotalDiskIops: to.Ptr[int32](1000),
		// 					TotalDiskSizeGB: to.Ptr[int32](512),
		// 				},
		// 				InstanceSid: to.Ptr("MPP"),
		// 				OperatingSystem: to.Ptr(armmigrationdiscoverysap.OperatingSystem("IBM")),
		// 				PerformanceData: &armmigrationdiscoverysap.ExcelPerformanceData{
		// 					DataSource: to.Ptr(armmigrationdiscoverysap.DataSourceExcel),
		// 					MaxCPULoad: to.Ptr[int32](10),
		// 					TotalSourceDbSizeGB: to.Ptr[int32](750),
		// 				},
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 				SapInstanceType: to.Ptr(armmigrationdiscoverysap.SapInstanceTypeAPP),
		// 				SapProduct: to.Ptr("SAP ERP ENHANCE PACKAGE"),
		// 				SapProductVersion: to.Ptr("6.08"),
		// 				ServerName: to.Ptr("SapServer1"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("APP_SapServer2"),
		// 			Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances/serverInstances"),
		// 			ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP/serverInstances/APP_SapServer2"),
		// 			SystemData: &armmigrationdiscoverysap.SystemData{
		// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				CreatedBy: to.Ptr("UserName"),
		// 				CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
		// 				LastModifiedBy: to.Ptr("UserName"),
		// 				LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
		// 			},
		// 			Properties: &armmigrationdiscoverysap.ServerInstanceProperties{
		// 				ConfigurationData: &armmigrationdiscoverysap.ConfigurationData{
		// 					CPU: to.Ptr[int32](8),
		// 					CPUInMhz: to.Ptr[int32](2300),
		// 					CPUType: to.Ptr("AMD EPYC 7452 Processor"),
		// 					DatabaseType: to.Ptr(armmigrationdiscoverysap.DatabaseTypeAdabas),
		// 					HardwareManufacturer: to.Ptr("Microsoft Corporation"),
		// 					Model: to.Ptr("Virtual Machine"),
		// 					RAM: to.Ptr[int32](256),
		// 					Saps: to.Ptr[int32](7000),
		// 					TargetHanaRAMSizeGB: to.Ptr[int32](512),
		// 					TotalDiskIops: to.Ptr[int32](1000),
		// 					TotalDiskSizeGB: to.Ptr[int32](512),
		// 				},
		// 				InstanceSid: to.Ptr("MPP"),
		// 				OperatingSystem: to.Ptr(armmigrationdiscoverysap.OperatingSystem("IBM")),
		// 				PerformanceData: &armmigrationdiscoverysap.ExcelPerformanceData{
		// 					DataSource: to.Ptr(armmigrationdiscoverysap.DataSourceExcel),
		// 					MaxCPULoad: to.Ptr[int32](10),
		// 					TotalSourceDbSizeGB: to.Ptr[int32](750),
		// 				},
		// 				ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
		// 				SapInstanceType: to.Ptr(armmigrationdiscoverysap.SapInstanceTypeAPP),
		// 				SapProduct: to.Ptr("SAP ERP ENHANCE PACKAGE"),
		// 				SapProductVersion: to.Ptr("6.08"),
		// 				ServerName: to.Ptr("SapServer2"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ServerInstancesClient) Update

func (client *ServerInstancesClient) Update(ctx context.Context, resourceGroupName string, sapDiscoverySiteName string, sapInstanceName string, serverInstanceName string, properties UpdateServerInstanceRequest, options *ServerInstancesClientUpdateOptions) (ServerInstancesClientUpdateResponse, error)

Update - Updates the Server Instance resource. This operation on a resource by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • sapDiscoverySiteName - The name of the discovery site resource for SAP Migration.
  • sapInstanceName - The name of SAP Instance resource for SAP Migration.
  • serverInstanceName - The name of the Server instance resource for SAP Migration.
  • properties - The resource properties to be updated.
  • options - ServerInstancesClientUpdateOptions contains the optional parameters for the ServerInstancesClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/475747ff6322e9bf180b8911d871561b264379c3/specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/preview/2023-10-01-preview/examples/ServerInstances_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmigrationdiscoverysap.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServerInstancesClient().Update(ctx, "test-rg", "SampleSite", "MPP_MPP", "APP_SapServer1", armmigrationdiscoverysap.UpdateServerInstanceRequest{
		Properties: &armmigrationdiscoverysap.ServerInstanceProperties{},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ServerInstance = armmigrationdiscoverysap.ServerInstance{
	// 	Name: to.Ptr("APP_SapServer1"),
	// 	Type: to.Ptr("Microsoft.Workloads/sapDiscoverySites/sapInstances/serverInstances"),
	// 	ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapDiscoverySites/SampleSite/sapInstances/MPP_MPP/serverInstances/APP_SapServer1"),
	// 	SystemData: &armmigrationdiscoverysap.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		CreatedBy: to.Ptr("UserName"),
	// 		CreatedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-26T14:15:22.000Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("UserName"),
	// 		LastModifiedByType: to.Ptr(armmigrationdiscoverysap.CreatedByTypeUser),
	// 	},
	// 	Properties: &armmigrationdiscoverysap.ServerInstanceProperties{
	// 		ConfigurationData: &armmigrationdiscoverysap.ConfigurationData{
	// 			CPU: to.Ptr[int32](8),
	// 			CPUInMhz: to.Ptr[int32](2300),
	// 			CPUType: to.Ptr("AMD EPYC 7452 Processor"),
	// 			DatabaseType: to.Ptr(armmigrationdiscoverysap.DatabaseTypeAdabas),
	// 			HardwareManufacturer: to.Ptr("Microsoft Corporation"),
	// 			Model: to.Ptr("Virtual Machine"),
	// 			RAM: to.Ptr[int32](256),
	// 			Saps: to.Ptr[int32](7000),
	// 			TargetHanaRAMSizeGB: to.Ptr[int32](512),
	// 			TotalDiskIops: to.Ptr[int32](1000),
	// 			TotalDiskSizeGB: to.Ptr[int32](512),
	// 		},
	// 		InstanceSid: to.Ptr("MPP"),
	// 		OperatingSystem: to.Ptr(armmigrationdiscoverysap.OperatingSystem("IBM")),
	// 		PerformanceData: &armmigrationdiscoverysap.ExcelPerformanceData{
	// 			DataSource: to.Ptr(armmigrationdiscoverysap.DataSourceExcel),
	// 			MaxCPULoad: to.Ptr[int32](10),
	// 			TotalSourceDbSizeGB: to.Ptr[int32](750),
	// 		},
	// 		ProvisioningState: to.Ptr(armmigrationdiscoverysap.ProvisioningStateSucceeded),
	// 		SapInstanceType: to.Ptr(armmigrationdiscoverysap.SapInstanceTypeAPP),
	// 		SapProduct: to.Ptr("SAP ERP ENHANCE PACKAGE"),
	// 		SapProductVersion: to.Ptr("6.08"),
	// 		ServerName: to.Ptr("SapServer1"),
	// 	},
	// }
}
Output:

type ServerInstancesClientBeginCreateOptions

type ServerInstancesClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ServerInstancesClientBeginCreateOptions contains the optional parameters for the ServerInstancesClient.BeginCreate method.

type ServerInstancesClientBeginDeleteOptions

type ServerInstancesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ServerInstancesClientBeginDeleteOptions contains the optional parameters for the ServerInstancesClient.BeginDelete method.

type ServerInstancesClientCreateResponse

type ServerInstancesClientCreateResponse struct {
	// Define the Server Instance resource.
	ServerInstance
}

ServerInstancesClientCreateResponse contains the response from method ServerInstancesClient.BeginCreate.

type ServerInstancesClientDeleteResponse

type ServerInstancesClientDeleteResponse struct {
}

ServerInstancesClientDeleteResponse contains the response from method ServerInstancesClient.BeginDelete.

type ServerInstancesClientGetOptions

type ServerInstancesClientGetOptions struct {
}

ServerInstancesClientGetOptions contains the optional parameters for the ServerInstancesClient.Get method.

type ServerInstancesClientGetResponse

type ServerInstancesClientGetResponse struct {
	// Define the Server Instance resource.
	ServerInstance
}

ServerInstancesClientGetResponse contains the response from method ServerInstancesClient.Get.

type ServerInstancesClientListBySapInstanceOptions

type ServerInstancesClientListBySapInstanceOptions struct {
}

ServerInstancesClientListBySapInstanceOptions contains the optional parameters for the ServerInstancesClient.NewListBySapInstancePager method.

type ServerInstancesClientListBySapInstanceResponse

type ServerInstancesClientListBySapInstanceResponse struct {
	// The response of a ServerInstance list operation.
	ServerInstanceListResult
}

ServerInstancesClientListBySapInstanceResponse contains the response from method ServerInstancesClient.NewListBySapInstancePager.

type ServerInstancesClientUpdateOptions

type ServerInstancesClientUpdateOptions struct {
}

ServerInstancesClientUpdateOptions contains the optional parameters for the ServerInstancesClient.Update method.

type ServerInstancesClientUpdateResponse

type ServerInstancesClientUpdateResponse struct {
	// Define the Server Instance resource.
	ServerInstance
}

ServerInstancesClientUpdateResponse contains the response from method ServerInstancesClient.Update.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type UpdateServerInstanceRequest

type UpdateServerInstanceRequest struct {
	// Server instances properties.
	Properties *ServerInstanceProperties
}

UpdateServerInstanceRequest - Defines the request body for updating Server Instances resource.

func (UpdateServerInstanceRequest) MarshalJSON

func (u UpdateServerInstanceRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateServerInstanceRequest.

func (*UpdateServerInstanceRequest) UnmarshalJSON

func (u *UpdateServerInstanceRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateServerInstanceRequest.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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