armworkloads

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 16 Imported by: 11

README

Azure Workloads Module for Go

PkgGoDev

The armworkloads module provides operations for working with Azure Workloads.

Source code

Getting started

Prerequisites

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Workloads module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Workloads. 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.

Clients

Azure Workloads modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential.

client, err := armworkloads.NewProviderInstancesClient(<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,
    },
}
client, err := armworkloads.NewProviderInstancesClient(<subscription ID>, cred, &options)

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Workloads 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 ApplicationProvisioningState added in v0.2.0

type ApplicationProvisioningState string

ApplicationProvisioningState - WordPress instance provisioning state

const (
	ApplicationProvisioningStateAccepted     ApplicationProvisioningState = "Accepted"
	ApplicationProvisioningStateCanceled     ApplicationProvisioningState = "Canceled"
	ApplicationProvisioningStateCreated      ApplicationProvisioningState = "Created"
	ApplicationProvisioningStateFailed       ApplicationProvisioningState = "Failed"
	ApplicationProvisioningStateInstalling   ApplicationProvisioningState = "Installing"
	ApplicationProvisioningStateNotSpecified ApplicationProvisioningState = "NotSpecified"
	ApplicationProvisioningStateSucceeded    ApplicationProvisioningState = "Succeeded"
)

func PossibleApplicationProvisioningStateValues added in v0.2.0

func PossibleApplicationProvisioningStateValues() []ApplicationProvisioningState

PossibleApplicationProvisioningStateValues returns the possible values for the ApplicationProvisioningState const type.

type ApplicationServerConfiguration added in v0.2.0

type ApplicationServerConfiguration struct {
	// REQUIRED; The number of app server instances.
	InstanceCount *int64 `json:"instanceCount,omitempty"`

	// REQUIRED; The subnet id.
	SubnetID *string `json:"subnetId,omitempty"`

	// REQUIRED; Gets or sets the virtual machine configuration.
	VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"`
}

ApplicationServerConfiguration - Gets or sets the application server configuration.

func (ApplicationServerConfiguration) MarshalJSON added in v0.2.0

func (a ApplicationServerConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplicationServerConfiguration.

func (*ApplicationServerConfiguration) UnmarshalJSON added in v0.2.0

func (a *ApplicationServerConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationServerConfiguration.

type AzureFrontDoorEnabled added in v0.2.0

type AzureFrontDoorEnabled string

AzureFrontDoorEnabled - Whether to enable Azure front door

const (
	AzureFrontDoorEnabledDisabled AzureFrontDoorEnabled = "Disabled"
	AzureFrontDoorEnabledEnabled  AzureFrontDoorEnabled = "Enabled"
)

func PossibleAzureFrontDoorEnabledValues added in v0.2.0

func PossibleAzureFrontDoorEnabledValues() []AzureFrontDoorEnabled

PossibleAzureFrontDoorEnabledValues returns the possible values for the AzureFrontDoorEnabled const type.

type BackupProfile added in v0.2.0

type BackupProfile struct {
	// REQUIRED; Whether to enable Azure backup for the workload
	BackupEnabled *EnableBackup `json:"backupEnabled,omitempty"`

	// READ-ONLY; Backup vault resource Id
	VaultResourceID *string `json:"vaultResourceId,omitempty" azure:"ro"`
}

BackupProfile - Backup profile

func (BackupProfile) MarshalJSON added in v0.2.0

func (b BackupProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BackupProfile.

func (*BackupProfile) UnmarshalJSON added in v0.2.0

func (b *BackupProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupProfile.

type CacheProfile added in v0.2.0

type CacheProfile struct {
	// REQUIRED; Cache capacity
	Capacity *int64 `json:"capacity,omitempty"`

	// REQUIRED; Cache family
	Family *RedisCacheFamily `json:"family,omitempty"`

	// REQUIRED; Cache SKU name
	SKUName *string `json:"skuName,omitempty"`

	// Cache name
	Name *string `json:"name,omitempty"`

	// READ-ONLY; Cache resource Id
	CacheResourceID *string `json:"cacheResourceId,omitempty" azure:"ro"`
}

CacheProfile - Cache profile

func (CacheProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type CacheProfile.

func (*CacheProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CacheProfile.

type CentralServerConfiguration added in v0.2.0

type CentralServerConfiguration struct {
	// REQUIRED; The number of central server VMs.
	InstanceCount *int64 `json:"instanceCount,omitempty"`

	// REQUIRED; The subnet id.
	SubnetID *string `json:"subnetId,omitempty"`

	// REQUIRED; Gets or sets the virtual machine configuration.
	VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"`
}

CentralServerConfiguration - Gets or sets the central server configuration.

func (CentralServerConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type CentralServerConfiguration.

func (*CentralServerConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CentralServerConfiguration.

type CentralServerVMDetails added in v0.2.0

type CentralServerVMDetails struct {
	// READ-ONLY; Defines the type of central server VM.
	Type *CentralServerVirtualMachineType `json:"type,omitempty" azure:"ro"`

	// READ-ONLY
	VirtualMachineID *string `json:"virtualMachineId,omitempty" azure:"ro"`
}

CentralServerVMDetails - The Central Server VM Details.

func (CentralServerVMDetails) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type CentralServerVMDetails.

func (*CentralServerVMDetails) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CentralServerVMDetails.

type CentralServerVirtualMachineType added in v0.2.0

type CentralServerVirtualMachineType string

CentralServerVirtualMachineType - Defines the type of central server VM.

const (
	CentralServerVirtualMachineTypeASCS        CentralServerVirtualMachineType = "ASCS"
	CentralServerVirtualMachineTypeERS         CentralServerVirtualMachineType = "ERS"
	CentralServerVirtualMachineTypeERSInactive CentralServerVirtualMachineType = "ERSInactive"
	CentralServerVirtualMachineTypePrimary     CentralServerVirtualMachineType = "Primary"
	CentralServerVirtualMachineTypeSecondary   CentralServerVirtualMachineType = "Secondary"
	CentralServerVirtualMachineTypeStandby     CentralServerVirtualMachineType = "Standby"
	CentralServerVirtualMachineTypeUnknown     CentralServerVirtualMachineType = "Unknown"
)

func PossibleCentralServerVirtualMachineTypeValues added in v0.2.0

func PossibleCentralServerVirtualMachineTypeValues() []CentralServerVirtualMachineType

PossibleCentralServerVirtualMachineTypeValues returns the possible values for the CentralServerVirtualMachineType const type.

type Client added in v0.2.0

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

Client contains the methods for the WorkloadsClient group. Don't use this type directly, use NewClient() instead.

func NewClient added in v0.2.0

func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)

NewClient creates a new instance of Client 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 (*Client) SAPAvailabilityZoneDetails added in v0.2.0

func (client *Client) SAPAvailabilityZoneDetails(ctx context.Context, location string, options *ClientSAPAvailabilityZoneDetailsOptions) (ClientSAPAvailabilityZoneDetailsResponse, error)

SAPAvailabilityZoneDetails - Get SAP Availability Zone Details. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview location - The name of Azure region. options - ClientSAPAvailabilityZoneDetailsOptions contains the optional parameters for the Client.SAPAvailabilityZoneDetails method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPAvailabilityZoneDetails_eastus.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.SAPAvailabilityZoneDetails(ctx,
		"centralus",
		&armworkloads.ClientSAPAvailabilityZoneDetailsOptions{SAPAvailabilityZoneDetails: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*Client) SAPDiskConfigurations added in v0.2.0

func (client *Client) SAPDiskConfigurations(ctx context.Context, location string, options *ClientSAPDiskConfigurationsOptions) (ClientSAPDiskConfigurationsResponse, error)

SAPDiskConfigurations - Get SAP Disk Configurations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview location - The name of Azure region. options - ClientSAPDiskConfigurationsOptions contains the optional parameters for the Client.SAPDiskConfigurations method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDiskConfigurations_NonProd.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.SAPDiskConfigurations(ctx,
		"centralus",
		&armworkloads.ClientSAPDiskConfigurationsOptions{SAPDiskConfigurations: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*Client) SAPSizingRecommendations added in v0.2.0

func (client *Client) SAPSizingRecommendations(ctx context.Context, location string, options *ClientSAPSizingRecommendationsOptions) (ClientSAPSizingRecommendationsResponse, error)

SAPSizingRecommendations - Get SAP sizing recommendations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview location - The name of Azure region. options - ClientSAPSizingRecommendationsOptions contains the optional parameters for the Client.SAPSizingRecommendations method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_Distributed.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.SAPSizingRecommendations(ctx,
		"centralus",
		&armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*Client) SAPSupportedSKU added in v0.2.0

func (client *Client) SAPSupportedSKU(ctx context.Context, location string, options *ClientSAPSupportedSKUOptions) (ClientSAPSupportedSKUResponse, error)

SAPSupportedSKU - Get SAP supported SKUs. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview location - The name of Azure region. options - ClientSAPSupportedSKUOptions contains the optional parameters for the Client.SAPSupportedSKU method.

type ClientSAPAvailabilityZoneDetailsOptions added in v0.2.0

type ClientSAPAvailabilityZoneDetailsOptions struct {
	// SAP Availability Zone Details Request body
	SAPAvailabilityZoneDetails *SAPAvailabilityZoneDetailsRequest
}

ClientSAPAvailabilityZoneDetailsOptions contains the optional parameters for the Client.SAPAvailabilityZoneDetails method.

type ClientSAPAvailabilityZoneDetailsResponse added in v0.2.0

type ClientSAPAvailabilityZoneDetailsResponse struct {
	SAPAvailabilityZoneDetailsResult
}

ClientSAPAvailabilityZoneDetailsResponse contains the response from method Client.SAPAvailabilityZoneDetails.

type ClientSAPDiskConfigurationsOptions added in v0.2.0

type ClientSAPDiskConfigurationsOptions struct {
	// SAP Disk Configurations Request body
	SAPDiskConfigurations *SAPDiskConfigurationsRequest
}

ClientSAPDiskConfigurationsOptions contains the optional parameters for the Client.SAPDiskConfigurations method.

type ClientSAPDiskConfigurationsResponse added in v0.2.0

type ClientSAPDiskConfigurationsResponse struct {
	SAPDiskConfigurationsResult
}

ClientSAPDiskConfigurationsResponse contains the response from method Client.SAPDiskConfigurations.

type ClientSAPSizingRecommendationsOptions added in v0.2.0

type ClientSAPSizingRecommendationsOptions struct {
	// SAP Sizing Recommendation Request body
	SAPSizingRecommendation *SAPSizingRecommendationRequest
}

ClientSAPSizingRecommendationsOptions contains the optional parameters for the Client.SAPSizingRecommendations method.

type ClientSAPSizingRecommendationsResponse added in v0.2.0

type ClientSAPSizingRecommendationsResponse struct {
	SAPSizingRecommendationResultClassification
}

ClientSAPSizingRecommendationsResponse contains the response from method Client.SAPSizingRecommendations.

func (*ClientSAPSizingRecommendationsResponse) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ClientSAPSizingRecommendationsResponse.

type ClientSAPSupportedSKUOptions added in v0.2.0

type ClientSAPSupportedSKUOptions struct {
	// SAP Supported SKU Request body
	SAPSupportedSKU *SAPSupportedSKUsRequest
}

ClientSAPSupportedSKUOptions contains the optional parameters for the Client.SAPSupportedSKU method.

type ClientSAPSupportedSKUResponse added in v0.2.0

type ClientSAPSupportedSKUResponse struct {
	SAPSupportedResourceSKUsResult
}

ClientSAPSupportedSKUResponse contains the response from method Client.SAPSupportedSKU.

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 DB2ProviderInstanceProperties

type DB2ProviderInstanceProperties struct {
	// REQUIRED; The provider type. For example, the value can be SapHana.
	ProviderType *string `json:"providerType,omitempty"`

	// Gets or sets the db2 database name.
	DbName *string `json:"dbName,omitempty"`

	// Gets or sets the db2 database password.
	DbPassword *string `json:"dbPassword,omitempty"`

	// Gets or sets the key vault URI to secret with the database password.
	DbPasswordURI *string `json:"dbPasswordUri,omitempty"`

	// Gets or sets the db2 database sql port.
	DbPort *string `json:"dbPort,omitempty"`

	// Gets or sets the db2 database user name.
	DbUsername *string `json:"dbUsername,omitempty"`

	// Gets or sets the target virtual machine name.
	Hostname *string `json:"hostname,omitempty"`

	// Gets or sets the SAP System Identifier
	SapSid *string `json:"sapSid,omitempty"`
}

DB2ProviderInstanceProperties - Gets or sets the DB2 provider properties.

func (*DB2ProviderInstanceProperties) GetProviderSpecificProperties

func (d *DB2ProviderInstanceProperties) GetProviderSpecificProperties() *ProviderSpecificProperties

GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type DB2ProviderInstanceProperties.

func (DB2ProviderInstanceProperties) MarshalJSON

func (d DB2ProviderInstanceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DB2ProviderInstanceProperties.

func (*DB2ProviderInstanceProperties) UnmarshalJSON

func (d *DB2ProviderInstanceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DB2ProviderInstanceProperties.

type DatabaseConfiguration added in v0.2.0

type DatabaseConfiguration struct {
	// REQUIRED; The number of database VMs.
	InstanceCount *int64 `json:"instanceCount,omitempty"`

	// REQUIRED; The subnet id.
	SubnetID *string `json:"subnetId,omitempty"`

	// REQUIRED; Gets or sets the virtual machine configuration.
	VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"`

	// The database type.
	DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"`
}

DatabaseConfiguration - Gets or sets the database configuration.

func (DatabaseConfiguration) MarshalJSON added in v0.2.0

func (d DatabaseConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseConfiguration.

func (*DatabaseConfiguration) UnmarshalJSON added in v0.2.0

func (d *DatabaseConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseConfiguration.

type DatabaseProfile added in v0.2.0

type DatabaseProfile struct {
	// REQUIRED; The name of the server SKU, e.g. StandardD32sv4
	SKU *string `json:"sku,omitempty"`

	// REQUIRED; Tier of the server SKU
	Tier *DatabaseTier `json:"tier,omitempty"`

	// REQUIRED; Database type
	Type *DatabaseType `json:"type,omitempty"`

	// Backup retention days for the server
	BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"`

	// Whether to enable HA for the server
	HaEnabled *HAEnabled `json:"haEnabled,omitempty"`

	// Whether to enable SSL enforcement on the database
	SSLEnforcementEnabled *EnableSSLEnforcement `json:"sslEnforcementEnabled,omitempty"`

	// Database server name
	ServerName *string `json:"serverName,omitempty"`

	// Database storage size in GB
	StorageInGB *int64 `json:"storageInGB,omitempty"`

	// Storage IOPS for the server
	StorageIops *int64 `json:"storageIops,omitempty"`

	// SKU name for database storage
	StorageSKU *string `json:"storageSku,omitempty"`

	// Database version
	Version *string `json:"version,omitempty"`

	// READ-ONLY; Azure Database Server resource Id
	ServerResourceID *string `json:"serverResourceId,omitempty" azure:"ro"`
}

DatabaseProfile - Workload database profile

func (DatabaseProfile) MarshalJSON added in v0.2.0

func (d DatabaseProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseProfile.

func (*DatabaseProfile) UnmarshalJSON added in v0.2.0

func (d *DatabaseProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseProfile.

type DatabaseTier added in v0.2.0

type DatabaseTier string

DatabaseTier - Tier of the server SKU

const (
	DatabaseTierBurstable       DatabaseTier = "Burstable"
	DatabaseTierGeneralPurpose  DatabaseTier = "GeneralPurpose"
	DatabaseTierMemoryOptimized DatabaseTier = "MemoryOptimized"
)

func PossibleDatabaseTierValues added in v0.2.0

func PossibleDatabaseTierValues() []DatabaseTier

PossibleDatabaseTierValues returns the possible values for the DatabaseTier const type.

type DatabaseType added in v0.2.0

type DatabaseType string

DatabaseType - Database type

const (
	DatabaseTypeMySQL DatabaseType = "MySql"
)

func PossibleDatabaseTypeValues added in v0.2.0

func PossibleDatabaseTypeValues() []DatabaseType

PossibleDatabaseTypeValues returns the possible values for the DatabaseType const type.

type DatabaseVMDetails added in v0.2.0

type DatabaseVMDetails struct {
	// READ-ONLY; Defines the SAP Instance status.
	Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"`

	// READ-ONLY
	VirtualMachineID *string `json:"virtualMachineId,omitempty" azure:"ro"`
}

DatabaseVMDetails - The Database VM Details.

func (DatabaseVMDetails) MarshalJSON added in v0.2.0

func (d DatabaseVMDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseVMDetails.

func (*DatabaseVMDetails) UnmarshalJSON added in v0.2.0

func (d *DatabaseVMDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseVMDetails.

type DeployerVMPackages added in v0.2.0

type DeployerVMPackages struct {
	// The deployer VM packages storage account id
	StorageAccountID *string `json:"storageAccountId,omitempty"`

	// The URL to the deployer VM packages file.
	URL *string `json:"url,omitempty"`
}

DeployerVMPackages - Defines the url and storage account ID where deployer VM packages are uploaded

func (DeployerVMPackages) MarshalJSON added in v0.2.0

func (d DeployerVMPackages) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeployerVMPackages.

func (*DeployerVMPackages) UnmarshalJSON added in v0.2.0

func (d *DeployerVMPackages) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeployerVMPackages.

type DeploymentConfiguration added in v0.2.0

type DeploymentConfiguration struct {
	// REQUIRED; The configuration Type.
	ConfigurationType *SAPConfigurationType `json:"configurationType,omitempty"`

	// The geo-location where the SAP system is to be created.
	AppLocation *string `json:"appLocation,omitempty"`

	// The infrastructure configuration.
	InfrastructureConfiguration InfrastructureConfigurationClassification `json:"infrastructureConfiguration,omitempty"`

	// The software configuration.
	SoftwareConfiguration SoftwareConfigurationClassification `json:"softwareConfiguration,omitempty"`
}

DeploymentConfiguration - Deployment Configuration.

func (*DeploymentConfiguration) GetSAPConfiguration added in v0.2.0

func (d *DeploymentConfiguration) GetSAPConfiguration() *SAPConfiguration

GetSAPConfiguration implements the SAPConfigurationClassification interface for type DeploymentConfiguration.

func (DeploymentConfiguration) MarshalJSON added in v0.2.0

func (d DeploymentConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeploymentConfiguration.

func (*DeploymentConfiguration) UnmarshalJSON added in v0.2.0

func (d *DeploymentConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentConfiguration.

type DeploymentWithOSConfiguration added in v0.2.0

type DeploymentWithOSConfiguration struct {
	// REQUIRED; The configuration Type.
	ConfigurationType *SAPConfigurationType `json:"configurationType,omitempty"`

	// The geo-location where the SAP system is to be created.
	AppLocation *string `json:"appLocation,omitempty"`

	// The infrastructure configuration.
	InfrastructureConfiguration InfrastructureConfigurationClassification `json:"infrastructureConfiguration,omitempty"`

	// The OS and SAP configuration.
	OSSapConfiguration *OsSapConfiguration `json:"osSapConfiguration,omitempty"`

	// The software configuration.
	SoftwareConfiguration SoftwareConfigurationClassification `json:"softwareConfiguration,omitempty"`
}

DeploymentWithOSConfiguration - Deployment along with OS Configuration.

func (*DeploymentWithOSConfiguration) GetSAPConfiguration added in v0.2.0

func (d *DeploymentWithOSConfiguration) GetSAPConfiguration() *SAPConfiguration

GetSAPConfiguration implements the SAPConfigurationClassification interface for type DeploymentWithOSConfiguration.

func (DeploymentWithOSConfiguration) MarshalJSON added in v0.2.0

func (d DeploymentWithOSConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeploymentWithOSConfiguration.

func (*DeploymentWithOSConfiguration) UnmarshalJSON added in v0.2.0

func (d *DeploymentWithOSConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentWithOSConfiguration.

type DiscoveryConfiguration added in v0.2.0

type DiscoveryConfiguration struct {
	// REQUIRED; The configuration Type.
	ConfigurationType *SAPConfigurationType `json:"configurationType,omitempty"`

	// The virtual machine ID of the Central Server.
	CentralServerVMID *string `json:"centralServerVmId,omitempty"`

	// READ-ONLY; The geo-location where the SAP system exists.
	AppLocation *string `json:"appLocation,omitempty" azure:"ro"`
}

DiscoveryConfiguration - Discovery Details.

func (*DiscoveryConfiguration) GetSAPConfiguration added in v0.2.0

func (d *DiscoveryConfiguration) GetSAPConfiguration() *SAPConfiguration

GetSAPConfiguration implements the SAPConfigurationClassification interface for type DiscoveryConfiguration.

func (DiscoveryConfiguration) MarshalJSON added in v0.2.0

func (d DiscoveryConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiscoveryConfiguration.

func (*DiscoveryConfiguration) UnmarshalJSON added in v0.2.0

func (d *DiscoveryConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiscoveryConfiguration.

type DiskInfo added in v0.2.0

type DiskInfo struct {
	// REQUIRED; Storage type
	StorageType *DiskStorageType `json:"storageType,omitempty"`

	// Disk size in GB
	SizeInGB *int64 `json:"sizeInGB,omitempty"`
}

DiskInfo - Disk resource creation details

func (DiskInfo) MarshalJSON added in v0.2.0

func (d DiskInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiskInfo.

func (*DiskInfo) UnmarshalJSON added in v0.2.0

func (d *DiskInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiskInfo.

type DiskStorageType added in v0.2.0

type DiskStorageType string

DiskStorageType - Storage type

const (
	DiskStorageTypePremiumLRS     DiskStorageType = "Premium_LRS"
	DiskStorageTypeStandardLRS    DiskStorageType = "Standard_LRS"
	DiskStorageTypeStandardSSDLRS DiskStorageType = "StandardSSD_LRS"
)

func PossibleDiskStorageTypeValues added in v0.2.0

func PossibleDiskStorageTypeValues() []DiskStorageType

PossibleDiskStorageTypeValues returns the possible values for the DiskStorageType const type.

type EnableBackup added in v0.2.0

type EnableBackup string

EnableBackup - Whether to enable Azure backup for the workload

const (
	EnableBackupDisabled EnableBackup = "Disabled"
	EnableBackupEnabled  EnableBackup = "Enabled"
)

func PossibleEnableBackupValues added in v0.2.0

func PossibleEnableBackupValues() []EnableBackup

PossibleEnableBackupValues returns the possible values for the EnableBackup const type.

type EnableSSLEnforcement added in v0.2.0

type EnableSSLEnforcement string

EnableSSLEnforcement - Whether to enable SSL enforcement on the database

const (
	EnableSSLEnforcementDisabled EnableSSLEnforcement = "Disabled"
	EnableSSLEnforcementEnabled  EnableSSLEnforcement = "Enabled"
)

func PossibleEnableSSLEnforcementValues added in v0.2.0

func PossibleEnableSSLEnforcementValues() []EnableSSLEnforcement

PossibleEnableSSLEnforcementValues returns the possible values for the EnableSSLEnforcement const type.

type EnqueueReplicationServerProperties added in v0.2.0

type EnqueueReplicationServerProperties struct {
	// READ-ONLY; Defines the type of Enqueue Replication Server.
	ErsVersion *EnqueueReplicationServerType `json:"ersVersion,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance health.
	Health *SAPHealthState `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The ERS server SAP host name.
	Hostname *string `json:"hostname,omitempty" azure:"ro"`

	// READ-ONLY; The ERS server SAP IP Address.
	IPAddress *string `json:"ipAddress,omitempty" azure:"ro"`

	// READ-ONLY; The ERS server instance id.
	InstanceNo *string `json:"instanceNo,omitempty" azure:"ro"`

	// READ-ONLY; The ERS server SAP kernel patch.
	KernelPatch *string `json:"kernelPatch,omitempty" azure:"ro"`

	// READ-ONLY; The ERS server SAP kernel version.
	KernelVersion *string `json:"kernelVersion,omitempty" azure:"ro"`
}

EnqueueReplicationServerProperties - Defines the SAP ERS Server properties.

func (EnqueueReplicationServerProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type EnqueueReplicationServerProperties.

func (*EnqueueReplicationServerProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type EnqueueReplicationServerProperties.

type EnqueueReplicationServerType added in v0.2.0

type EnqueueReplicationServerType string

EnqueueReplicationServerType - Defines the type of Enqueue Replication Server.

const (
	EnqueueReplicationServerTypeEnqueueReplicator1 EnqueueReplicationServerType = "EnqueueReplicator1"
	EnqueueReplicationServerTypeEnqueueReplicator2 EnqueueReplicationServerType = "EnqueueReplicator2"
)

func PossibleEnqueueReplicationServerTypeValues added in v0.2.0

func PossibleEnqueueReplicationServerTypeValues() []EnqueueReplicationServerType

PossibleEnqueueReplicationServerTypeValues returns the possible values for the EnqueueReplicationServerType const type.

type EnqueueServerProperties added in v0.2.0

type EnqueueServerProperties struct {
	// READ-ONLY; Defines the SAP Instance health.
	Health *SAPHealthState `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The enqueue server SAP host name.
	Hostname *string `json:"hostname,omitempty" azure:"ro"`

	// READ-ONLY; The enqueue server SAP IP Address.
	IPAddress *string `json:"ipAddress,omitempty" azure:"ro"`

	// READ-ONLY; The enqueue server Port.
	Port *int64 `json:"port,omitempty" azure:"ro"`
}

EnqueueServerProperties - Defines the SAP enqueue server properties.

func (EnqueueServerProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type EnqueueServerProperties.

func (*EnqueueServerProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type EnqueueServerProperties.

type Error

type Error struct {
	// READ-ONLY; Server-defined set of error codes.
	Code *string `json:"code,omitempty" azure:"ro"`

	// READ-ONLY; Array of details about specific errors that led to this reported error.
	Details []*Error `json:"details,omitempty" azure:"ro"`

	// READ-ONLY; Object containing more specific information than the current object about the error.
	InnerError *ErrorInnerError `json:"innerError,omitempty" azure:"ro"`

	// READ-ONLY; Human-readable representation of the error.
	Message *string `json:"message,omitempty" azure:"ro"`

	// READ-ONLY; Target of the error.
	Target *string `json:"target,omitempty" azure:"ro"`
}

Error - Standard error object.

func (Error) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Error.

func (*Error) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Error.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// READ-ONLY; The additional info.
	Info interface{} `json:"info,omitempty" azure:"ro"`

	// READ-ONLY; The additional info type.
	Type *string `json:"type,omitempty" azure:"ro"`
}

ErrorAdditionalInfo - The resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.

func (*ErrorAdditionalInfo) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.

type ErrorDefinition added in v0.2.0

type ErrorDefinition struct {
	// READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string `json:"code,omitempty" azure:"ro"`

	// READ-ONLY; Internal error details.
	Details []*ErrorDefinition `json:"details,omitempty" azure:"ro"`

	// READ-ONLY; Description of the error.
	Message *string `json:"message,omitempty" azure:"ro"`
}

ErrorDefinition - Error definition.

func (ErrorDefinition) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorDefinition.

func (*ErrorDefinition) UnmarshalJSON added in v0.2.0

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 `json:"additionalInfo,omitempty" azure:"ro"`

	// READ-ONLY; The error code.
	Code *string `json:"code,omitempty" azure:"ro"`

	// READ-ONLY; The error details.
	Details []*ErrorDetail `json:"details,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	Message *string `json:"message,omitempty" azure:"ro"`

	// READ-ONLY; The error target.
	Target *string `json:"target,omitempty" azure:"ro"`
}

ErrorDetail - The error detail.

func (ErrorDetail) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorDetail.

func (*ErrorDetail) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.

type ErrorInnerError

type ErrorInnerError struct {
	// Standard error object.
	InnerError *Error `json:"innerError,omitempty"`
}

ErrorInnerError - Object containing more specific information than the current object about the error.

func (ErrorInnerError) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorInnerError.

func (*ErrorInnerError) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorInnerError.

type ErrorResponse

type ErrorResponse struct {
	// The error object.
	Error *ErrorDetail `json:"error,omitempty"`
}

ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

func (ErrorResponse) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type FileShareStorageType added in v0.2.0

type FileShareStorageType string

FileShareStorageType - File share backing storage type

const (
	FileShareStorageTypePremiumLRS  FileShareStorageType = "Premium_LRS"
	FileShareStorageTypeStandardGRS FileShareStorageType = "Standard_GRS"
	FileShareStorageTypeStandardLRS FileShareStorageType = "Standard_LRS"
	FileShareStorageTypeStandardZRS FileShareStorageType = "Standard_ZRS"
)

func PossibleFileShareStorageTypeValues added in v0.2.0

func PossibleFileShareStorageTypeValues() []FileShareStorageType

PossibleFileShareStorageTypeValues returns the possible values for the FileShareStorageType const type.

type FileShareType added in v0.2.0

type FileShareType string

FileShareType - Share type

const (
	FileShareTypeAzureFiles      FileShareType = "AzureFiles"
	FileShareTypeNfsOnController FileShareType = "NfsOnController"
)

func PossibleFileShareTypeValues added in v0.2.0

func PossibleFileShareTypeValues() []FileShareType

PossibleFileShareTypeValues returns the possible values for the FileShareType const type.

type FileshareProfile added in v0.2.0

type FileshareProfile struct {
	// REQUIRED; Share type
	ShareType *FileShareType `json:"shareType,omitempty"`

	// REQUIRED; File share backing storage type
	StorageType *FileShareStorageType `json:"storageType,omitempty"`

	// File share size in GB
	ShareSizeInGB *int64 `json:"shareSizeInGB,omitempty"`

	// READ-ONLY; File share name
	ShareName *string `json:"shareName,omitempty" azure:"ro"`

	// READ-ONLY; File share storage resource id
	StorageResourceID *string `json:"storageResourceId,omitempty" azure:"ro"`
}

FileshareProfile - File share profile

func (FileshareProfile) MarshalJSON added in v0.2.0

func (f FileshareProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileshareProfile.

func (*FileshareProfile) UnmarshalJSON added in v0.2.0

func (f *FileshareProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileshareProfile.

type GatewayServerProperties added in v0.2.0

type GatewayServerProperties struct {
	// READ-ONLY; Defines the SAP Instance health.
	Health *SAPHealthState `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The gateway Port.
	Port *int64 `json:"port,omitempty" azure:"ro"`
}

GatewayServerProperties - Defines the SAP Gateway Server properties.

func (GatewayServerProperties) MarshalJSON added in v0.2.0

func (g GatewayServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GatewayServerProperties.

func (*GatewayServerProperties) UnmarshalJSON added in v0.2.0

func (g *GatewayServerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GatewayServerProperties.

type HAEnabled added in v0.2.0

type HAEnabled string

HAEnabled - Whether to enable HA for the server

const (
	HAEnabledDisabled HAEnabled = "Disabled"
	HAEnabledEnabled  HAEnabled = "Enabled"
)

func PossibleHAEnabledValues added in v0.2.0

func PossibleHAEnabledValues() []HAEnabled

PossibleHAEnabledValues returns the possible values for the HAEnabled const type.

type HanaDbProviderInstanceProperties

type HanaDbProviderInstanceProperties struct {
	// REQUIRED; The provider type. For example, the value can be SapHana.
	ProviderType *string `json:"providerType,omitempty"`

	// Gets or sets the hana database name.
	DbName *string `json:"dbName,omitempty"`

	// Gets or sets the database password.
	DbPassword *string `json:"dbPassword,omitempty"`

	// Gets or sets the key vault URI to secret with the database password.
	DbPasswordURI *string `json:"dbPasswordUri,omitempty"`

	// Gets or sets the blob URI to SSL certificate for the DB.
	DbSSLCertificateURI *string `json:"dbSslCertificateUri,omitempty"`

	// Gets or sets the database user name.
	DbUsername *string `json:"dbUsername,omitempty"`

	// Gets or sets the target virtual machine size.
	Hostname *string `json:"hostname,omitempty"`

	// Gets or sets the database instance number.
	InstanceNumber *string `json:"instanceNumber,omitempty"`

	// Gets or sets the database sql port.
	SQLPort *string `json:"sqlPort,omitempty"`

	// Gets or sets the hostname(s) in the SSL certificate.
	SSLHostNameInCertificate *string `json:"sslHostNameInCertificate,omitempty"`
}

HanaDbProviderInstanceProperties - Gets or sets the provider properties.

func (*HanaDbProviderInstanceProperties) GetProviderSpecificProperties

func (h *HanaDbProviderInstanceProperties) GetProviderSpecificProperties() *ProviderSpecificProperties

GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type HanaDbProviderInstanceProperties.

func (HanaDbProviderInstanceProperties) MarshalJSON

func (h HanaDbProviderInstanceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HanaDbProviderInstanceProperties.

func (*HanaDbProviderInstanceProperties) UnmarshalJSON

func (h *HanaDbProviderInstanceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HanaDbProviderInstanceProperties.

type HighAvailabilityConfiguration added in v0.2.0

type HighAvailabilityConfiguration struct {
	// REQUIRED; The high availability type.
	HighAvailabilityType *SAPHighAvailabilityType `json:"highAvailabilityType,omitempty"`
}

HighAvailabilityConfiguration - Gets or sets the high availability configuration.

func (HighAvailabilityConfiguration) MarshalJSON added in v0.2.0

func (h HighAvailabilityConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HighAvailabilityConfiguration.

func (*HighAvailabilityConfiguration) UnmarshalJSON added in v0.2.0

func (h *HighAvailabilityConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HighAvailabilityConfiguration.

type HighAvailabilitySoftwareConfiguration added in v0.2.0

type HighAvailabilitySoftwareConfiguration struct {
	// REQUIRED; The fencing client id.
	FencingClientID *string `json:"fencingClientId,omitempty"`

	// REQUIRED; The fencing client id secret/password. The secret should never expire. This will be used pacemaker to start/stop
	// the cluster VMs.
	FencingClientPassword *string `json:"fencingClientPassword,omitempty"`
}

HighAvailabilitySoftwareConfiguration - Gets or sets the HA software configuration.

func (HighAvailabilitySoftwareConfiguration) MarshalJSON added in v0.2.0

func (h HighAvailabilitySoftwareConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HighAvailabilitySoftwareConfiguration.

func (*HighAvailabilitySoftwareConfiguration) UnmarshalJSON added in v0.2.0

func (h *HighAvailabilitySoftwareConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HighAvailabilitySoftwareConfiguration.

type ImageReference added in v0.2.0

type ImageReference struct {
	// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
	Offer *string `json:"offer,omitempty"`

	// The image publisher.
	Publisher *string `json:"publisher,omitempty"`

	// The image SKU.
	SKU *string `json:"sku,omitempty"`

	// Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call.
	SharedGalleryImageID *string `json:"sharedGalleryImageId,omitempty"`

	// Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats
	// are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers.
	// Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image
	// will not automatically update after deploy time even if a new version becomes
	// available.
	Version *string `json:"version,omitempty"`

	// READ-ONLY; Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual
	// machine. This readonly field differs from 'version', only if the value specified in
	// 'version' field is 'latest'.
	ExactVersion *string `json:"exactVersion,omitempty" azure:"ro"`
}

ImageReference - Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.

func (ImageReference) MarshalJSON added in v0.2.0

func (i ImageReference) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ImageReference.

func (*ImageReference) UnmarshalJSON added in v0.2.0

func (i *ImageReference) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ImageReference.

type InfrastructureConfiguration added in v0.2.0

type InfrastructureConfiguration struct {
	// REQUIRED; The application resource group where SAP system resources will be deployed.
	AppResourceGroup *string `json:"appResourceGroup,omitempty"`

	// REQUIRED; The deployment Type.
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`
}

InfrastructureConfiguration - Deploy SAP Infrastructure Details.

func (*InfrastructureConfiguration) GetInfrastructureConfiguration added in v0.2.0

func (i *InfrastructureConfiguration) GetInfrastructureConfiguration() *InfrastructureConfiguration

GetInfrastructureConfiguration implements the InfrastructureConfigurationClassification interface for type InfrastructureConfiguration.

func (InfrastructureConfiguration) MarshalJSON added in v0.2.0

func (i InfrastructureConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InfrastructureConfiguration.

func (*InfrastructureConfiguration) UnmarshalJSON added in v0.2.0

func (i *InfrastructureConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InfrastructureConfiguration.

type InfrastructureConfigurationClassification added in v0.2.0

type InfrastructureConfigurationClassification interface {
	// GetInfrastructureConfiguration returns the InfrastructureConfiguration content of the underlying type.
	GetInfrastructureConfiguration() *InfrastructureConfiguration
}

InfrastructureConfigurationClassification provides polymorphic access to related types. Call the interface's GetInfrastructureConfiguration() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *InfrastructureConfiguration, *SingleServerConfiguration, *ThreeTierConfiguration

type LinuxConfiguration added in v0.2.0

type LinuxConfiguration struct {
	// REQUIRED; The OS Type
	OSType *OSType `json:"osType,omitempty"`

	// Specifies whether password authentication should be disabled.
	DisablePasswordAuthentication *bool `json:"disablePasswordAuthentication,omitempty"`

	// Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
	SSH *SSHConfiguration `json:"ssh,omitempty"`

	// The SSH Key-pair used to authenticate with the VM's.
	SSHKeyPair *SSHKeyPair `json:"sshKeyPair,omitempty"`
}

LinuxConfiguration - Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see Linux on Azure-Endorsed Distributions [https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros].

func (*LinuxConfiguration) GetOSConfiguration added in v0.2.0

func (l *LinuxConfiguration) GetOSConfiguration() *OSConfiguration

GetOSConfiguration implements the OSConfigurationClassification interface for type LinuxConfiguration.

func (LinuxConfiguration) MarshalJSON added in v0.2.0

func (l LinuxConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LinuxConfiguration.

func (*LinuxConfiguration) UnmarshalJSON added in v0.2.0

func (l *LinuxConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LinuxConfiguration.

type LoadBalancerType added in v0.2.0

type LoadBalancerType string

LoadBalancerType - Load balancer type

const (
	LoadBalancerTypeApplicationGateway LoadBalancerType = "ApplicationGateway"
	LoadBalancerTypeLoadBalancer       LoadBalancerType = "LoadBalancer"
)

func PossibleLoadBalancerTypeValues added in v0.2.0

func PossibleLoadBalancerTypeValues() []LoadBalancerType

PossibleLoadBalancerTypeValues returns the possible values for the LoadBalancerType const type.

type LocationType added in v0.2.0

type LocationType string

LocationType - Type of the extended location.

const (
	LocationTypeEdgeZone LocationType = "EdgeZone"
	LocationTypeRegion   LocationType = "Region"
)

func PossibleLocationTypeValues added in v0.2.0

func PossibleLocationTypeValues() []LocationType

PossibleLocationTypeValues returns the possible values for the LocationType const type.

type ManagedRGConfiguration

type ManagedRGConfiguration struct {
	// Managed resource group name
	Name *string `json:"name,omitempty"`
}

ManagedRGConfiguration - Managed resource group configuration

func (ManagedRGConfiguration) MarshalJSON added in v0.2.0

func (m ManagedRGConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagedRGConfiguration.

func (*ManagedRGConfiguration) UnmarshalJSON added in v0.2.0

func (m *ManagedRGConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagedRGConfiguration.

type ManagedServiceIdentityType added in v0.2.0

type ManagedServiceIdentityType string

ManagedServiceIdentityType - Type of managed service identity (only None, UserAssigned types are allowed).

const (
	ManagedServiceIdentityTypeNone         ManagedServiceIdentityType = "None"
	ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned"
)

func PossibleManagedServiceIdentityTypeValues added in v0.2.0

func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType

PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.

type MessageServerProperties added in v0.2.0

type MessageServerProperties struct {
	// READ-ONLY; The message server http port.
	HTTPPort *int64 `json:"httpPort,omitempty" azure:"ro"`

	// READ-ONLY; The message server https port.
	HTTPSPort *int64 `json:"httpsPort,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance health.
	Health *SAPHealthState `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The message server SAP host name.
	Hostname *string `json:"hostname,omitempty" azure:"ro"`

	// READ-ONLY; The message server IP Address.
	IPAddress *string `json:"ipAddress,omitempty" azure:"ro"`

	// READ-ONLY; The message server internal MS port.
	InternalMsPort *int64 `json:"internalMsPort,omitempty" azure:"ro"`

	// READ-ONLY; The message server port.
	MSPort *int64 `json:"msPort,omitempty" azure:"ro"`
}

MessageServerProperties - Defines the SAP message server properties.

func (MessageServerProperties) MarshalJSON added in v0.2.0

func (m MessageServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MessageServerProperties.

func (*MessageServerProperties) UnmarshalJSON added in v0.2.0

func (m *MessageServerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MessageServerProperties.

type Monitor

type Monitor struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Managed service identity (user assigned identities)
	Identity *UserAssignedServiceIdentity `json:"identity,omitempty"`

	// SAP monitor properties
	Properties *MonitorProperties `json:"properties,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Monitor - SAP monitor info on Azure (ARM properties and SAP monitor properties)

func (Monitor) MarshalJSON

func (m Monitor) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Monitor.

func (*Monitor) UnmarshalJSON added in v0.2.0

func (m *Monitor) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Monitor.

type MonitorListResult

type MonitorListResult struct {
	// The URL to get the next set of SAP monitors.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of SAP monitors.
	Value []*Monitor `json:"value,omitempty"`
}

MonitorListResult - The response from the List SAP monitors operation.

func (MonitorListResult) MarshalJSON added in v0.2.0

func (m MonitorListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MonitorListResult.

func (*MonitorListResult) UnmarshalJSON added in v0.2.0

func (m *MonitorListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MonitorListResult.

type MonitorProperties

type MonitorProperties struct {
	// The SAP monitor resources will be deployed in the SAP monitoring region. The subnet region should be same as the SAP monitoring
	// region.
	AppLocation *string `json:"appLocation,omitempty"`

	// The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
	LogAnalyticsWorkspaceArmID *string `json:"logAnalyticsWorkspaceArmId,omitempty"`

	// Managed resource group configuration
	ManagedResourceGroupConfiguration *ManagedRGConfiguration `json:"managedResourceGroupConfiguration,omitempty"`

	// The subnet which the SAP monitor will be deployed in
	MonitorSubnet *string `json:"monitorSubnet,omitempty"`

	// Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET.
	RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"`

	// READ-ONLY; Defines the SAP monitor errors.
	Errors *MonitorPropertiesErrors `json:"errors,omitempty" azure:"ro"`

	// READ-ONLY; The ARM ID of the MSI used for SAP monitoring.
	MsiArmID *string `json:"msiArmId,omitempty" azure:"ro"`

	// READ-ONLY; State of provisioning of the SAP monitor.
	ProvisioningState *WorkloadMonitorProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}

MonitorProperties - Describes the properties of a SAP monitor.

func (MonitorProperties) MarshalJSON added in v0.2.0

func (m MonitorProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MonitorProperties.

func (*MonitorProperties) UnmarshalJSON added in v0.2.0

func (m *MonitorProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MonitorProperties.

type MonitorPropertiesErrors

type MonitorPropertiesErrors struct {
	// READ-ONLY; Server-defined set of error codes.
	Code *string `json:"code,omitempty" azure:"ro"`

	// READ-ONLY; Array of details about specific errors that led to this reported error.
	Details []*Error `json:"details,omitempty" azure:"ro"`

	// READ-ONLY; Object containing more specific information than the current object about the error.
	InnerError *ErrorInnerError `json:"innerError,omitempty" azure:"ro"`

	// READ-ONLY; Human-readable representation of the error.
	Message *string `json:"message,omitempty" azure:"ro"`

	// READ-ONLY; Target of the error.
	Target *string `json:"target,omitempty" azure:"ro"`
}

MonitorPropertiesErrors - Defines the SAP monitor errors.

func (MonitorPropertiesErrors) MarshalJSON

func (m MonitorPropertiesErrors) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MonitorPropertiesErrors.

func (*MonitorPropertiesErrors) UnmarshalJSON added in v0.2.0

func (m *MonitorPropertiesErrors) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MonitorPropertiesErrors.

type MonitorsClient

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

MonitorsClient contains the methods for the Monitors group. Don't use this type directly, use NewMonitorsClient() instead.

func NewMonitorsClient

func NewMonitorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MonitorsClient, error)

NewMonitorsClient creates a new instance of MonitorsClient 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 (*MonitorsClient) BeginCreate

func (client *MonitorsClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, monitorParameter Monitor, options *MonitorsClientBeginCreateOptions) (*runtime.Poller[MonitorsClientCreateResponse], error)

BeginCreate - Creates a SAP monitor for the specified subscription, resource group, and resource name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. monitorParameter - Request body representing a SAP monitor options - MonitorsClientBeginCreateOptions contains the optional parameters for the MonitorsClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx,
		"myResourceGroup",
		"mySapMonitor",
		armworkloads.Monitor{
			Location: to.Ptr("westus"),
			Tags: map[string]*string{
				"key": to.Ptr("value"),
			},
			Properties: &armworkloads.MonitorProperties{
				AppLocation:                to.Ptr("westus"),
				LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"),
				ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{
					Name: to.Ptr("myManagedRg"),
				},
				MonitorSubnet:     to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"),
				RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll),
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) BeginDelete

func (client *MonitorsClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientBeginDeleteOptions) (*runtime.Poller[MonitorsClientDeleteResponse], error)

BeginDelete - Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. options - MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"myResourceGroup",
		"mySapMonitor",
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) Get

func (client *MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientGetOptions) (MonitorsClientGetResponse, error)

Get - Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. options - MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"myResourceGroup",
		"mySapMonitor",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MonitorsClient) NewListByResourceGroupPager

func (client *MonitorsClient) NewListByResourceGroupPager(resourceGroupName string, options *MonitorsClientListByResourceGroupOptions) *runtime.Pager[MonitorsClientListByResourceGroupResponse]

NewListByResourceGroupPager - Gets a list of SAP monitors in the specified resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_ListByRG.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByResourceGroupPager("example-rg",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*MonitorsClient) NewListPager

NewListPager - Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview options - MonitorsClientListOptions contains the optional parameters for the MonitorsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*MonitorsClient) Update

func (client *MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body UpdateMonitorRequest, options *MonitorsClientUpdateOptions) (MonitorsClientUpdateResponse, error)

Update - Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. body - The Update SAP workload monitor request body. options - MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_PatchTags_Delete.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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Update(ctx,
		"myResourceGroup",
		"mySapMonitor",
		armworkloads.UpdateMonitorRequest{
			Identity: &armworkloads.UserAssignedServiceIdentity{
				Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone),
			},
			Tags: map[string]*string{},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type MonitorsClientBeginCreateOptions

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

MonitorsClientBeginCreateOptions contains the optional parameters for the MonitorsClient.BeginCreate method.

type MonitorsClientBeginDeleteOptions

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

MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method.

type MonitorsClientCreateResponse

type MonitorsClientCreateResponse struct {
	Monitor
}

MonitorsClientCreateResponse contains the response from method MonitorsClient.Create.

type MonitorsClientDeleteResponse

type MonitorsClientDeleteResponse struct {
	OperationStatusResult
}

MonitorsClientDeleteResponse contains the response from method MonitorsClient.Delete.

type MonitorsClientGetOptions

type MonitorsClientGetOptions struct {
}

MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method.

type MonitorsClientGetResponse

type MonitorsClientGetResponse struct {
	Monitor
}

MonitorsClientGetResponse contains the response from method MonitorsClient.Get.

type MonitorsClientListByResourceGroupOptions

type MonitorsClientListByResourceGroupOptions struct {
}

MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method.

type MonitorsClientListByResourceGroupResponse

type MonitorsClientListByResourceGroupResponse struct {
	MonitorListResult
}

MonitorsClientListByResourceGroupResponse contains the response from method MonitorsClient.ListByResourceGroup.

type MonitorsClientListOptions

type MonitorsClientListOptions struct {
}

MonitorsClientListOptions contains the optional parameters for the MonitorsClient.List method.

type MonitorsClientListResponse

type MonitorsClientListResponse struct {
	MonitorListResult
}

MonitorsClientListResponse contains the response from method MonitorsClient.List.

type MonitorsClientUpdateOptions

type MonitorsClientUpdateOptions struct {
}

MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method.

type MonitorsClientUpdateResponse

type MonitorsClientUpdateResponse struct {
	Monitor
}

MonitorsClientUpdateResponse contains the response from method MonitorsClient.Update.

type MsSQLServerProviderInstanceProperties

type MsSQLServerProviderInstanceProperties struct {
	// REQUIRED; The provider type. For example, the value can be SapHana.
	ProviderType *string `json:"providerType,omitempty"`

	// Gets or sets the database password.
	DbPassword *string `json:"dbPassword,omitempty"`

	// Gets or sets the key vault URI to secret with the database password.
	DbPasswordURI *string `json:"dbPasswordUri,omitempty"`

	// Gets or sets the database sql port.
	DbPort *string `json:"dbPort,omitempty"`

	// Gets or sets the database user name.
	DbUsername *string `json:"dbUsername,omitempty"`

	// Gets or sets the SQL server host name.
	Hostname *string `json:"hostname,omitempty"`

	// Gets or sets the SAP System Identifier
	SapSid *string `json:"sapSid,omitempty"`
}

MsSQLServerProviderInstanceProperties - Gets or sets the SQL server provider properties.

func (*MsSQLServerProviderInstanceProperties) GetProviderSpecificProperties

func (m *MsSQLServerProviderInstanceProperties) GetProviderSpecificProperties() *ProviderSpecificProperties

GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type MsSQLServerProviderInstanceProperties.

func (MsSQLServerProviderInstanceProperties) MarshalJSON

func (m MsSQLServerProviderInstanceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MsSQLServerProviderInstanceProperties.

func (*MsSQLServerProviderInstanceProperties) UnmarshalJSON

func (m *MsSQLServerProviderInstanceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MsSQLServerProviderInstanceProperties.

type NetworkConfiguration added in v0.2.0

type NetworkConfiguration struct {
	// Specifies whether a secondary IP address should be added to the network interface on all VMs
	IsSecondaryIPEnabled *bool `json:"isSecondaryIpEnabled,omitempty"`
}

NetworkConfiguration - Defines the network configuration for SAP infrastructure

func (NetworkConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type NetworkConfiguration.

func (*NetworkConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkConfiguration.

type NetworkProfile added in v0.2.0

type NetworkProfile struct {
	// REQUIRED; Load balancer type
	LoadBalancerType *LoadBalancerType `json:"loadBalancerType,omitempty"`

	// Whether to enable Azure front door
	AzureFrontDoorEnabled *AzureFrontDoorEnabled `json:"azureFrontDoorEnabled,omitempty"`

	// Capacity, applicable only for Application Gateway
	Capacity *int32 `json:"capacity,omitempty"`

	// Load balancer SKU
	LoadBalancerSKU *string `json:"loadBalancerSku,omitempty"`

	// Load balancer tier
	LoadBalancerTier *string `json:"loadBalancerTier,omitempty"`

	// READ-ONLY; Azure front door resource id
	AzureFrontDoorResourceID *string `json:"azureFrontDoorResourceId,omitempty" azure:"ro"`

	// READ-ONLY; Loadbalancer front-end IP address resource Id
	FrontEndPublicIPResourceID *string `json:"frontEndPublicIpResourceId,omitempty" azure:"ro"`

	// READ-ONLY; Azure Loadbalancer or ApplicationGateway resource Id
	LoadBalancerResourceID *string `json:"loadBalancerResourceId,omitempty" azure:"ro"`

	// READ-ONLY; List of outbound public IP resource IDs
	OutboundPublicIPResourceIDs []*string `json:"outboundPublicIpResourceIds,omitempty" azure:"ro"`

	// READ-ONLY; Virtual network resource Id
	VNetResourceID *string `json:"vNetResourceId,omitempty" azure:"ro"`
}

NetworkProfile - Network profile

func (NetworkProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type NetworkProfile.

func (*NetworkProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProfile.

type NodeProfile added in v0.2.0

type NodeProfile struct {
	// REQUIRED; VM SKU for node(s)
	NodeSKU *string `json:"nodeSku,omitempty"`

	// REQUIRED; OS disk details
	OSDisk *DiskInfo `json:"osDisk,omitempty"`

	// REQUIRED; OS image used for creating the nodes
	OSImage *OsImageProfile `json:"osImage,omitempty"`

	// Data disks details. This property is not in use right now
	DataDisks []*DiskInfo `json:"dataDisks,omitempty"`

	// VM or VMSS name
	Name *string `json:"name,omitempty"`

	// READ-ONLY; VM/VMSS resource ARM Ids
	NodeResourceIDs []*string `json:"nodeResourceIds,omitempty" azure:"ro"`
}

NodeProfile - VM or VMSS node profile

func (NodeProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type NodeProfile.

func (*NodeProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type NodeProfile.

type OSConfiguration added in v0.2.0

type OSConfiguration struct {
	// REQUIRED; The OS Type
	OSType *OSType `json:"osType,omitempty"`
}

OSConfiguration - Defines the OS configuration.

func (*OSConfiguration) GetOSConfiguration added in v0.2.0

func (o *OSConfiguration) GetOSConfiguration() *OSConfiguration

GetOSConfiguration implements the OSConfigurationClassification interface for type OSConfiguration.

func (OSConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OSConfiguration.

func (*OSConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OSConfiguration.

type OSConfigurationClassification added in v0.2.0

type OSConfigurationClassification interface {
	// GetOSConfiguration returns the OSConfiguration content of the underlying type.
	GetOSConfiguration() *OSConfiguration
}

OSConfigurationClassification provides polymorphic access to related types. Call the interface's GetOSConfiguration() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *LinuxConfiguration, *OSConfiguration, *WindowsConfiguration

type OSImageOffer added in v0.2.0

type OSImageOffer string

OSImageOffer - OS image offer

const (
	OSImageOfferUbuntuServer OSImageOffer = "UbuntuServer"
)

func PossibleOSImageOfferValues added in v0.2.0

func PossibleOSImageOfferValues() []OSImageOffer

PossibleOSImageOfferValues returns the possible values for the OSImageOffer const type.

type OSImagePublisher added in v0.2.0

type OSImagePublisher string

OSImagePublisher - OS image publisher

const (
	OSImagePublisherCanonical OSImagePublisher = "Canonical"
)

func PossibleOSImagePublisherValues added in v0.2.0

func PossibleOSImagePublisherValues() []OSImagePublisher

PossibleOSImagePublisherValues returns the possible values for the OSImagePublisher const type.

type OSImageSKU added in v0.2.0

type OSImageSKU string

OSImageSKU - OS image sku

const (
	OSImageSKUEighteen04LTS OSImageSKU = "18.04-LTS"
	OSImageSKUSixteen04LTS  OSImageSKU = "16.04-LTS"
)

func PossibleOSImageSKUValues added in v0.2.0

func PossibleOSImageSKUValues() []OSImageSKU

PossibleOSImageSKUValues returns the possible values for the OSImageSKU const type.

type OSImageVersion added in v0.2.0

type OSImageVersion string

OSImageVersion - OS image version

const (
	OSImageVersionLatest OSImageVersion = "latest"
)

func PossibleOSImageVersionValues added in v0.2.0

func PossibleOSImageVersionValues() []OSImageVersion

PossibleOSImageVersionValues returns the possible values for the OSImageVersion const type.

type OSProfile added in v0.2.0

type OSProfile struct {
	// Specifies the password of the administrator account.
	// Minimum-length (Windows): 8 characters
	// Minimum-length (Linux): 6 characters
	// Max-length (Windows): 123 characters
	// Max-length (Linux): 72 characters
	// Complexity requirements: 3 out of 4 conditions below need to be fulfilled
	// Has lower characters
	// Has upper characters
	// Has a digit
	// Has a special character (Regex match [\W_])
	// Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1",
	// "Password22", "iloveyou!"
	// For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp]
	// For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension
	// [https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection]
	AdminPassword *string `json:"adminPassword,omitempty"`

	// Specifies the name of the administrator account.
	// This property cannot be updated after the VM is created.
	// Windows-only restriction: Cannot end in "."
	// Disallowed values: "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123",
	// "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest",
	// "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
	// Minimum-length (Linux): 1 character
	// Max-length (Linux): 64 characters
	// Max-length (Windows): 20 characters.
	AdminUsername *string `json:"adminUsername,omitempty"`

	// Specifies Windows operating system settings on the virtual machine.
	OSConfiguration OSConfigurationClassification `json:"osConfiguration,omitempty"`
}

OSProfile - Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned.

func (OSProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OSProfile.

func (*OSProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OSProfile.

type OSType added in v0.2.0

type OSType string

OSType - The OS Type

const (
	OSTypeLinux   OSType = "Linux"
	OSTypeWindows OSType = "Windows"
)

func PossibleOSTypeValues added in v0.2.0

func PossibleOSTypeValues() []OSType

PossibleOSTypeValues returns the possible values for the OSType const type.

type Operation

type Operation struct {
	// Localized display information for this particular operation.
	Display *OperationDisplay `json:"display,omitempty"`

	// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
	ActionType *ActionType `json:"actionType,omitempty" azure:"ro"`

	// 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 `json:"isDataAction,omitempty" azure:"ro"`

	// 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 `json:"name,omitempty" azure:"ro"`

	// 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 `json:"origin,omitempty" azure:"ro"`
}

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

func (Operation) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON added in v0.2.0

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 `json:"description,omitempty" azure:"ro"`

	// 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 `json:"operation,omitempty" azure:"ro"`

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

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

OperationDisplay - Localized display information for this particular operation.

func (OperationDisplay) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON added in v0.2.0

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 `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of operations supported by the resource provider
	Value []*Operation `json:"value,omitempty" azure:"ro"`
}

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 added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationProperties

type OperationProperties string

OperationProperties - Defines the workload operation origin.

const (
	OperationPropertiesNotSpecified OperationProperties = "NotSpecified"
	OperationPropertiesSystem       OperationProperties = "System"
	OperationPropertiesUser         OperationProperties = "User"
)

func PossibleOperationPropertiesValues

func PossibleOperationPropertiesValues() []OperationProperties

PossibleOperationPropertiesValues returns the possible values for the OperationProperties const type.

type OperationStatusResult

type OperationStatusResult struct {
	// REQUIRED; Operation status.
	Status *string `json:"status,omitempty"`

	// The end time of the operation.
	EndTime *time.Time `json:"endTime,omitempty"`

	// If present, details of the operation error.
	Error *ErrorDetail `json:"error,omitempty"`

	// Fully qualified ID for the async operation.
	ID *string `json:"id,omitempty"`

	// Name of the async operation.
	Name *string `json:"name,omitempty"`

	// The operations list.
	Operations []*OperationStatusResult `json:"operations,omitempty"`

	// Percent of the operation that is complete.
	PercentComplete *float32 `json:"percentComplete,omitempty"`

	// The start time of the operation.
	StartTime *time.Time `json:"startTime,omitempty"`
}

OperationStatusResult - The current status of an async operation.

func (OperationStatusResult) MarshalJSON added in v0.2.0

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 - Lists all the available API operations under this PR If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewOperationsClient(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

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

type OperationsClientListResponse

type OperationsClientListResponse struct {
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.List.

type OperationsContent

type OperationsContent struct {
	// Operations content.
	Properties *OperationsDefinition `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

OperationsContent - Defines the workload operation content.

func (OperationsContent) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OperationsContent.

func (*OperationsContent) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsContent.

type OperationsDefinition

type OperationsDefinition struct {
	// REQUIRED; Display information of the operation.
	Display *OperationsDefinitionDisplay `json:"display,omitempty"`

	// REQUIRED; Name of the operation.
	Name *string `json:"name,omitempty"`

	// Defines the action type of workload operation.
	ActionType *WorkloadMonitorActionType `json:"actionType,omitempty"`

	// Indicates whether the operation applies to data-plane.
	IsDataAction *bool `json:"isDataAction,omitempty"`

	// Defines the workload operation origin.
	Origin *OperationProperties `json:"origin,omitempty"`

	// Defines the workload operation properties.
	Properties interface{} `json:"properties,omitempty"`
}

OperationsDefinition - Properties of an Operation.

func (OperationsDefinition) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OperationsDefinition.

func (*OperationsDefinition) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDefinition.

type OperationsDefinitionArrayResponseWithContinuation

type OperationsDefinitionArrayResponseWithContinuation struct {
	// The URL to get to the next set of results, if there are any.
	NextLink *string `json:"nextLink,omitempty"`

	// Defines the workload operation definition response properties.
	Value []*OperationsDefinition `json:"value,omitempty"`
}

OperationsDefinitionArrayResponseWithContinuation - Defines the workload operation definition response.

func (OperationsDefinitionArrayResponseWithContinuation) MarshalJSON added in v0.2.0

MarshalJSON implements the json.Marshaller interface for type OperationsDefinitionArrayResponseWithContinuation.

func (*OperationsDefinitionArrayResponseWithContinuation) UnmarshalJSON added in v0.2.0

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDefinitionArrayResponseWithContinuation.

type OperationsDefinitionDisplay

type OperationsDefinitionDisplay struct {
	// REQUIRED; Describes the workload operation.
	Description *string `json:"description,omitempty"`

	// REQUIRED; Defines the workload operation.
	Operation *string `json:"operation,omitempty"`

	// REQUIRED; Defines the workload provider.
	Provider *string `json:"provider,omitempty"`

	// REQUIRED; Defines the workload resource.
	Resource *string `json:"resource,omitempty"`
}

OperationsDefinitionDisplay - Display information of the operation.

func (OperationsDefinitionDisplay) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OperationsDefinitionDisplay.

func (*OperationsDefinitionDisplay) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDefinitionDisplay.

type OperationsDisplayDefinition

type OperationsDisplayDefinition struct {
	// REQUIRED; Describes the workload operation.
	Description *string `json:"description,omitempty"`

	// REQUIRED; Defines the workload operation.
	Operation *string `json:"operation,omitempty"`

	// REQUIRED; Defines the workload provider.
	Provider *string `json:"provider,omitempty"`

	// REQUIRED; Defines the workload resource.
	Resource *string `json:"resource,omitempty"`
}

OperationsDisplayDefinition - Defines the workload operation.

func (OperationsDisplayDefinition) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OperationsDisplayDefinition.

func (*OperationsDisplayDefinition) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDisplayDefinition.

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 OsImageProfile added in v0.2.0

type OsImageProfile struct {
	// OS image offer
	Offer *OSImageOffer `json:"offer,omitempty"`

	// OS image publisher
	Publisher *OSImagePublisher `json:"publisher,omitempty"`

	// OS image sku
	SKU *OSImageSKU `json:"sku,omitempty"`

	// OS image version
	Version *OSImageVersion `json:"version,omitempty"`
}

OsImageProfile - OS image profile

func (OsImageProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OsImageProfile.

func (*OsImageProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OsImageProfile.

type OsSapConfiguration added in v0.2.0

type OsSapConfiguration struct {
	// The url and storage account ID where deployer VM packages are uploaded
	DeployerVMPackages *DeployerVMPackages `json:"deployerVmPackages,omitempty"`

	// The FQDN to set for the SAP system
	SapFqdn *string `json:"sapFqdn,omitempty"`
}

OsSapConfiguration - Defines the OS and SAP Configurations for Deployment

func (OsSapConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type OsSapConfiguration.

func (*OsSapConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OsSapConfiguration.

type PHPVersion added in v0.2.0

type PHPVersion string

PHPVersion - PHP version

const (
	PHPVersionSeven2 PHPVersion = "7.2"
	PHPVersionSeven3 PHPVersion = "7.3"
	PHPVersionSeven4 PHPVersion = "7.4"
)

func PossiblePHPVersionValues added in v0.2.0

func PossiblePHPVersionValues() []PHPVersion

PossiblePHPVersionValues returns the possible values for the PHPVersion const type.

type PatchResourceRequestBody added in v0.2.0

type PatchResourceRequestBody struct {
	Identity *PatchResourceRequestBodyIdentity `json:"identity,omitempty"`

	// Resource tags
	Tags map[string]*string `json:"tags,omitempty"`
}

PatchResourceRequestBody - Resource patch request body

func (PatchResourceRequestBody) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type PatchResourceRequestBody.

func (*PatchResourceRequestBody) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PatchResourceRequestBody.

type PatchResourceRequestBodyIdentity added in v0.2.0

type PatchResourceRequestBodyIdentity struct {
	// REQUIRED; Type of manage identity
	Type *ManagedServiceIdentityType `json:"type,omitempty"`

	// User assigned identities dictionary
	UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"`
}

func (PatchResourceRequestBodyIdentity) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type PatchResourceRequestBodyIdentity.

func (*PatchResourceRequestBodyIdentity) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PatchResourceRequestBodyIdentity.

type PhpProfile added in v0.2.0

type PhpProfile struct {
	// REQUIRED; PHP version
	Version *PHPVersion `json:"version,omitempty"`
}

PhpProfile - PHP profile

func (PhpProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type PhpProfile.

func (*PhpProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PhpProfile.

type PhpWorkloadProvisioningState added in v0.2.0

type PhpWorkloadProvisioningState string

PhpWorkloadProvisioningState - Php workload resource provisioning state

const (
	PhpWorkloadProvisioningStateAccepted     PhpWorkloadProvisioningState = "Accepted"
	PhpWorkloadProvisioningStateCanceled     PhpWorkloadProvisioningState = "Canceled"
	PhpWorkloadProvisioningStateCreated      PhpWorkloadProvisioningState = "Created"
	PhpWorkloadProvisioningStateDeleting     PhpWorkloadProvisioningState = "Deleting"
	PhpWorkloadProvisioningStateFailed       PhpWorkloadProvisioningState = "Failed"
	PhpWorkloadProvisioningStateNotSpecified PhpWorkloadProvisioningState = "NotSpecified"
	PhpWorkloadProvisioningStateProvisioning PhpWorkloadProvisioningState = "Provisioning"
	PhpWorkloadProvisioningStateSucceeded    PhpWorkloadProvisioningState = "Succeeded"
)

func PossiblePhpWorkloadProvisioningStateValues added in v0.2.0

func PossiblePhpWorkloadProvisioningStateValues() []PhpWorkloadProvisioningState

PossiblePhpWorkloadProvisioningStateValues returns the possible values for the PhpWorkloadProvisioningState const type.

type PhpWorkloadResource added in v0.2.0

type PhpWorkloadResource struct {
	// REQUIRED; Indicates which kind of php workload this resource represent e.g WordPress
	Kind *WorkloadKind `json:"kind,omitempty"`

	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Identity for the resource. Currently not supported
	Identity *PhpWorkloadResourceIdentity `json:"identity,omitempty"`

	// Resource properties
	Properties *PhpWorkloadResourceProperties `json:"properties,omitempty"`

	// Php workloads SKU
	SKU *SKU `json:"sku,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

PhpWorkloadResource - Php workload resource

func (PhpWorkloadResource) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResource.

func (*PhpWorkloadResource) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResource.

type PhpWorkloadResourceIdentity added in v0.2.0

type PhpWorkloadResourceIdentity struct {
	// REQUIRED; Type of manage identity
	Type *ManagedServiceIdentityType `json:"type,omitempty"`

	// User assigned identities dictionary
	UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"`
}

PhpWorkloadResourceIdentity - Identity for the resource. Currently not supported

func (PhpWorkloadResourceIdentity) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResourceIdentity.

func (*PhpWorkloadResourceIdentity) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResourceIdentity.

type PhpWorkloadResourceList added in v0.2.0

type PhpWorkloadResourceList struct {
	// Link to next page of resources
	NextLink *string `json:"nextLink,omitempty"`

	// List of resources in current page
	Value []*PhpWorkloadResource `json:"value,omitempty"`
}

PhpWorkloadResourceList - Php workload resource list

func (PhpWorkloadResourceList) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResourceList.

func (*PhpWorkloadResourceList) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResourceList.

type PhpWorkloadResourceProperties added in v0.2.0

type PhpWorkloadResourceProperties struct {
	// REQUIRED; Admin user profile used for VM and VMSS
	AdminUserProfile *UserProfile `json:"adminUserProfile,omitempty"`

	// REQUIRED; The infra resources for PHP workload will be created in this location
	AppLocation *string `json:"appLocation,omitempty"`

	// REQUIRED; Controller VM profile
	ControllerProfile *NodeProfile `json:"controllerProfile,omitempty"`

	// REQUIRED; Database profile
	DatabaseProfile *DatabaseProfile `json:"databaseProfile,omitempty"`

	// REQUIRED; VMSS web nodes profile
	WebNodesProfile *VmssNodesProfile `json:"webNodesProfile,omitempty"`

	// Backup profile
	BackupProfile *BackupProfile `json:"backupProfile,omitempty"`

	// Cache profile
	CacheProfile *CacheProfile `json:"cacheProfile,omitempty"`

	// File share profile
	FileshareProfile *FileshareProfile `json:"fileshareProfile,omitempty"`

	// Managed resource group configuration of the workload
	ManagedResourceGroupConfiguration *ManagedRGConfiguration `json:"managedResourceGroupConfiguration,omitempty"`

	// Network profile
	NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`

	// PHP profile
	PhpProfile *PhpProfile `json:"phpProfile,omitempty"`

	// Search profile
	SearchProfile *SearchProfile `json:"searchProfile,omitempty"`

	// Site profile
	SiteProfile *SiteProfile `json:"siteProfile,omitempty"`

	// READ-ONLY; Php workload resource provisioning state
	ProvisioningState *PhpWorkloadProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}

PhpWorkloadResourceProperties - PHP workload resource properties

func (PhpWorkloadResourceProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResourceProperties.

func (*PhpWorkloadResourceProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResourceProperties.

type PhpWorkloadsClient added in v0.2.0

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

PhpWorkloadsClient contains the methods for the PhpWorkloads group. Don't use this type directly, use NewPhpWorkloadsClient() instead.

func NewPhpWorkloadsClient added in v0.2.0

func NewPhpWorkloadsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PhpWorkloadsClient, error)

NewPhpWorkloadsClient creates a new instance of PhpWorkloadsClient 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 (*PhpWorkloadsClient) BeginCreateOrUpdate added in v0.2.0

func (client *PhpWorkloadsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, phpWorkloadName string, phpWorkloadResource PhpWorkloadResource, options *PhpWorkloadsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PhpWorkloadsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create or updated PHP workload resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name phpWorkloadResource - Resource create or update request payload options - PhpWorkloadsClientBeginCreateOrUpdateOptions contains the optional parameters for the PhpWorkloadsClient.BeginCreateOrUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_CreateOrUpdate.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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreateOrUpdate(ctx,
		"test-rg",
		"wp39",
		armworkloads.PhpWorkloadResource{
			Location: to.Ptr("eastus2"),
			Tags:     map[string]*string{},
			Kind:     to.Ptr(armworkloads.WorkloadKindWordPress),
			Properties: &armworkloads.PhpWorkloadResourceProperties{
				AdminUserProfile: &armworkloads.UserProfile{
					SSHPublicKey: to.Ptr("===SSH=PUBLIC=KEY==="),
					UserName:     to.Ptr("wpadmin"),
				},
				AppLocation: to.Ptr("eastus"),
				BackupProfile: &armworkloads.BackupProfile{
					BackupEnabled: to.Ptr(armworkloads.EnableBackupDisabled),
				},
				CacheProfile: &armworkloads.CacheProfile{
					Name:     to.Ptr("wp-cache"),
					Capacity: to.Ptr[int64](0),
					Family:   to.Ptr(armworkloads.RedisCacheFamilyC),
					SKUName:  to.Ptr("Basic"),
				},
				ControllerProfile: &armworkloads.NodeProfile{
					Name: to.Ptr("contoller-vm"),
					DataDisks: []*armworkloads.DiskInfo{
						{
							SizeInGB:    to.Ptr[int64](100),
							StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS),
						}},
					NodeSKU: to.Ptr("Standard_DS2_v2"),
					OSDisk: &armworkloads.DiskInfo{
						StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS),
					},
					OSImage: &armworkloads.OsImageProfile{
						Offer:     to.Ptr(armworkloads.OSImageOfferUbuntuServer),
						Publisher: to.Ptr(armworkloads.OSImagePublisherCanonical),
						SKU:       to.Ptr(armworkloads.OSImageSKU("18.0-LTS")),
						Version:   to.Ptr(armworkloads.OSImageVersionLatest),
					},
				},
				DatabaseProfile: &armworkloads.DatabaseProfile{
					Type:                  to.Ptr(armworkloads.DatabaseTypeMySQL),
					BackupRetentionDays:   to.Ptr[int32](7),
					HaEnabled:             to.Ptr(armworkloads.HAEnabledDisabled),
					ServerName:            to.Ptr("wp-db-server"),
					SKU:                   to.Ptr("Standard_D32s_v4"),
					SSLEnforcementEnabled: to.Ptr(armworkloads.EnableSSLEnforcementEnabled),
					StorageInGB:           to.Ptr[int64](128),
					StorageIops:           to.Ptr[int64](200),
					StorageSKU:            to.Ptr("Premium_LRS"),
					Tier:                  to.Ptr(armworkloads.DatabaseTierGeneralPurpose),
					Version:               to.Ptr("5.7"),
				},
				FileshareProfile: &armworkloads.FileshareProfile{
					ShareSizeInGB: to.Ptr[int64](100),
					ShareType:     to.Ptr(armworkloads.FileShareTypeAzureFiles),
					StorageType:   to.Ptr(armworkloads.FileShareStorageTypePremiumLRS),
				},
				ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{
					Name: to.Ptr("php-mrg-wp39"),
				},
				NetworkProfile: &armworkloads.NetworkProfile{
					AzureFrontDoorEnabled: to.Ptr(armworkloads.AzureFrontDoorEnabledEnabled),
					LoadBalancerSKU:       to.Ptr("Standard"),
					LoadBalancerType:      to.Ptr(armworkloads.LoadBalancerTypeLoadBalancer),
				},
				PhpProfile: &armworkloads.PhpProfile{
					Version: to.Ptr(armworkloads.PHPVersionSeven3),
				},
				SearchProfile: &armworkloads.SearchProfile{
					NodeSKU: to.Ptr("Standard_DS2_v2"),
					OSDisk: &armworkloads.DiskInfo{
						StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS),
					},
					OSImage: &armworkloads.OsImageProfile{
						Offer:     to.Ptr(armworkloads.OSImageOfferUbuntuServer),
						Publisher: to.Ptr(armworkloads.OSImagePublisherCanonical),
						SKU:       to.Ptr(armworkloads.OSImageSKU("18.0-LTS")),
						Version:   to.Ptr(armworkloads.OSImageVersionLatest),
					},
					SearchType: to.Ptr(armworkloads.SearchTypeElastic),
				},
				SiteProfile: &armworkloads.SiteProfile{
					DomainName: to.Ptr("www.example.com"),
				},
				WebNodesProfile: &armworkloads.VmssNodesProfile{
					Name:    to.Ptr("web-server"),
					NodeSKU: to.Ptr("Standard_DS2_v2"),
					OSDisk: &armworkloads.DiskInfo{
						StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS),
					},
					OSImage: &armworkloads.OsImageProfile{
						Offer:     to.Ptr(armworkloads.OSImageOfferUbuntuServer),
						Publisher: to.Ptr(armworkloads.OSImagePublisherCanonical),
						SKU:       to.Ptr(armworkloads.OSImageSKU("18.0-LTS")),
						Version:   to.Ptr(armworkloads.OSImageVersionLatest),
					},
					AutoScaleMaxCount: to.Ptr[int32](1),
					AutoScaleMinCount: to.Ptr[int32](1),
				},
			},
			SKU: &armworkloads.SKU{
				Name: to.Ptr("Large"),
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*PhpWorkloadsClient) BeginDelete added in v0.2.0

func (client *PhpWorkloadsClient) BeginDelete(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *PhpWorkloadsClientBeginDeleteOptions) (*runtime.Poller[PhpWorkloadsClientDeleteResponse], error)

BeginDelete - Delete PHP workload resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name options - PhpWorkloadsClientBeginDeleteOptions contains the optional parameters for the PhpWorkloadsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_Delete.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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"test-rg",
		"wp39",
		&armworkloads.PhpWorkloadsClientBeginDeleteOptions{DeleteInfra: to.Ptr("false")})
	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 (*PhpWorkloadsClient) Get added in v0.2.0

func (client *PhpWorkloadsClient) Get(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *PhpWorkloadsClientGetOptions) (PhpWorkloadsClientGetResponse, error)

Get - Gets the PHP workload resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name options - PhpWorkloadsClientGetOptions contains the optional parameters for the PhpWorkloadsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"test-rg",
		"wp39",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*PhpWorkloadsClient) NewListByResourceGroupPager added in v0.2.0

NewListByResourceGroupPager - Lists PHP workload resources in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - PhpWorkloadsClientListByResourceGroupOptions contains the optional parameters for the PhpWorkloadsClient.ListByResourceGroup method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByResourceGroupPager("test-rg",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*PhpWorkloadsClient) NewListBySubscriptionPager added in v0.2.0

NewListBySubscriptionPager - Lists PHP workload resources for a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview options - PhpWorkloadsClientListBySubscriptionOptions contains the optional parameters for the PhpWorkloadsClient.ListBySubscription method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListBySubscriptionPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*PhpWorkloadsClient) Update added in v0.2.0

func (client *PhpWorkloadsClient) Update(ctx context.Context, resourceGroupName string, phpWorkloadName string, resourcePatchRequestBody PatchResourceRequestBody, options *PhpWorkloadsClientUpdateOptions) (PhpWorkloadsClientUpdateResponse, error)

Update - Update PHP workload resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name resourcePatchRequestBody - Workload resource update data options - PhpWorkloadsClientUpdateOptions contains the optional parameters for the PhpWorkloadsClient.Update method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Update(ctx,
		"test-rg",
		"wp39",
		armworkloads.PatchResourceRequestBody{
			Identity: &armworkloads.PatchResourceRequestBodyIdentity{
				Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone),
			},
			Tags: map[string]*string{
				"tag_name": to.Ptr("tag_value"),
			},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type PhpWorkloadsClientBeginCreateOrUpdateOptions added in v0.2.0

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

PhpWorkloadsClientBeginCreateOrUpdateOptions contains the optional parameters for the PhpWorkloadsClient.BeginCreateOrUpdate method.

type PhpWorkloadsClientBeginDeleteOptions added in v0.2.0

type PhpWorkloadsClientBeginDeleteOptions struct {
	// Whether to delete infra along with workload resource.
	DeleteInfra *string
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PhpWorkloadsClientBeginDeleteOptions contains the optional parameters for the PhpWorkloadsClient.BeginDelete method.

type PhpWorkloadsClientCreateOrUpdateResponse added in v0.2.0

type PhpWorkloadsClientCreateOrUpdateResponse struct {
	PhpWorkloadResource
}

PhpWorkloadsClientCreateOrUpdateResponse contains the response from method PhpWorkloadsClient.CreateOrUpdate.

type PhpWorkloadsClientDeleteResponse added in v0.2.0

type PhpWorkloadsClientDeleteResponse struct {
}

PhpWorkloadsClientDeleteResponse contains the response from method PhpWorkloadsClient.Delete.

type PhpWorkloadsClientGetOptions added in v0.2.0

type PhpWorkloadsClientGetOptions struct {
}

PhpWorkloadsClientGetOptions contains the optional parameters for the PhpWorkloadsClient.Get method.

type PhpWorkloadsClientGetResponse added in v0.2.0

type PhpWorkloadsClientGetResponse struct {
	PhpWorkloadResource
}

PhpWorkloadsClientGetResponse contains the response from method PhpWorkloadsClient.Get.

type PhpWorkloadsClientListByResourceGroupOptions added in v0.2.0

type PhpWorkloadsClientListByResourceGroupOptions struct {
}

PhpWorkloadsClientListByResourceGroupOptions contains the optional parameters for the PhpWorkloadsClient.ListByResourceGroup method.

type PhpWorkloadsClientListByResourceGroupResponse added in v0.2.0

type PhpWorkloadsClientListByResourceGroupResponse struct {
	PhpWorkloadResourceList
}

PhpWorkloadsClientListByResourceGroupResponse contains the response from method PhpWorkloadsClient.ListByResourceGroup.

type PhpWorkloadsClientListBySubscriptionOptions added in v0.2.0

type PhpWorkloadsClientListBySubscriptionOptions struct {
}

PhpWorkloadsClientListBySubscriptionOptions contains the optional parameters for the PhpWorkloadsClient.ListBySubscription method.

type PhpWorkloadsClientListBySubscriptionResponse added in v0.2.0

type PhpWorkloadsClientListBySubscriptionResponse struct {
	PhpWorkloadResourceList
}

PhpWorkloadsClientListBySubscriptionResponse contains the response from method PhpWorkloadsClient.ListBySubscription.

type PhpWorkloadsClientUpdateOptions added in v0.2.0

type PhpWorkloadsClientUpdateOptions struct {
}

PhpWorkloadsClientUpdateOptions contains the optional parameters for the PhpWorkloadsClient.Update method.

type PhpWorkloadsClientUpdateResponse added in v0.2.0

type PhpWorkloadsClientUpdateResponse struct {
	PhpWorkloadResource
}

PhpWorkloadsClientUpdateResponse contains the response from method PhpWorkloadsClient.Update.

type PrometheusHaClusterProviderInstanceProperties

type PrometheusHaClusterProviderInstanceProperties struct {
	// REQUIRED; The provider type. For example, the value can be SapHana.
	ProviderType *string `json:"providerType,omitempty"`

	// Gets or sets the clusterName.
	ClusterName *string `json:"clusterName,omitempty"`

	// Gets or sets the target machine name.
	Hostname *string `json:"hostname,omitempty"`

	// URL of the Node Exporter endpoint.
	PrometheusURL *string `json:"prometheusUrl,omitempty"`

	// Gets or sets the cluster sid.
	Sid *string `json:"sid,omitempty"`
}

PrometheusHaClusterProviderInstanceProperties - Gets or sets the PrometheusHaCluster provider properties.

func (*PrometheusHaClusterProviderInstanceProperties) GetProviderSpecificProperties

GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type PrometheusHaClusterProviderInstanceProperties.

func (PrometheusHaClusterProviderInstanceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type PrometheusHaClusterProviderInstanceProperties.

func (*PrometheusHaClusterProviderInstanceProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PrometheusHaClusterProviderInstanceProperties.

type PrometheusOSProviderInstanceProperties

type PrometheusOSProviderInstanceProperties struct {
	// REQUIRED; The provider type. For example, the value can be SapHana.
	ProviderType *string `json:"providerType,omitempty"`

	// URL of the Node Exporter endpoint
	PrometheusURL *string `json:"prometheusUrl,omitempty"`
}

PrometheusOSProviderInstanceProperties - Gets or sets the PrometheusOS provider properties.

func (*PrometheusOSProviderInstanceProperties) GetProviderSpecificProperties

func (p *PrometheusOSProviderInstanceProperties) GetProviderSpecificProperties() *ProviderSpecificProperties

GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type PrometheusOSProviderInstanceProperties.

func (PrometheusOSProviderInstanceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PrometheusOSProviderInstanceProperties.

func (*PrometheusOSProviderInstanceProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PrometheusOSProviderInstanceProperties.

type ProviderInstance

type ProviderInstance struct {
	// Managed service identity (user assigned identities)
	Identity *UserAssignedServiceIdentity `json:"identity,omitempty"`

	// Provider Instance properties
	Properties *ProviderInstanceProperties `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

ProviderInstance - A provider instance associated with SAP monitor.

func (ProviderInstance) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ProviderInstance.

func (*ProviderInstance) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProviderInstance.

type ProviderInstanceListResult

type ProviderInstanceListResult struct {
	// The URL to get the next set of provider instances.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of provider instances.
	Value []*ProviderInstance `json:"value,omitempty"`
}

ProviderInstanceListResult - The response from the List provider instances operation.

func (ProviderInstanceListResult) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ProviderInstanceListResult.

func (*ProviderInstanceListResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProviderInstanceListResult.

type ProviderInstanceProperties

type ProviderInstanceProperties struct {
	// Defines the provider instance errors.
	ProviderSettings ProviderSpecificPropertiesClassification `json:"providerSettings,omitempty"`

	// READ-ONLY; Defines the provider instance errors.
	Errors *ProviderInstancePropertiesErrors `json:"errors,omitempty" azure:"ro"`

	// READ-ONLY; State of provisioning of the provider instance
	ProvisioningState *WorkloadMonitorProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}

ProviderInstanceProperties - Describes the properties of a provider instance.

func (ProviderInstanceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProviderInstanceProperties.

func (*ProviderInstanceProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProviderInstanceProperties.

type ProviderInstancePropertiesErrors

type ProviderInstancePropertiesErrors struct {
	// READ-ONLY; Server-defined set of error codes.
	Code *string `json:"code,omitempty" azure:"ro"`

	// READ-ONLY; Array of details about specific errors that led to this reported error.
	Details []*Error `json:"details,omitempty" azure:"ro"`

	// READ-ONLY; Object containing more specific information than the current object about the error.
	InnerError *ErrorInnerError `json:"innerError,omitempty" azure:"ro"`

	// READ-ONLY; Human-readable representation of the error.
	Message *string `json:"message,omitempty" azure:"ro"`

	// READ-ONLY; Target of the error.
	Target *string `json:"target,omitempty" azure:"ro"`
}

ProviderInstancePropertiesErrors - Defines the provider instance errors.

func (ProviderInstancePropertiesErrors) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProviderInstancePropertiesErrors.

func (*ProviderInstancePropertiesErrors) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProviderInstancePropertiesErrors.

type ProviderInstancesClient

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

ProviderInstancesClient contains the methods for the ProviderInstances group. Don't use this type directly, use NewProviderInstancesClient() instead.

func NewProviderInstancesClient

func NewProviderInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProviderInstancesClient, error)

NewProviderInstancesClient creates a new instance of ProviderInstancesClient 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 (*ProviderInstancesClient) BeginCreate

func (client *ProviderInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, providerInstanceParameter ProviderInstance, options *ProviderInstancesClientBeginCreateOptions) (*runtime.Poller[ProviderInstancesClientCreateResponse], error)

BeginCreate - Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. providerInstanceName - Name of the provider instance. providerInstanceParameter - Request body representing a provider instance options - ProviderInstancesClientBeginCreateOptions contains the optional parameters for the ProviderInstancesClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/Db2ProviderInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx,
		"myResourceGroup",
		"mySapMonitor",
		"myProviderInstance",
		armworkloads.ProviderInstance{
			Properties: &armworkloads.ProviderInstanceProperties{
				ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{
					ProviderType:  to.Ptr("Db2"),
					DbName:        to.Ptr("dbName"),
					DbPassword:    to.Ptr("password"),
					DbPasswordURI: to.Ptr(""),
					DbPort:        to.Ptr("dbPort"),
					DbUsername:    to.Ptr("username"),
					Hostname:      to.Ptr("hostname"),
					SapSid:        to.Ptr("SID"),
				},
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ProviderInstancesClient) BeginDelete

func (client *ProviderInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, options *ProviderInstancesClientBeginDeleteOptions) (*runtime.Poller[ProviderInstancesClientDeleteResponse], error)

BeginDelete - Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. providerInstanceName - Name of the provider instance. options - ProviderInstancesClientBeginDeleteOptions contains the optional parameters for the ProviderInstancesClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/ProviderInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"myResourceGroup",
		"mySapMonitor",
		"myProviderInstance",
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ProviderInstancesClient) Get

func (client *ProviderInstancesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, options *ProviderInstancesClientGetOptions) (ProviderInstancesClientGetResponse, error)

Get - Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. providerInstanceName - Name of the provider instance. options - ProviderInstancesClientGetOptions contains the optional parameters for the ProviderInstancesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/Db2ProviderInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"myResourceGroup",
		"mySapMonitor",
		"myProviderInstance",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ProviderInstancesClient) NewListPager

func (client *ProviderInstancesClient) NewListPager(resourceGroupName string, monitorName string, options *ProviderInstancesClientListOptions) *runtime.Pager[ProviderInstancesClientListResponse]

NewListPager - Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each provider instances. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. monitorName - Name of the SAP monitor resource. options - ProviderInstancesClientListOptions contains the optional parameters for the ProviderInstancesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/ProviderInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager("myResourceGroup",
		"mySapMonitor",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ProviderInstancesClientBeginCreateOptions

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

ProviderInstancesClientBeginCreateOptions contains the optional parameters for the ProviderInstancesClient.BeginCreate method.

type ProviderInstancesClientBeginDeleteOptions

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

ProviderInstancesClientBeginDeleteOptions contains the optional parameters for the ProviderInstancesClient.BeginDelete method.

type ProviderInstancesClientCreateResponse

type ProviderInstancesClientCreateResponse struct {
	ProviderInstance
}

ProviderInstancesClientCreateResponse contains the response from method ProviderInstancesClient.Create.

type ProviderInstancesClientDeleteResponse

type ProviderInstancesClientDeleteResponse struct {
	OperationStatusResult
}

ProviderInstancesClientDeleteResponse contains the response from method ProviderInstancesClient.Delete.

type ProviderInstancesClientGetOptions

type ProviderInstancesClientGetOptions struct {
}

ProviderInstancesClientGetOptions contains the optional parameters for the ProviderInstancesClient.Get method.

type ProviderInstancesClientGetResponse

type ProviderInstancesClientGetResponse struct {
	ProviderInstance
}

ProviderInstancesClientGetResponse contains the response from method ProviderInstancesClient.Get.

type ProviderInstancesClientListOptions

type ProviderInstancesClientListOptions struct {
}

ProviderInstancesClientListOptions contains the optional parameters for the ProviderInstancesClient.List method.

type ProviderInstancesClientListResponse

type ProviderInstancesClientListResponse struct {
	ProviderInstanceListResult
}

ProviderInstancesClientListResponse contains the response from method ProviderInstancesClient.List.

type ProviderSpecificProperties

type ProviderSpecificProperties struct {
	// REQUIRED; The provider type. For example, the value can be SapHana.
	ProviderType *string `json:"providerType,omitempty"`
}

ProviderSpecificProperties - Gets or sets the provider specific properties.

func (*ProviderSpecificProperties) GetProviderSpecificProperties

func (p *ProviderSpecificProperties) GetProviderSpecificProperties() *ProviderSpecificProperties

GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type ProviderSpecificProperties.

func (ProviderSpecificProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ProviderSpecificProperties.

func (*ProviderSpecificProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProviderSpecificProperties.

type ProviderSpecificPropertiesClassification

type ProviderSpecificPropertiesClassification interface {
	// GetProviderSpecificProperties returns the ProviderSpecificProperties content of the underlying type.
	GetProviderSpecificProperties() *ProviderSpecificProperties
}

ProviderSpecificPropertiesClassification provides polymorphic access to related types. Call the interface's GetProviderSpecificProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DB2ProviderInstanceProperties, *HanaDbProviderInstanceProperties, *MsSQLServerProviderInstanceProperties, *PrometheusHaClusterProviderInstanceProperties, - *PrometheusOSProviderInstanceProperties, *ProviderSpecificProperties, *SapNetWeaverProviderInstanceProperties

type ProxyResource

type ProxyResource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

func (ProxyResource) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.

type RedisCacheFamily added in v0.2.0

type RedisCacheFamily string

RedisCacheFamily - Cache family

const (
	RedisCacheFamilyC RedisCacheFamily = "C"
	RedisCacheFamilyP RedisCacheFamily = "P"
)

func PossibleRedisCacheFamilyValues added in v0.2.0

func PossibleRedisCacheFamilyValues() []RedisCacheFamily

PossibleRedisCacheFamilyValues returns the possible values for the RedisCacheFamily const type.

type Resource

type Resource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Resource - Common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON added in v0.2.0

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON added in v0.2.0

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type RestrictionInfo added in v0.2.0

type RestrictionInfo struct {
	// The restriction locations.
	Locations []*string `json:"locations,omitempty"`

	// The restriction zones.
	Zones []*string `json:"zones,omitempty"`
}

RestrictionInfo - The SKU restriction information.

func (RestrictionInfo) MarshalJSON added in v0.2.0

func (r RestrictionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RestrictionInfo.

func (*RestrictionInfo) UnmarshalJSON added in v0.2.0

func (r *RestrictionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RestrictionInfo.

type RoutingPreference

type RoutingPreference string

RoutingPreference - Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET.

const (
	RoutingPreferenceDefault  RoutingPreference = "Default"
	RoutingPreferenceRouteAll RoutingPreference = "RouteAll"
)

func PossibleRoutingPreferenceValues

func PossibleRoutingPreferenceValues() []RoutingPreference

PossibleRoutingPreferenceValues returns the possible values for the RoutingPreference const type.

type SAPApplicationServerInstance added in v0.2.0

type SAPApplicationServerInstance struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Defines the SAP Application Server properties.
	Properties *SAPApplicationServerProperties `json:"properties,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

SAPApplicationServerInstance - Define the SAP Application Server Instance.

func (SAPApplicationServerInstance) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPApplicationServerInstance.

func (*SAPApplicationServerInstance) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPApplicationServerInstance.

type SAPApplicationServerInstanceList added in v0.2.0

type SAPApplicationServerInstanceList struct {
	// Gets the value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// Gets the list of SAP Application Server instances.
	Value []*SAPApplicationServerInstance `json:"value,omitempty"`
}

SAPApplicationServerInstanceList - Defines the collection of SAP Application Server Instances.

func (SAPApplicationServerInstanceList) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPApplicationServerInstanceList.

func (*SAPApplicationServerInstanceList) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPApplicationServerInstanceList.

type SAPApplicationServerInstancesClient added in v0.2.0

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

SAPApplicationServerInstancesClient contains the methods for the SAPApplicationServerInstances group. Don't use this type directly, use NewSAPApplicationServerInstancesClient() instead.

func NewSAPApplicationServerInstancesClient added in v0.2.0

func NewSAPApplicationServerInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPApplicationServerInstancesClient, error)

NewSAPApplicationServerInstancesClient creates a new instance of SAPApplicationServerInstancesClient 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 (*SAPApplicationServerInstancesClient) BeginCreate added in v0.2.0

BeginCreate - Puts the SAP Application Server Instance. This will be used by service only. PUT by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. applicationInstanceName - The name of SAP Application Server instance. body - The SAP Application Server instance request body. options - SAPApplicationServerInstancesClientBeginCreateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPApplicationServerInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx,
		"test-rg",
		"X00",
		"app01",
		armworkloads.SAPApplicationServerInstance{
			Location:   to.Ptr("westcentralus"),
			Tags:       map[string]*string{},
			Properties: &armworkloads.SAPApplicationServerProperties{},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPApplicationServerInstancesClient) BeginDelete added in v0.2.0

func (client *SAPApplicationServerInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPApplicationServerInstancesClientDeleteResponse], error)

BeginDelete - Deletes the SAP Application Server Instance. This operation will be used by service only. Delete by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. applicationInstanceName - The name of SAP Application Server instance. options - SAPApplicationServerInstancesClientBeginDeleteOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPApplicationServerInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"test-rg",
		"X00",
		"app01",
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPApplicationServerInstancesClient) BeginUpdate added in v0.2.0

BeginUpdate - Puts the SAP Application Server Instance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. applicationInstanceName - The name of SAP Application Server instance. body - The SAP Application Server instance request body. options - SAPApplicationServerInstancesClientBeginUpdateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPApplicationServerInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx,
		"test-rg",
		"X00",
		"app01",
		armworkloads.UpdateSAPApplicationInstanceRequest{
			Tags: map[string]*string{
				"tag1": to.Ptr("value1"),
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPApplicationServerInstancesClient) Get added in v0.2.0

func (client *SAPApplicationServerInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientGetOptions) (SAPApplicationServerInstancesClientGetResponse, error)

Get - Gets the SAP Application Server Instance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. applicationInstanceName - The name of SAP Application Server instance. options - SAPApplicationServerInstancesClientGetOptions contains the optional parameters for the SAPApplicationServerInstancesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPApplicationServerInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"test-rg",
		"X00",
		"app01",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPApplicationServerInstancesClient) NewListPager added in v0.2.0

NewListPager - Lists the SAP Application server Instances in an SVI. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. options - SAPApplicationServerInstancesClientListOptions contains the optional parameters for the SAPApplicationServerInstancesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPApplicationServerInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager("test-rg",
		"X00",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type SAPApplicationServerInstancesClientBeginCreateOptions added in v0.2.0

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

SAPApplicationServerInstancesClientBeginCreateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginCreate method.

type SAPApplicationServerInstancesClientBeginDeleteOptions added in v0.2.0

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

SAPApplicationServerInstancesClientBeginDeleteOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginDelete method.

type SAPApplicationServerInstancesClientBeginUpdateOptions added in v0.2.0

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

SAPApplicationServerInstancesClientBeginUpdateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginUpdate method.

type SAPApplicationServerInstancesClientCreateResponse added in v0.2.0

type SAPApplicationServerInstancesClientCreateResponse struct {
	SAPApplicationServerInstance
}

SAPApplicationServerInstancesClientCreateResponse contains the response from method SAPApplicationServerInstancesClient.Create.

type SAPApplicationServerInstancesClientDeleteResponse added in v0.2.0

type SAPApplicationServerInstancesClientDeleteResponse struct {
	OperationStatusResult
}

SAPApplicationServerInstancesClientDeleteResponse contains the response from method SAPApplicationServerInstancesClient.Delete.

type SAPApplicationServerInstancesClientGetOptions added in v0.2.0

type SAPApplicationServerInstancesClientGetOptions struct {
}

SAPApplicationServerInstancesClientGetOptions contains the optional parameters for the SAPApplicationServerInstancesClient.Get method.

type SAPApplicationServerInstancesClientGetResponse added in v0.2.0

type SAPApplicationServerInstancesClientGetResponse struct {
	SAPApplicationServerInstance
}

SAPApplicationServerInstancesClientGetResponse contains the response from method SAPApplicationServerInstancesClient.Get.

type SAPApplicationServerInstancesClientListOptions added in v0.2.0

type SAPApplicationServerInstancesClientListOptions struct {
}

SAPApplicationServerInstancesClientListOptions contains the optional parameters for the SAPApplicationServerInstancesClient.List method.

type SAPApplicationServerInstancesClientListResponse added in v0.2.0

type SAPApplicationServerInstancesClientListResponse struct {
	SAPApplicationServerInstanceList
}

SAPApplicationServerInstancesClientListResponse contains the response from method SAPApplicationServerInstancesClient.List.

type SAPApplicationServerInstancesClientUpdateResponse added in v0.2.0

type SAPApplicationServerInstancesClientUpdateResponse struct {
	SAPApplicationServerInstance
}

SAPApplicationServerInstancesClientUpdateResponse contains the response from method SAPApplicationServerInstancesClient.Update.

type SAPApplicationServerProperties added in v0.2.0

type SAPApplicationServerProperties struct {
	// READ-ONLY; Defines the Application Instance errors.
	Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"`

	// READ-ONLY; The application server gateway Port.
	GatewayPort *int64 `json:"gatewayPort,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance health.
	Health *SAPHealthState `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The application server SAP host name.
	Hostname *string `json:"hostname,omitempty" azure:"ro"`

	// READ-ONLY; The application server SAP IP Address.
	IPAddress *string `json:"ipAddress,omitempty" azure:"ro"`

	// READ-ONLY; The application server ICM HTTP Port.
	IcmHTTPPort *int64 `json:"icmHttpPort,omitempty" azure:"ro"`

	// READ-ONLY; The application server ICM HTTPS Port.
	IcmHTTPSPort *int64 `json:"icmHttpsPort,omitempty" azure:"ro"`

	// READ-ONLY; The application server instance id.
	InstanceNo *string `json:"instanceNo,omitempty" azure:"ro"`

	// READ-ONLY; The application server SAP kernel patch.
	KernelPatch *string `json:"kernelPatch,omitempty" azure:"ro"`

	// READ-ONLY; The application server SAP kernel version.
	KernelVersion *string `json:"kernelVersion,omitempty" azure:"ro"`

	// READ-ONLY; Defines the provisioning states.
	ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance status.
	Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"`

	// READ-ONLY; The application server subnet.
	Subnet *string `json:"subnet,omitempty" azure:"ro"`

	// READ-ONLY; The virtual machine.
	VirtualMachineID *string `json:"virtualMachineId,omitempty" azure:"ro"`
}

SAPApplicationServerProperties - Defines the SAP Application Server properties.

func (SAPApplicationServerProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPApplicationServerProperties.

func (*SAPApplicationServerProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPApplicationServerProperties.

type SAPAvailabilityZoneDetailsRequest added in v0.2.0

type SAPAvailabilityZoneDetailsRequest struct {
	// REQUIRED; The geo-location where the SAP resources will be created.
	AppLocation *string `json:"appLocation,omitempty"`

	// REQUIRED; The database type. Eg: HANA, DB2, etc
	DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"`

	// REQUIRED; Defines the SAP Product type.
	SapProduct *SAPProductType `json:"sapProduct,omitempty"`
}

SAPAvailabilityZoneDetailsRequest - The SAP request to get list of availability zones.

func (SAPAvailabilityZoneDetailsRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPAvailabilityZoneDetailsRequest.

func (*SAPAvailabilityZoneDetailsRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPAvailabilityZoneDetailsRequest.

type SAPAvailabilityZoneDetailsResult added in v0.2.0

type SAPAvailabilityZoneDetailsResult struct {
	// Gets the list of availability zone pairs.
	AvailabilityZonePairs []*SAPAvailabilityZonePair `json:"availabilityZonePairs,omitempty"`
}

SAPAvailabilityZoneDetailsResult - The list of supported availability zone pairs which are part of SAP HA deployment.

func (SAPAvailabilityZoneDetailsResult) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPAvailabilityZoneDetailsResult.

func (*SAPAvailabilityZoneDetailsResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPAvailabilityZoneDetailsResult.

type SAPAvailabilityZonePair added in v0.2.0

type SAPAvailabilityZonePair struct {
	// The zone A.
	ZoneA *int64 `json:"zoneA,omitempty"`

	// The zone B.
	ZoneB *int64 `json:"zoneB,omitempty"`
}

SAPAvailabilityZonePair - The SAP Availability Zone Pair.

func (SAPAvailabilityZonePair) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPAvailabilityZonePair.

func (*SAPAvailabilityZonePair) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPAvailabilityZonePair.

type SAPCentralInstanceList added in v0.2.0

type SAPCentralInstanceList struct {
	// Gets the value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// Gets the list of SAP central instances.
	Value []*SAPCentralServerInstance `json:"value,omitempty"`
}

SAPCentralInstanceList - Defines the collection of SAP Central Instances.

func (SAPCentralInstanceList) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPCentralInstanceList.

func (*SAPCentralInstanceList) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPCentralInstanceList.

type SAPCentralInstancesClient added in v0.2.0

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

SAPCentralInstancesClient contains the methods for the SAPCentralInstances group. Don't use this type directly, use NewSAPCentralInstancesClient() instead.

func NewSAPCentralInstancesClient added in v0.2.0

func NewSAPCentralInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPCentralInstancesClient, error)

NewSAPCentralInstancesClient creates a new instance of SAPCentralInstancesClient 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 (*SAPCentralInstancesClient) BeginCreate added in v0.2.0

func (client *SAPCentralInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, body SAPCentralServerInstance, options *SAPCentralInstancesClientBeginCreateOptions) (*runtime.Poller[SAPCentralInstancesClientCreateResponse], error)

BeginCreate - Puts the SAP Central Instance. This will be used by service only. PUT by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. body - The SAP Central Server instance request body. options - SAPCentralInstancesClientBeginCreateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPCentralInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx,
		"test-rg",
		"X00",
		"centralServer",
		armworkloads.SAPCentralServerInstance{
			Location:   to.Ptr("westcentralus"),
			Tags:       map[string]*string{},
			Properties: &armworkloads.SAPCentralServerProperties{},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPCentralInstancesClient) BeginDelete added in v0.2.0

func (client *SAPCentralInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPCentralInstancesClientDeleteResponse], error)

BeginDelete - Deletes the SAP Central Instance. This will be used by service only. Delete by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. options - SAPCentralInstancesClientBeginDeleteOptions contains the optional parameters for the SAPCentralInstancesClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPCentralInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"test-rg",
		"X00",
		"centralServer",
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPCentralInstancesClient) BeginUpdate added in v0.2.0

func (client *SAPCentralInstancesClient) BeginUpdate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, body UpdateSAPCentralInstanceRequest, options *SAPCentralInstancesClientBeginUpdateOptions) (*runtime.Poller[SAPCentralInstancesClientUpdateResponse], error)

BeginUpdate - Updates the SAP Central Instance. This can be used to update tags. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. body - The SAP Central Server instance request body. options - SAPCentralInstancesClientBeginUpdateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPCentralInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx,
		"test-rg",
		"X00",
		"centralServer",
		armworkloads.UpdateSAPCentralInstanceRequest{
			Tags: map[string]*string{
				"tag1": to.Ptr("value1"),
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPCentralInstancesClient) Get added in v0.2.0

func (client *SAPCentralInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientGetOptions) (SAPCentralInstancesClientGetResponse, error)

Get - Gets the SAP Central Instance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. options - SAPCentralInstancesClientGetOptions contains the optional parameters for the SAPCentralInstancesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPCentralInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"test-rg",
		"X00",
		"centralServer",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPCentralInstancesClient) NewListPager added in v0.2.0

func (client *SAPCentralInstancesClient) NewListPager(resourceGroupName string, sapVirtualInstanceName string, options *SAPCentralInstancesClientListOptions) *runtime.Pager[SAPCentralInstancesClientListResponse]

NewListPager - Lists the SAP Central Instances in an SVI. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. options - SAPCentralInstancesClientListOptions contains the optional parameters for the SAPCentralInstancesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPCentralInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager("test-rg",
		"X00",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type SAPCentralInstancesClientBeginCreateOptions added in v0.2.0

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

SAPCentralInstancesClientBeginCreateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginCreate method.

type SAPCentralInstancesClientBeginDeleteOptions added in v0.2.0

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

SAPCentralInstancesClientBeginDeleteOptions contains the optional parameters for the SAPCentralInstancesClient.BeginDelete method.

type SAPCentralInstancesClientBeginUpdateOptions added in v0.2.0

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

SAPCentralInstancesClientBeginUpdateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginUpdate method.

type SAPCentralInstancesClientCreateResponse added in v0.2.0

type SAPCentralInstancesClientCreateResponse struct {
	SAPCentralServerInstance
}

SAPCentralInstancesClientCreateResponse contains the response from method SAPCentralInstancesClient.Create.

type SAPCentralInstancesClientDeleteResponse added in v0.2.0

type SAPCentralInstancesClientDeleteResponse struct {
	OperationStatusResult
}

SAPCentralInstancesClientDeleteResponse contains the response from method SAPCentralInstancesClient.Delete.

type SAPCentralInstancesClientGetOptions added in v0.2.0

type SAPCentralInstancesClientGetOptions struct {
}

SAPCentralInstancesClientGetOptions contains the optional parameters for the SAPCentralInstancesClient.Get method.

type SAPCentralInstancesClientGetResponse added in v0.2.0

type SAPCentralInstancesClientGetResponse struct {
	SAPCentralServerInstance
}

SAPCentralInstancesClientGetResponse contains the response from method SAPCentralInstancesClient.Get.

type SAPCentralInstancesClientListOptions added in v0.2.0

type SAPCentralInstancesClientListOptions struct {
}

SAPCentralInstancesClientListOptions contains the optional parameters for the SAPCentralInstancesClient.List method.

type SAPCentralInstancesClientListResponse added in v0.2.0

type SAPCentralInstancesClientListResponse struct {
	SAPCentralInstanceList
}

SAPCentralInstancesClientListResponse contains the response from method SAPCentralInstancesClient.List.

type SAPCentralInstancesClientUpdateResponse added in v0.2.0

type SAPCentralInstancesClientUpdateResponse struct {
	SAPCentralServerInstance
}

SAPCentralInstancesClientUpdateResponse contains the response from method SAPCentralInstancesClient.Update.

type SAPCentralServerInstance added in v0.2.0

type SAPCentralServerInstance struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Defines the SAP Central Server properties.
	Properties *SAPCentralServerProperties `json:"properties,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

SAPCentralServerInstance - Define the SAP Central Server Instance.

func (SAPCentralServerInstance) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPCentralServerInstance.

func (*SAPCentralServerInstance) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPCentralServerInstance.

type SAPCentralServerProperties added in v0.2.0

type SAPCentralServerProperties struct {
	// Defines the SAP ERS Server properties.
	EnqueueReplicationServerProperties *EnqueueReplicationServerProperties `json:"enqueueReplicationServerProperties,omitempty"`

	// Defines the SAP enqueue server properties.
	EnqueueServerProperties *EnqueueServerProperties `json:"enqueueServerProperties,omitempty"`

	// Defines the SAP Gateway Server properties.
	GatewayServerProperties *GatewayServerProperties `json:"gatewayServerProperties,omitempty"`

	// Defines the SAP message server properties.
	MessageServerProperties *MessageServerProperties `json:"messageServerProperties,omitempty"`

	// READ-ONLY; Defines the Central Instance errors.
	Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance health.
	Health *SAPHealthState `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The central server instance id.
	InstanceNo *string `json:"instanceNo,omitempty" azure:"ro"`

	// READ-ONLY; The central server kernel patch.
	KernelPatch *string `json:"kernelPatch,omitempty" azure:"ro"`

	// READ-ONLY; The central server kernel version.
	KernelVersion *string `json:"kernelVersion,omitempty" azure:"ro"`

	// READ-ONLY; Defines the provisioning states.
	ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance status.
	Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"`

	// READ-ONLY; The central server subnet.
	Subnet *string `json:"subnet,omitempty" azure:"ro"`

	// READ-ONLY; The list of virtual machines.
	VMDetails []*CentralServerVMDetails `json:"vmDetails,omitempty" azure:"ro"`
}

SAPCentralServerProperties - Defines the SAP Central Server properties.

func (SAPCentralServerProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPCentralServerProperties.

func (*SAPCentralServerProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPCentralServerProperties.

type SAPConfiguration added in v0.2.0

type SAPConfiguration struct {
	// REQUIRED; The configuration Type.
	ConfigurationType *SAPConfigurationType `json:"configurationType,omitempty"`
}

SAPConfiguration - The SAP Configuration.

func (*SAPConfiguration) GetSAPConfiguration added in v0.2.0

func (s *SAPConfiguration) GetSAPConfiguration() *SAPConfiguration

GetSAPConfiguration implements the SAPConfigurationClassification interface for type SAPConfiguration.

func (SAPConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPConfiguration.

func (*SAPConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPConfiguration.

type SAPConfigurationClassification added in v0.2.0

type SAPConfigurationClassification interface {
	// GetSAPConfiguration returns the SAPConfiguration content of the underlying type.
	GetSAPConfiguration() *SAPConfiguration
}

SAPConfigurationClassification provides polymorphic access to related types. Call the interface's GetSAPConfiguration() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DeploymentConfiguration, *DeploymentWithOSConfiguration, *DiscoveryConfiguration, *SAPConfiguration

type SAPConfigurationType added in v0.2.0

type SAPConfigurationType string

SAPConfigurationType - The configuration Type.

const (
	SAPConfigurationTypeDeployment             SAPConfigurationType = "Deployment"
	SAPConfigurationTypeDeploymentWithOSConfig SAPConfigurationType = "DeploymentWithOSConfig"
	SAPConfigurationTypeDiscovery              SAPConfigurationType = "Discovery"
)

func PossibleSAPConfigurationTypeValues added in v0.2.0

func PossibleSAPConfigurationTypeValues() []SAPConfigurationType

PossibleSAPConfigurationTypeValues returns the possible values for the SAPConfigurationType const type.

type SAPDatabaseInstance added in v0.2.0

type SAPDatabaseInstance struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Defines the SAP Database properties.
	Properties *SAPDatabaseProperties `json:"properties,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

SAPDatabaseInstance - Define the SAP Database Instance.

func (SAPDatabaseInstance) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPDatabaseInstance.

func (*SAPDatabaseInstance) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDatabaseInstance.

type SAPDatabaseInstanceList added in v0.2.0

type SAPDatabaseInstanceList struct {
	// Gets the value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// Gets the list of SAP Database instances.
	Value []*SAPDatabaseInstance `json:"value,omitempty"`
}

SAPDatabaseInstanceList - Defines the collection of SAP Database Instances.

func (SAPDatabaseInstanceList) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPDatabaseInstanceList.

func (*SAPDatabaseInstanceList) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDatabaseInstanceList.

type SAPDatabaseInstancesClient added in v0.2.0

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

SAPDatabaseInstancesClient contains the methods for the SAPDatabaseInstances group. Don't use this type directly, use NewSAPDatabaseInstancesClient() instead.

func NewSAPDatabaseInstancesClient added in v0.2.0

func NewSAPDatabaseInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPDatabaseInstancesClient, error)

NewSAPDatabaseInstancesClient creates a new instance of SAPDatabaseInstancesClient 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 (*SAPDatabaseInstancesClient) BeginCreate added in v0.2.0

func (client *SAPDatabaseInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, body SAPDatabaseInstance, options *SAPDatabaseInstancesClientBeginCreateOptions) (*runtime.Poller[SAPDatabaseInstancesClientCreateResponse], error)

BeginCreate - Puts the SAP Database Instance. This will be used by service only. PUT by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. body - The SAP Database Server instance request body. options - SAPDatabaseInstancesClientBeginCreateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPDatabaseInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx,
		"test-rg",
		"X00",
		"databaseServer",
		armworkloads.SAPDatabaseInstance{
			Location:   to.Ptr("westcentralus"),
			Tags:       map[string]*string{},
			Properties: &armworkloads.SAPDatabaseProperties{},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPDatabaseInstancesClient) BeginDelete added in v0.2.0

func (client *SAPDatabaseInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPDatabaseInstancesClientDeleteResponse], error)

BeginDelete - Deletes the SAP Database Instance. This will be used by service only. Delete by end user will return a Bad Request error. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. options - SAPDatabaseInstancesClientBeginDeleteOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPDatabaseInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"test-rg",
		"X00",
		"databaseServer",
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPDatabaseInstancesClient) BeginUpdate added in v0.2.0

func (client *SAPDatabaseInstancesClient) BeginUpdate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, body UpdateSAPDatabaseInstanceRequest, options *SAPDatabaseInstancesClientBeginUpdateOptions) (*runtime.Poller[SAPDatabaseInstancesClientUpdateResponse], error)

BeginUpdate - Puts the SAP Database Instance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. body - The SAP Database Server instance request body. options - SAPDatabaseInstancesClientBeginUpdateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPDatabaseInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx,
		"test-rg",
		"X00",
		"databaseServer",
		armworkloads.UpdateSAPDatabaseInstanceRequest{
			Tags: map[string]*string{
				"key1": to.Ptr("value1"),
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPDatabaseInstancesClient) Get added in v0.2.0

func (client *SAPDatabaseInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientGetOptions) (SAPDatabaseInstancesClientGetResponse, error)

Get - Gets the SAP Database Instance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. options - SAPDatabaseInstancesClientGetOptions contains the optional parameters for the SAPDatabaseInstancesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPDatabaseInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"test-rg",
		"X00",
		"databaseServer",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPDatabaseInstancesClient) NewListPager added in v0.2.0

func (client *SAPDatabaseInstancesClient) NewListPager(resourceGroupName string, sapVirtualInstanceName string, options *SAPDatabaseInstancesClientListOptions) *runtime.Pager[SAPDatabaseInstancesClientListResponse]

NewListPager - Lists the SAP Database Instances in an SVI. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. options - SAPDatabaseInstancesClientListOptions contains the optional parameters for the SAPDatabaseInstancesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPDatabaseInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager("test-rg",
		"X00",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type SAPDatabaseInstancesClientBeginCreateOptions added in v0.2.0

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

SAPDatabaseInstancesClientBeginCreateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginCreate method.

type SAPDatabaseInstancesClientBeginDeleteOptions added in v0.2.0

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

SAPDatabaseInstancesClientBeginDeleteOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginDelete method.

type SAPDatabaseInstancesClientBeginUpdateOptions added in v0.2.0

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

SAPDatabaseInstancesClientBeginUpdateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginUpdate method.

type SAPDatabaseInstancesClientCreateResponse added in v0.2.0

type SAPDatabaseInstancesClientCreateResponse struct {
	SAPDatabaseInstance
}

SAPDatabaseInstancesClientCreateResponse contains the response from method SAPDatabaseInstancesClient.Create.

type SAPDatabaseInstancesClientDeleteResponse added in v0.2.0

type SAPDatabaseInstancesClientDeleteResponse struct {
	OperationStatusResult
}

SAPDatabaseInstancesClientDeleteResponse contains the response from method SAPDatabaseInstancesClient.Delete.

type SAPDatabaseInstancesClientGetOptions added in v0.2.0

type SAPDatabaseInstancesClientGetOptions struct {
}

SAPDatabaseInstancesClientGetOptions contains the optional parameters for the SAPDatabaseInstancesClient.Get method.

type SAPDatabaseInstancesClientGetResponse added in v0.2.0

type SAPDatabaseInstancesClientGetResponse struct {
	SAPDatabaseInstance
}

SAPDatabaseInstancesClientGetResponse contains the response from method SAPDatabaseInstancesClient.Get.

type SAPDatabaseInstancesClientListOptions added in v0.2.0

type SAPDatabaseInstancesClientListOptions struct {
}

SAPDatabaseInstancesClientListOptions contains the optional parameters for the SAPDatabaseInstancesClient.List method.

type SAPDatabaseInstancesClientListResponse added in v0.2.0

type SAPDatabaseInstancesClientListResponse struct {
	SAPDatabaseInstanceList
}

SAPDatabaseInstancesClientListResponse contains the response from method SAPDatabaseInstancesClient.List.

type SAPDatabaseInstancesClientUpdateResponse added in v0.2.0

type SAPDatabaseInstancesClientUpdateResponse struct {
	SAPDatabaseInstance
}

SAPDatabaseInstancesClientUpdateResponse contains the response from method SAPDatabaseInstancesClient.Update.

type SAPDatabaseProperties added in v0.2.0

type SAPDatabaseProperties struct {
	// READ-ONLY; The database SID.
	DatabaseSid *string `json:"databaseSid,omitempty" azure:"ro"`

	// READ-ONLY; The SAP database type.
	DatabaseType *string `json:"databaseType,omitempty" azure:"ro"`

	// READ-ONLY; Defines the Database Instance errors.
	Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"`

	// READ-ONLY; The database IP Address.
	IPAddress *string `json:"ipAddress,omitempty" azure:"ro"`

	// READ-ONLY; Defines the provisioning states.
	ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance status.
	Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"`

	// READ-ONLY; The database subnet.
	Subnet *string `json:"subnet,omitempty" azure:"ro"`

	// READ-ONLY; The list of virtual machines.
	VMDetails []*DatabaseVMDetails `json:"vmDetails,omitempty" azure:"ro"`
}

SAPDatabaseProperties - Defines the SAP Database properties.

func (SAPDatabaseProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPDatabaseProperties.

func (*SAPDatabaseProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDatabaseProperties.

type SAPDatabaseScaleMethod added in v0.2.0

type SAPDatabaseScaleMethod string

SAPDatabaseScaleMethod - The database scale method.

const (
	SAPDatabaseScaleMethodScaleUp SAPDatabaseScaleMethod = "ScaleUp"
)

func PossibleSAPDatabaseScaleMethodValues added in v0.2.0

func PossibleSAPDatabaseScaleMethodValues() []SAPDatabaseScaleMethod

PossibleSAPDatabaseScaleMethodValues returns the possible values for the SAPDatabaseScaleMethod const type.

type SAPDatabaseType added in v0.2.0

type SAPDatabaseType string

SAPDatabaseType - Defines the supported SAP Database types.

const (
	SAPDatabaseTypeDB2  SAPDatabaseType = "DB2"
	SAPDatabaseTypeHANA SAPDatabaseType = "HANA"
)

func PossibleSAPDatabaseTypeValues added in v0.2.0

func PossibleSAPDatabaseTypeValues() []SAPDatabaseType

PossibleSAPDatabaseTypeValues returns the possible values for the SAPDatabaseType const type.

type SAPDeploymentType added in v0.2.0

type SAPDeploymentType string

SAPDeploymentType - The deployment Type.

const (
	SAPDeploymentTypeSingleServer SAPDeploymentType = "SingleServer"
	SAPDeploymentTypeThreeTier    SAPDeploymentType = "ThreeTier"
)

func PossibleSAPDeploymentTypeValues added in v0.2.0

func PossibleSAPDeploymentTypeValues() []SAPDeploymentType

PossibleSAPDeploymentTypeValues returns the possible values for the SAPDeploymentType const type.

type SAPDiskConfiguration added in v0.2.0

type SAPDiskConfiguration struct {
	// The disk count.
	DiskCount *int64 `json:"diskCount,omitempty"`

	// The disk Iops.
	DiskIopsReadWrite *int64 `json:"diskIopsReadWrite,omitempty"`

	// The disk provisioned throughput in MBps.
	DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"`

	// The disk size in GB.
	DiskSizeGB *int64 `json:"diskSizeGB,omitempty"`

	// The disk storage type
	DiskStorageType *string `json:"diskStorageType,omitempty"`

	// The disk type.
	DiskType *string `json:"diskType,omitempty"`

	// The volume name.
	Volume *string `json:"volume,omitempty"`
}

SAPDiskConfiguration - The SAP Disk Configuration.

func (SAPDiskConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPDiskConfiguration.

func (*SAPDiskConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDiskConfiguration.

type SAPDiskConfigurationsRequest added in v0.2.0

type SAPDiskConfigurationsRequest struct {
	// REQUIRED; The geo-location where the SAP resources will be created.
	AppLocation *string `json:"appLocation,omitempty"`

	// REQUIRED; The database type. Eg: HANA, DB2, etc
	DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"`

	// REQUIRED; The VM SKU for database instance.
	DbVMSKU *string `json:"dbVmSku,omitempty"`

	// REQUIRED; The deployment type. Eg: SingleServer/ThreeTier
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`

	// REQUIRED; Defines the environment type - Production/Non Production.
	Environment *SAPEnvironmentType `json:"environment,omitempty"`

	// REQUIRED; Defines the SAP Product type.
	SapProduct *SAPProductType `json:"sapProduct,omitempty"`
}

SAPDiskConfigurationsRequest - The SAP request to get list of disk configurations.

func (SAPDiskConfigurationsRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPDiskConfigurationsRequest.

func (*SAPDiskConfigurationsRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDiskConfigurationsRequest.

type SAPDiskConfigurationsResult added in v0.2.0

type SAPDiskConfigurationsResult struct {
	// Gets the list of Disk Configurations.
	DiskConfigurations []*SAPDiskConfiguration `json:"diskConfigurations,omitempty"`
}

SAPDiskConfigurationsResult - The list of disk configuration for vmSku which are part of SAP deployment.

func (SAPDiskConfigurationsResult) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPDiskConfigurationsResult.

func (*SAPDiskConfigurationsResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPDiskConfigurationsResult.

type SAPEnvironmentType added in v0.2.0

type SAPEnvironmentType string

SAPEnvironmentType - Defines the environment type - Production/Non Production.

const (
	SAPEnvironmentTypeNonProd SAPEnvironmentType = "NonProd"
	SAPEnvironmentTypeProd    SAPEnvironmentType = "Prod"
)

func PossibleSAPEnvironmentTypeValues added in v0.2.0

func PossibleSAPEnvironmentTypeValues() []SAPEnvironmentType

PossibleSAPEnvironmentTypeValues returns the possible values for the SAPEnvironmentType const type.

type SAPHealthState added in v0.2.0

type SAPHealthState string

SAPHealthState - Defines the SAP Instance health.

const (
	SAPHealthStateDegraded  SAPHealthState = "Degraded"
	SAPHealthStateHealthy   SAPHealthState = "Healthy"
	SAPHealthStateUnhealthy SAPHealthState = "Unhealthy"
	SAPHealthStateUnknown   SAPHealthState = "Unknown"
)

func PossibleSAPHealthStateValues added in v0.2.0

func PossibleSAPHealthStateValues() []SAPHealthState

PossibleSAPHealthStateValues returns the possible values for the SAPHealthState const type.

type SAPHighAvailabilityType added in v0.2.0

type SAPHighAvailabilityType string

SAPHighAvailabilityType - The high availability Type. AvailabilitySet guarantees 99.95% availability. Availability Zone guarantees 99.99% availability.

const (
	SAPHighAvailabilityTypeAvailabilitySet  SAPHighAvailabilityType = "AvailabilitySet"
	SAPHighAvailabilityTypeAvailabilityZone SAPHighAvailabilityType = "AvailabilityZone"
)

func PossibleSAPHighAvailabilityTypeValues added in v0.2.0

func PossibleSAPHighAvailabilityTypeValues() []SAPHighAvailabilityType

PossibleSAPHighAvailabilityTypeValues returns the possible values for the SAPHighAvailabilityType const type.

type SAPInstallWithoutOSConfigSoftwareConfiguration added in v0.2.0

type SAPInstallWithoutOSConfigSoftwareConfiguration struct {
	// REQUIRED; The URL to the SAP Build of Materials(BOM) file.
	BomURL *string `json:"bomUrl,omitempty"`

	// REQUIRED; The SAP bits storage account id.
	SapBitsStorageAccountID *string `json:"sapBitsStorageAccountId,omitempty"`

	// REQUIRED; The SAP software installation Type.
	SoftwareInstallationType *SAPSoftwareInstallationType `json:"softwareInstallationType,omitempty"`

	// REQUIRED; The software version to install.
	SoftwareVersion *string `json:"softwareVersion,omitempty"`

	// Gets or sets the HA software configuration.
	HighAvailabilitySoftwareConfiguration *HighAvailabilitySoftwareConfiguration `json:"highAvailabilitySoftwareConfiguration,omitempty"`
}

SAPInstallWithoutOSConfigSoftwareConfiguration - The SAP Software configuration Input when the software is to be installed by service without OS Configurations

func (*SAPInstallWithoutOSConfigSoftwareConfiguration) GetSoftwareConfiguration added in v0.2.0

GetSoftwareConfiguration implements the SoftwareConfigurationClassification interface for type SAPInstallWithoutOSConfigSoftwareConfiguration.

func (SAPInstallWithoutOSConfigSoftwareConfiguration) MarshalJSON added in v0.2.0

MarshalJSON implements the json.Marshaller interface for type SAPInstallWithoutOSConfigSoftwareConfiguration.

func (*SAPInstallWithoutOSConfigSoftwareConfiguration) UnmarshalJSON added in v0.2.0

UnmarshalJSON implements the json.Unmarshaller interface for type SAPInstallWithoutOSConfigSoftwareConfiguration.

type SAPProductType added in v0.2.0

type SAPProductType string

SAPProductType - Defines the SAP Product type.

const (
	SAPProductTypeECC    SAPProductType = "ECC"
	SAPProductTypeOther  SAPProductType = "Other"
	SAPProductTypeS4HANA SAPProductType = "S4HANA"
)

func PossibleSAPProductTypeValues added in v0.2.0

func PossibleSAPProductTypeValues() []SAPProductType

PossibleSAPProductTypeValues returns the possible values for the SAPProductType const type.

type SAPSizingRecommendationRequest added in v0.2.0

type SAPSizingRecommendationRequest struct {
	// REQUIRED; The geo-location where the resource is to be created.
	AppLocation *string `json:"appLocation,omitempty"`

	// REQUIRED; The database type.
	DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"`

	// REQUIRED; The database memory configuration.
	DbMemory *int64 `json:"dbMemory,omitempty"`

	// REQUIRED; The deployment type. Eg: SingleServer/ThreeTier
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`

	// REQUIRED; Defines the environment type - Production/Non Production.
	Environment *SAPEnvironmentType `json:"environment,omitempty"`

	// REQUIRED; Defines the SAP Product type.
	SapProduct *SAPProductType `json:"sapProduct,omitempty"`

	// REQUIRED; The SAP Application Performance Standard measurement.
	Saps *int64 `json:"saps,omitempty"`

	// The DB scale method.
	DbScaleMethod *SAPDatabaseScaleMethod `json:"dbScaleMethod,omitempty"`

	// The high availability type.
	HighAvailabilityType *SAPHighAvailabilityType `json:"highAvailabilityType,omitempty"`
}

SAPSizingRecommendationRequest - The SAP Sizing Recommendation request.

func (SAPSizingRecommendationRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPSizingRecommendationRequest.

func (*SAPSizingRecommendationRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPSizingRecommendationRequest.

type SAPSizingRecommendationResult added in v0.2.0

type SAPSizingRecommendationResult struct {
	// REQUIRED; The deployment Type.
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`
}

SAPSizingRecommendationResult - The SAP sizing recommendation result.

func (*SAPSizingRecommendationResult) GetSAPSizingRecommendationResult added in v0.2.0

func (s *SAPSizingRecommendationResult) GetSAPSizingRecommendationResult() *SAPSizingRecommendationResult

GetSAPSizingRecommendationResult implements the SAPSizingRecommendationResultClassification interface for type SAPSizingRecommendationResult.

func (SAPSizingRecommendationResult) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPSizingRecommendationResult.

func (*SAPSizingRecommendationResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPSizingRecommendationResult.

type SAPSizingRecommendationResultClassification added in v0.2.0

type SAPSizingRecommendationResultClassification interface {
	// GetSAPSizingRecommendationResult returns the SAPSizingRecommendationResult content of the underlying type.
	GetSAPSizingRecommendationResult() *SAPSizingRecommendationResult
}

SAPSizingRecommendationResultClassification provides polymorphic access to related types. Call the interface's GetSAPSizingRecommendationResult() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *SAPSizingRecommendationResult, *SingleServerRecommendationResult, *ThreeTierRecommendationResult

type SAPSoftwareInstallationType added in v0.2.0

type SAPSoftwareInstallationType string

SAPSoftwareInstallationType - The SAP software installation Type.

const (
	SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig SAPSoftwareInstallationType = "SAPInstallWithoutOSConfig"
	SAPSoftwareInstallationTypeServiceInitiated          SAPSoftwareInstallationType = "ServiceInitiated"
)

func PossibleSAPSoftwareInstallationTypeValues added in v0.2.0

func PossibleSAPSoftwareInstallationTypeValues() []SAPSoftwareInstallationType

PossibleSAPSoftwareInstallationTypeValues returns the possible values for the SAPSoftwareInstallationType const type.

type SAPSupportedResourceSKUsResult added in v0.2.0

type SAPSupportedResourceSKUsResult struct {
	// Gets the list of SAP supported SKUs.
	SupportedSKUs []*SAPSupportedSKU `json:"supportedSkus,omitempty"`
}

SAPSupportedResourceSKUsResult - The list of supported SKUs for different resources which are part of SAP deployment.

func (SAPSupportedResourceSKUsResult) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPSupportedResourceSKUsResult.

func (*SAPSupportedResourceSKUsResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPSupportedResourceSKUsResult.

type SAPSupportedSKU added in v0.2.0

type SAPSupportedSKU struct {
	// True if the Sku is certified for App server in the SAP system.
	IsAppServerCertified *bool `json:"isAppServerCertified,omitempty"`

	// True if the Sku is certified for Database server in the SAP system.
	IsDatabaseCertified *bool `json:"isDatabaseCertified,omitempty"`

	// The VM Sku.
	VMSKU *string `json:"vmSku,omitempty"`
}

SAPSupportedSKU - The SAP supported SKU.

func (SAPSupportedSKU) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPSupportedSKU.

func (*SAPSupportedSKU) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPSupportedSKU.

type SAPSupportedSKUsRequest added in v0.2.0

type SAPSupportedSKUsRequest struct {
	// REQUIRED; The geo-location where the resource is to be created.
	AppLocation *string `json:"appLocation,omitempty"`

	// REQUIRED; The database type. Eg: HANA, DB2, etc
	DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"`

	// REQUIRED; The deployment type. Eg: SingleServer/ThreeTier
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`

	// REQUIRED; Defines the environment type - Production/Non Production.
	Environment *SAPEnvironmentType `json:"environment,omitempty"`

	// REQUIRED; Defines the SAP Product type.
	SapProduct *SAPProductType `json:"sapProduct,omitempty"`

	// The high availability type.
	HighAvailabilityType *SAPHighAvailabilityType `json:"highAvailabilityType,omitempty"`
}

SAPSupportedSKUsRequest - The SAP request to get list of supported SKUs.

func (SAPSupportedSKUsRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPSupportedSKUsRequest.

func (*SAPSupportedSKUsRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPSupportedSKUsRequest.

type SAPVirtualInstance added in v0.2.0

type SAPVirtualInstance struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// REQUIRED; Defines the Virtual Instance for SAP properties.
	Properties *SAPVirtualInstanceProperties `json:"properties,omitempty"`

	// Managed service identity (user assigned identities)
	Identity *UserAssignedServiceIdentity `json:"identity,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

SAPVirtualInstance - Define the Virtual Instance for SAP.

func (SAPVirtualInstance) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstance.

func (*SAPVirtualInstance) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPVirtualInstance.

type SAPVirtualInstanceError added in v0.2.0

type SAPVirtualInstanceError struct {
	// The Virtual Instance for SAP error body.
	Properties *ErrorDefinition `json:"properties,omitempty"`
}

SAPVirtualInstanceError - An error response from the Virtual Instance for SAP Workload service.

func (SAPVirtualInstanceError) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstanceError.

func (*SAPVirtualInstanceError) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPVirtualInstanceError.

type SAPVirtualInstanceList added in v0.2.0

type SAPVirtualInstanceList struct {
	// Gets the value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// Gets the list of Virtual Instances for SAP.
	Value []*SAPVirtualInstance `json:"value,omitempty"`
}

SAPVirtualInstanceList - Defines the collection of Virtual Instance for SAP.

func (SAPVirtualInstanceList) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstanceList.

func (*SAPVirtualInstanceList) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPVirtualInstanceList.

type SAPVirtualInstanceProperties added in v0.2.0

type SAPVirtualInstanceProperties struct {
	// REQUIRED; Defines if an existing SAP system is being registered or a new SAP system is being created
	Configuration SAPConfigurationClassification `json:"configuration,omitempty"`

	// REQUIRED; Defines the environment type - Production/Non Production.
	Environment *SAPEnvironmentType `json:"environment,omitempty"`

	// REQUIRED; Defines the SAP Product type.
	SapProduct *SAPProductType `json:"sapProduct,omitempty"`

	// Managed resource group configuration
	ManagedResourceGroupConfiguration *ManagedRGConfiguration `json:"managedResourceGroupConfiguration,omitempty"`

	// READ-ONLY; Defines the Virtual Instance for SAP errors.
	Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance health.
	Health *SAPHealthState `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; Defines the provisioning states.
	ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty" azure:"ro"`

	// READ-ONLY; Defines the Virtual Instance for SAP state.
	State *SAPVirtualInstanceState `json:"state,omitempty" azure:"ro"`

	// READ-ONLY; Defines the SAP Instance status.
	Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"`
}

SAPVirtualInstanceProperties - Defines the Virtual Instance for SAP properties.

func (SAPVirtualInstanceProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstanceProperties.

func (*SAPVirtualInstanceProperties) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SAPVirtualInstanceProperties.

type SAPVirtualInstanceState added in v0.2.0

type SAPVirtualInstanceState string

SAPVirtualInstanceState - Defines the Virtual Instance for SAP state.

const (
	SAPVirtualInstanceStateDiscoveryFailed                    SAPVirtualInstanceState = "DiscoveryFailed"
	SAPVirtualInstanceStateDiscoveryInProgress                SAPVirtualInstanceState = "DiscoveryInProgress"
	SAPVirtualInstanceStateDiscoveryPending                   SAPVirtualInstanceState = "DiscoveryPending"
	SAPVirtualInstanceStateInfrastructureDeploymentFailed     SAPVirtualInstanceState = "InfrastructureDeploymentFailed"
	SAPVirtualInstanceStateInfrastructureDeploymentInProgress SAPVirtualInstanceState = "InfrastructureDeploymentInProgress"
	SAPVirtualInstanceStateInfrastructureDeploymentPending    SAPVirtualInstanceState = "InfrastructureDeploymentPending"
	SAPVirtualInstanceStateRegistrationComplete               SAPVirtualInstanceState = "RegistrationComplete"
	SAPVirtualInstanceStateSoftwareInstallationFailed         SAPVirtualInstanceState = "SoftwareInstallationFailed"
	SAPVirtualInstanceStateSoftwareInstallationInProgress     SAPVirtualInstanceState = "SoftwareInstallationInProgress"
	SAPVirtualInstanceStateSoftwareInstallationPending        SAPVirtualInstanceState = "SoftwareInstallationPending"
)

func PossibleSAPVirtualInstanceStateValues added in v0.2.0

func PossibleSAPVirtualInstanceStateValues() []SAPVirtualInstanceState

PossibleSAPVirtualInstanceStateValues returns the possible values for the SAPVirtualInstanceState const type.

type SAPVirtualInstanceStatus added in v0.2.0

type SAPVirtualInstanceStatus string

SAPVirtualInstanceStatus - Defines the SAP Instance status.

const (
	SAPVirtualInstanceStatusOffline          SAPVirtualInstanceStatus = "Offline"
	SAPVirtualInstanceStatusPartiallyRunning SAPVirtualInstanceStatus = "PartiallyRunning"
	SAPVirtualInstanceStatusRunning          SAPVirtualInstanceStatus = "Running"
	SAPVirtualInstanceStatusStarting         SAPVirtualInstanceStatus = "Starting"
	SAPVirtualInstanceStatusStopping         SAPVirtualInstanceStatus = "Stopping"
	SAPVirtualInstanceStatusUnavailable      SAPVirtualInstanceStatus = "Unavailable"
)

func PossibleSAPVirtualInstanceStatusValues added in v0.2.0

func PossibleSAPVirtualInstanceStatusValues() []SAPVirtualInstanceStatus

PossibleSAPVirtualInstanceStatusValues returns the possible values for the SAPVirtualInstanceStatus const type.

type SAPVirtualInstancesClient added in v0.2.0

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

SAPVirtualInstancesClient contains the methods for the SAPVirtualInstances group. Don't use this type directly, use NewSAPVirtualInstancesClient() instead.

func NewSAPVirtualInstancesClient added in v0.2.0

func NewSAPVirtualInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPVirtualInstancesClient, error)

NewSAPVirtualInstancesClient creates a new instance of SAPVirtualInstancesClient 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 (*SAPVirtualInstancesClient) BeginCreate added in v0.2.0

BeginCreate - Creates an Virtual Instance for SAP. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. body - The Virtual Instance for SAP request body. options - SAPVirtualInstancesClientBeginCreateOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed.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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx,
		"test-rg",
		"X00",
		armworkloads.SAPVirtualInstance{
			Location: to.Ptr("westcentralus"),
			Tags:     map[string]*string{},
			Properties: &armworkloads.SAPVirtualInstanceProperties{
				Configuration: &armworkloads.DeploymentConfiguration{
					ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment),
					AppLocation:       to.Ptr("eastus"),
					InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{
						AppResourceGroup: to.Ptr("X00-RG"),
						DeploymentType:   to.Ptr(armworkloads.SAPDeploymentTypeThreeTier),
						ApplicationServer: &armworkloads.ApplicationServerConfiguration{
							InstanceCount: to.Ptr[int64](6),
							SubnetID:      to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"),
							VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{
								ImageReference: &armworkloads.ImageReference{
									Offer:     to.Ptr("RHEL-SAP"),
									Publisher: to.Ptr("RedHat"),
									SKU:       to.Ptr("7.4"),
									Version:   to.Ptr("7.4.2019062505"),
								},
								OSProfile: &armworkloads.OSProfile{
									AdminUsername: to.Ptr("{your-username}"),
									OSConfiguration: &armworkloads.LinuxConfiguration{
										OSType:                        to.Ptr(armworkloads.OSTypeLinux),
										DisablePasswordAuthentication: to.Ptr(true),
										SSH: &armworkloads.SSHConfiguration{
											PublicKeys: []*armworkloads.SSHPublicKey{
												{
													KeyData: to.Ptr("ssh-rsa public key"),
												}},
										},
									},
								},
								VMSize: to.Ptr("Standard_E32ds_v4"),
							},
						},
						CentralServer: &armworkloads.CentralServerConfiguration{
							InstanceCount: to.Ptr[int64](1),
							SubnetID:      to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"),
							VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{
								ImageReference: &armworkloads.ImageReference{
									Offer:     to.Ptr("RHEL-SAP"),
									Publisher: to.Ptr("RedHat"),
									SKU:       to.Ptr("7.4"),
									Version:   to.Ptr("7.4.2019062505"),
								},
								OSProfile: &armworkloads.OSProfile{
									AdminUsername: to.Ptr("{your-username}"),
									OSConfiguration: &armworkloads.LinuxConfiguration{
										OSType:                        to.Ptr(armworkloads.OSTypeLinux),
										DisablePasswordAuthentication: to.Ptr(true),
										SSH: &armworkloads.SSHConfiguration{
											PublicKeys: []*armworkloads.SSHPublicKey{
												{
													KeyData: to.Ptr("ssh-rsa public key"),
												}},
										},
									},
								},
								VMSize: to.Ptr("Standard_E16ds_v4"),
							},
						},
						DatabaseServer: &armworkloads.DatabaseConfiguration{
							DatabaseType:  to.Ptr(armworkloads.SAPDatabaseTypeHANA),
							InstanceCount: to.Ptr[int64](1),
							SubnetID:      to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"),
							VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{
								ImageReference: &armworkloads.ImageReference{
									Offer:     to.Ptr("RHEL-SAP"),
									Publisher: to.Ptr("RedHat"),
									SKU:       to.Ptr("7.4"),
									Version:   to.Ptr("7.4.2019062505"),
								},
								OSProfile: &armworkloads.OSProfile{
									AdminUsername: to.Ptr("{your-username}"),
									OSConfiguration: &armworkloads.LinuxConfiguration{
										OSType:                        to.Ptr(armworkloads.OSTypeLinux),
										DisablePasswordAuthentication: to.Ptr(true),
										SSH: &armworkloads.SSHConfiguration{
											PublicKeys: []*armworkloads.SSHPublicKey{
												{
													KeyData: to.Ptr("ssh-rsa public key"),
												}},
										},
									},
								},
								VMSize: to.Ptr("Standard_M32ts"),
							},
						},
					},
				},
				Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd),
				SapProduct:  to.Ptr(armworkloads.SAPProductTypeS4HANA),
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPVirtualInstancesClient) BeginDelete added in v0.2.0

func (client *SAPVirtualInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPVirtualInstancesClientDeleteResponse], error)

BeginDelete - Deletes an Virtual Instance for SAP. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. options - SAPVirtualInstancesClientBeginDeleteOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx,
		"test-rg",
		"X00",
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPVirtualInstancesClient) BeginStart added in v0.2.0

func (client *SAPVirtualInstancesClient) BeginStart(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginStartOptions) (*runtime.Poller[SAPVirtualInstancesClientStartResponse], error)

BeginStart - Starts the SAP System. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. options - SAPVirtualInstancesClientBeginStartOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStart method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Start.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginStart(ctx,
		"test-rg",
		"X00",
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPVirtualInstancesClient) BeginStop added in v0.2.0

func (client *SAPVirtualInstancesClient) BeginStop(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginStopOptions) (*runtime.Poller[SAPVirtualInstancesClientStopResponse], error)

BeginStop - Stops the SAP System. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. options - SAPVirtualInstancesClientBeginStopOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStop method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Stop.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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginStop(ctx,
		"test-rg",
		"X00",
		&armworkloads.SAPVirtualInstancesClientBeginStopOptions{Body: &armworkloads.StopRequest{
			HardStop: to.Ptr(false),
		},
		})
	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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPVirtualInstancesClient) Get added in v0.2.0

func (client *SAPVirtualInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientGetOptions) (SAPVirtualInstancesClientGetResponse, error)

Get - Gets an Virtual Instance for SAP. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. options - SAPVirtualInstancesClientGetOptions contains the optional parameters for the SAPVirtualInstancesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"test-rg",
		"X00",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*SAPVirtualInstancesClient) NewListByResourceGroupPager added in v0.2.0

NewListByResourceGroupPager - Gets all Virtual Instances for SAP in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. options - SAPVirtualInstancesClientListByResourceGroupOptions contains the optional parameters for the SAPVirtualInstancesClient.ListByResourceGroup method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByResourceGroupPager("test-rg",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*SAPVirtualInstancesClient) NewListBySubscriptionPager added in v0.2.0

NewListBySubscriptionPager - Gets all Virtual Instances for SAP in the subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview options - SAPVirtualInstancesClientListBySubscriptionOptions contains the optional parameters for the SAPVirtualInstancesClient.ListBySubscription method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListBySubscriptionPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*SAPVirtualInstancesClient) Update added in v0.2.0

Update - Updates an Virtual Instance for SAP. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. sapVirtualInstanceName - The name of the Virtual Instances for SAP. body - The Update Virtual Instance for SAP request body. options - SAPVirtualInstancesClientUpdateOptions contains the optional parameters for the SAPVirtualInstancesClient.Update method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Update(ctx,
		"test-rg",
		"X00",
		armworkloads.UpdateSAPVirtualInstanceRequest{
			Identity: &armworkloads.UserAssignedServiceIdentity{
				Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone),
			},
			Tags: map[string]*string{
				"key1": to.Ptr("svi1"),
			},
		},
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type SAPVirtualInstancesClientBeginCreateOptions added in v0.2.0

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

SAPVirtualInstancesClientBeginCreateOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginCreate method.

type SAPVirtualInstancesClientBeginDeleteOptions added in v0.2.0

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

SAPVirtualInstancesClientBeginDeleteOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginDelete method.

type SAPVirtualInstancesClientBeginStartOptions added in v0.2.0

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

SAPVirtualInstancesClientBeginStartOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStart method.

type SAPVirtualInstancesClientBeginStopOptions added in v0.2.0

type SAPVirtualInstancesClientBeginStopOptions struct {
	// The Virtual Instances for SAP stop request body.
	Body *StopRequest
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SAPVirtualInstancesClientBeginStopOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStop method.

type SAPVirtualInstancesClientCreateResponse added in v0.2.0

type SAPVirtualInstancesClientCreateResponse struct {
	SAPVirtualInstance
}

SAPVirtualInstancesClientCreateResponse contains the response from method SAPVirtualInstancesClient.Create.

type SAPVirtualInstancesClientDeleteResponse added in v0.2.0

type SAPVirtualInstancesClientDeleteResponse struct {
	OperationStatusResult
}

SAPVirtualInstancesClientDeleteResponse contains the response from method SAPVirtualInstancesClient.Delete.

type SAPVirtualInstancesClientGetOptions added in v0.2.0

type SAPVirtualInstancesClientGetOptions struct {
}

SAPVirtualInstancesClientGetOptions contains the optional parameters for the SAPVirtualInstancesClient.Get method.

type SAPVirtualInstancesClientGetResponse added in v0.2.0

type SAPVirtualInstancesClientGetResponse struct {
	SAPVirtualInstance
}

SAPVirtualInstancesClientGetResponse contains the response from method SAPVirtualInstancesClient.Get.

type SAPVirtualInstancesClientListByResourceGroupOptions added in v0.2.0

type SAPVirtualInstancesClientListByResourceGroupOptions struct {
}

SAPVirtualInstancesClientListByResourceGroupOptions contains the optional parameters for the SAPVirtualInstancesClient.ListByResourceGroup method.

type SAPVirtualInstancesClientListByResourceGroupResponse added in v0.2.0

type SAPVirtualInstancesClientListByResourceGroupResponse struct {
	SAPVirtualInstanceList
}

SAPVirtualInstancesClientListByResourceGroupResponse contains the response from method SAPVirtualInstancesClient.ListByResourceGroup.

type SAPVirtualInstancesClientListBySubscriptionOptions added in v0.2.0

type SAPVirtualInstancesClientListBySubscriptionOptions struct {
}

SAPVirtualInstancesClientListBySubscriptionOptions contains the optional parameters for the SAPVirtualInstancesClient.ListBySubscription method.

type SAPVirtualInstancesClientListBySubscriptionResponse added in v0.2.0

type SAPVirtualInstancesClientListBySubscriptionResponse struct {
	SAPVirtualInstanceList
}

SAPVirtualInstancesClientListBySubscriptionResponse contains the response from method SAPVirtualInstancesClient.ListBySubscription.

type SAPVirtualInstancesClientStartResponse added in v0.2.0

type SAPVirtualInstancesClientStartResponse struct {
	OperationStatusResult
}

SAPVirtualInstancesClientStartResponse contains the response from method SAPVirtualInstancesClient.Start.

type SAPVirtualInstancesClientStopResponse added in v0.2.0

type SAPVirtualInstancesClientStopResponse struct {
	OperationStatusResult
}

SAPVirtualInstancesClientStopResponse contains the response from method SAPVirtualInstancesClient.Stop.

type SAPVirtualInstancesClientUpdateOptions added in v0.2.0

type SAPVirtualInstancesClientUpdateOptions struct {
}

SAPVirtualInstancesClientUpdateOptions contains the optional parameters for the SAPVirtualInstancesClient.Update method.

type SAPVirtualInstancesClientUpdateResponse added in v0.2.0

type SAPVirtualInstancesClientUpdateResponse struct {
	SAPVirtualInstance
}

SAPVirtualInstancesClientUpdateResponse contains the response from method SAPVirtualInstancesClient.Update.

type SKU added in v0.2.0

type SKU struct {
	// REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code
	Name *string `json:"name,omitempty"`

	// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the
	// resource this may be omitted.
	Capacity *int32 `json:"capacity,omitempty"`

	// If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`

	// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
	Size *string `json:"size,omitempty"`

	// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required
	// on a PUT.
	Tier *SKUTier `json:"tier,omitempty"`
}

SKU - The resource model definition representing SKU

func (SKU) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKU.

func (*SKU) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKU.

type SKUCapability added in v0.2.0

type SKUCapability struct {
	// The capability name.
	Name *string `json:"name,omitempty"`

	// The capability value.
	Value *string `json:"value,omitempty"`
}

SKUCapability - The SKU capability definition.

func (SKUCapability) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKUCapability.

func (*SKUCapability) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapability.

type SKUCapacity added in v0.2.0

type SKUCapacity struct {
	// Default capacity value.
	Default *int32 `json:"default,omitempty"`

	// Maximum capacity value.
	Maximum *int32 `json:"maximum,omitempty"`

	// Minimum capacity value.
	Minimum *int32 `json:"minimum,omitempty"`

	// Scale type of the SKU capacity.
	ScaleType *SKUScaleType `json:"scaleType,omitempty"`
}

SKUCapacity - The SKU capacity.

func (SKUCapacity) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKUCapacity.

func (*SKUCapacity) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapacity.

type SKUCost added in v0.2.0

type SKUCost struct {
	// The extended unit.
	ExtendedUnit *string `json:"extendedUnit,omitempty"`

	// Billing meter id.
	MeterID *string `json:"meterId,omitempty"`

	// The quantity.
	Quantity *int32 `json:"quantity,omitempty"`
}

SKUCost - The SKU cost definition.

func (SKUCost) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKUCost.

func (*SKUCost) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKUCost.

type SKUDefinition added in v0.2.0

type SKUDefinition struct {
	// REQUIRED; The name of the SKU.
	Name *string `json:"name,omitempty"`

	// The SKU capabilities.
	Capabilities []*SKUCapability `json:"capabilities,omitempty"`

	// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the
	// resource this may be omitted.
	Capacity interface{} `json:"capacity,omitempty"`

	// The SKU costs.
	Costs []*SKUCost `json:"costs,omitempty"`

	// If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`

	// If the service has different kinds of hardware, for the same SKU, then that can be captured here.
	Kind *string `json:"kind,omitempty"`

	// List of locations where this SKU is available.
	LocationInfo []*SKULocationAndZones `json:"locationInfo,omitempty"`

	// List of locations where this SKU is available.
	Locations []*string `json:"locations,omitempty"`

	// Resource type the SKU applicable for.
	ResourceType *string `json:"resourceType,omitempty"`

	// The SKU restrictions.
	Restrictions []*SKURestriction `json:"restrictions,omitempty"`

	// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
	Size *string `json:"size,omitempty"`

	// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required
	// on a PUT.
	Tier *string `json:"tier,omitempty"`
}

SKUDefinition - The SKU definition.

func (SKUDefinition) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKUDefinition.

func (*SKUDefinition) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKUDefinition.

type SKULocationAndZones added in v0.2.0

type SKULocationAndZones struct {
	// The extended locations of SKU.
	ExtendedLocations []*string `json:"extendedLocations,omitempty"`

	// The location of the SKU.
	Location *string `json:"location,omitempty"`

	// Type of the extended location.
	Type *LocationType `json:"type,omitempty"`

	// The availability zone details of the SKU location.
	ZoneDetails []*SKUZoneDetail `json:"zoneDetails,omitempty"`

	// The availability zones of SKU location.
	Zones []*string `json:"zones,omitempty"`
}

SKULocationAndZones - The SKU location and zone.

func (SKULocationAndZones) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKULocationAndZones.

func (*SKULocationAndZones) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKULocationAndZones.

type SKURestriction added in v0.2.0

type SKURestriction struct {
	// The SKU restriction reason code.
	ReasonCode *SKURestrictionReasonCode `json:"reasonCode,omitempty"`

	// The restriction information.
	RestrictionInfo interface{} `json:"restrictionInfo,omitempty"`

	// The SKU restriction type.
	Type *SKURestrictionType `json:"type,omitempty"`

	// Restriction values.
	Values []*string `json:"values,omitempty"`
}

SKURestriction - The SKU restriction definition.

func (SKURestriction) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKURestriction.

func (*SKURestriction) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKURestriction.

type SKURestrictionReasonCode added in v0.2.0

type SKURestrictionReasonCode string

SKURestrictionReasonCode - The SKU restriction reason code.

const (
	SKURestrictionReasonCodeNotAvailableForSubscription SKURestrictionReasonCode = "NotAvailableForSubscription"
	SKURestrictionReasonCodeNotSpecified                SKURestrictionReasonCode = "NotSpecified"
	SKURestrictionReasonCodeQuotaID                     SKURestrictionReasonCode = "QuotaId"
)

func PossibleSKURestrictionReasonCodeValues added in v0.2.0

func PossibleSKURestrictionReasonCodeValues() []SKURestrictionReasonCode

PossibleSKURestrictionReasonCodeValues returns the possible values for the SKURestrictionReasonCode const type.

type SKURestrictionType added in v0.2.0

type SKURestrictionType string

SKURestrictionType - The SKU restriction type.

const (
	SKURestrictionTypeLocation     SKURestrictionType = "Location"
	SKURestrictionTypeNotSpecified SKURestrictionType = "NotSpecified"
	SKURestrictionTypeZone         SKURestrictionType = "Zone"
)

func PossibleSKURestrictionTypeValues added in v0.2.0

func PossibleSKURestrictionTypeValues() []SKURestrictionType

PossibleSKURestrictionTypeValues returns the possible values for the SKURestrictionType const type.

type SKUScaleType added in v0.2.0

type SKUScaleType string

SKUScaleType - Scale type of the SKU capacity.

const (
	SKUScaleTypeAutomatic SKUScaleType = "Automatic"
	SKUScaleTypeManual    SKUScaleType = "Manual"
	SKUScaleTypeNone      SKUScaleType = "None"
)

func PossibleSKUScaleTypeValues added in v0.2.0

func PossibleSKUScaleTypeValues() []SKUScaleType

PossibleSKUScaleTypeValues returns the possible values for the SKUScaleType const type.

type SKUTier added in v0.2.0

type SKUTier string

SKUTier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.

const (
	SKUTierFree     SKUTier = "Free"
	SKUTierBasic    SKUTier = "Basic"
	SKUTierStandard SKUTier = "Standard"
	SKUTierPremium  SKUTier = "Premium"
)

func PossibleSKUTierValues added in v0.2.0

func PossibleSKUTierValues() []SKUTier

PossibleSKUTierValues returns the possible values for the SKUTier const type.

type SKUZoneDetail added in v0.2.0

type SKUZoneDetail struct {
	// The capabilities.
	Capabilities []*SKUCapability `json:"capabilities,omitempty"`

	// The physical zones.
	Zones []*string `json:"zones,omitempty"`
}

SKUZoneDetail - The SKU zone details.

func (SKUZoneDetail) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKUZoneDetail.

func (*SKUZoneDetail) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKUZoneDetail.

type SKUsClient added in v0.2.0

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

SKUsClient contains the methods for the SKUs group. Don't use this type directly, use NewSKUsClient() instead.

func NewSKUsClient added in v0.2.0

func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error)

NewSKUsClient creates a new instance of SKUsClient 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 (*SKUsClient) NewListPager added in v0.2.0

func (client *SKUsClient) NewListPager(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse]

NewListPager - Lists all the available SKUs under this PR If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview options - SKUsClientListOptions contains the optional parameters for the SKUsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/Skus_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewSKUsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type SKUsClientListOptions added in v0.2.0

type SKUsClientListOptions struct {
}

SKUsClientListOptions contains the optional parameters for the SKUsClient.List method.

type SKUsClientListResponse added in v0.2.0

type SKUsClientListResponse struct {
	SKUsListResult
}

SKUsClientListResponse contains the response from method SKUsClient.List.

type SKUsListResult added in v0.2.0

type SKUsListResult struct {
	// READ-ONLY; URL to get the next set of SKU list results (if there are any).
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of SKUs supported by the resource provider
	Value []*SKUDefinition `json:"value,omitempty" azure:"ro"`
}

SKUsListResult - A list of SKUs supported by an Azure Resource Provider.

func (SKUsListResult) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SKUsListResult.

func (*SKUsListResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SKUsListResult.

type SSHConfiguration added in v0.2.0

type SSHConfiguration struct {
	// The list of SSH public keys used to authenticate with linux based VMs.
	PublicKeys []*SSHPublicKey `json:"publicKeys,omitempty"`
}

SSHConfiguration - SSH configuration for Linux based VMs running on Azure

func (SSHConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SSHConfiguration.

func (*SSHConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SSHConfiguration.

type SSHKeyPair added in v0.2.0

type SSHKeyPair struct {
	// SSH private key.
	PrivateKey *string `json:"privateKey,omitempty"`

	// SSH public key
	PublicKey *string `json:"publicKey,omitempty"`
}

SSHKeyPair - The SSH Key-pair used to authenticate with the VM. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure [https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed].

func (SSHKeyPair) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SSHKeyPair.

func (*SSHKeyPair) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SSHKeyPair.

type SSHPublicKey added in v0.2.0

type SSHPublicKey struct {
	// SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa
	// format.
	// For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure [https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed].
	KeyData *string `json:"keyData,omitempty"`
}

SSHPublicKey - Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.

func (SSHPublicKey) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SSHPublicKey.

func (*SSHPublicKey) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKey.

type SapNetWeaverProviderInstanceProperties

type SapNetWeaverProviderInstanceProperties struct {
	// REQUIRED; The provider type. For example, the value can be SapHana.
	ProviderType *string `json:"providerType,omitempty"`

	// Gets or sets the SAP Client ID.
	SapClientID *string `json:"sapClientId,omitempty"`

	// Gets or sets the list of HostFile Entries
	SapHostFileEntries []*string `json:"sapHostFileEntries,omitempty"`

	// Gets or sets the target virtual machine IP Address/FQDN.
	SapHostname *string `json:"sapHostname,omitempty"`

	// Gets or sets the instance number of SAP NetWeaver.
	SapInstanceNr *string `json:"sapInstanceNr,omitempty"`

	// Sets the SAP password.
	SapPassword *string `json:"sapPassword,omitempty"`

	// Gets or sets the key vault URI to secret with the SAP password.
	SapPasswordURI *string `json:"sapPasswordUri,omitempty"`

	// Gets or sets the SAP HTTP port number.
	SapPortNumber *string `json:"sapPortNumber,omitempty"`

	// Gets or sets the blob URI to SSL certificate for the SAP system.
	SapSSLCertificateURI *string `json:"sapSslCertificateUri,omitempty"`

	// Gets or sets the SAP System Identifier
	SapSid *string `json:"sapSid,omitempty"`

	// Gets or sets the SAP user name.
	SapUsername *string `json:"sapUsername,omitempty"`
}

SapNetWeaverProviderInstanceProperties - Gets or sets the provider properties.

func (*SapNetWeaverProviderInstanceProperties) GetProviderSpecificProperties

func (s *SapNetWeaverProviderInstanceProperties) GetProviderSpecificProperties() *ProviderSpecificProperties

GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type SapNetWeaverProviderInstanceProperties.

func (SapNetWeaverProviderInstanceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SapNetWeaverProviderInstanceProperties.

func (*SapNetWeaverProviderInstanceProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type SapNetWeaverProviderInstanceProperties.

type SapVirtualInstanceProvisioningState added in v0.2.0

type SapVirtualInstanceProvisioningState string

SapVirtualInstanceProvisioningState - Defines the provisioning states.

const (
	SapVirtualInstanceProvisioningStateCreating  SapVirtualInstanceProvisioningState = "Creating"
	SapVirtualInstanceProvisioningStateDeleting  SapVirtualInstanceProvisioningState = "Deleting"
	SapVirtualInstanceProvisioningStateFailed    SapVirtualInstanceProvisioningState = "Failed"
	SapVirtualInstanceProvisioningStateSucceeded SapVirtualInstanceProvisioningState = "Succeeded"
	SapVirtualInstanceProvisioningStateUpdating  SapVirtualInstanceProvisioningState = "Updating"
)

func PossibleSapVirtualInstanceProvisioningStateValues added in v0.2.0

func PossibleSapVirtualInstanceProvisioningStateValues() []SapVirtualInstanceProvisioningState

PossibleSapVirtualInstanceProvisioningStateValues returns the possible values for the SapVirtualInstanceProvisioningState const type.

type SearchProfile added in v0.2.0

type SearchProfile struct {
	// REQUIRED; VM SKU for node(s)
	NodeSKU *string `json:"nodeSku,omitempty"`

	// REQUIRED; OS disk details
	OSDisk *DiskInfo `json:"osDisk,omitempty"`

	// REQUIRED; OS image used for creating the nodes
	OSImage *OsImageProfile `json:"osImage,omitempty"`

	// REQUIRED; Search type
	SearchType *SearchType `json:"searchType,omitempty"`

	// Data disks details. This property is not in use right now
	DataDisks []*DiskInfo `json:"dataDisks,omitempty"`

	// VM or VMSS name
	Name *string `json:"name,omitempty"`

	// READ-ONLY; VM/VMSS resource ARM Ids
	NodeResourceIDs []*string `json:"nodeResourceIds,omitempty" azure:"ro"`
}

SearchProfile - Search profile

func (SearchProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SearchProfile.

func (*SearchProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SearchProfile.

type SearchType added in v0.2.0

type SearchType string

SearchType - Search type

const (
	SearchTypeElastic SearchType = "Elastic"
)

func PossibleSearchTypeValues added in v0.2.0

func PossibleSearchTypeValues() []SearchType

PossibleSearchTypeValues returns the possible values for the SearchType const type.

type ServiceInitiatedSoftwareConfiguration added in v0.2.0

type ServiceInitiatedSoftwareConfiguration struct {
	// REQUIRED; The URL to the SAP Build of Materials(BOM) file.
	BomURL *string `json:"bomUrl,omitempty"`

	// REQUIRED; The SSH private key.
	SSHPrivateKey *string `json:"sshPrivateKey,omitempty"`

	// REQUIRED; The SAP bits storage account id.
	SapBitsStorageAccountID *string `json:"sapBitsStorageAccountId,omitempty"`

	// REQUIRED; The FQDN to set for the SAP system during install.
	SapFqdn *string `json:"sapFqdn,omitempty"`

	// REQUIRED; The SAP software installation Type.
	SoftwareInstallationType *SAPSoftwareInstallationType `json:"softwareInstallationType,omitempty"`

	// REQUIRED; The software version to install.
	SoftwareVersion *string `json:"softwareVersion,omitempty"`

	// Gets or sets the HA software configuration.
	HighAvailabilitySoftwareConfiguration *HighAvailabilitySoftwareConfiguration `json:"highAvailabilitySoftwareConfiguration,omitempty"`
}

ServiceInitiatedSoftwareConfiguration - The SAP Software configuration Input when the software is to be installed by service.

func (*ServiceInitiatedSoftwareConfiguration) GetSoftwareConfiguration added in v0.2.0

func (s *ServiceInitiatedSoftwareConfiguration) GetSoftwareConfiguration() *SoftwareConfiguration

GetSoftwareConfiguration implements the SoftwareConfigurationClassification interface for type ServiceInitiatedSoftwareConfiguration.

func (ServiceInitiatedSoftwareConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceInitiatedSoftwareConfiguration.

func (*ServiceInitiatedSoftwareConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceInitiatedSoftwareConfiguration.

type SingleServerConfiguration added in v0.2.0

type SingleServerConfiguration struct {
	// REQUIRED; The application resource group where SAP system resources will be deployed.
	AppResourceGroup *string `json:"appResourceGroup,omitempty"`

	// REQUIRED; The deployment Type.
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`

	// REQUIRED; The subnet id.
	SubnetID *string `json:"subnetId,omitempty"`

	// REQUIRED; Gets or sets the virtual machine configuration.
	VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"`

	// The database type.
	DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"`

	// Network configuration for the server
	NetworkConfiguration *NetworkConfiguration `json:"networkConfiguration,omitempty"`
}

SingleServerConfiguration - Gets or sets the single server configuration.

func (*SingleServerConfiguration) GetInfrastructureConfiguration added in v0.2.0

func (s *SingleServerConfiguration) GetInfrastructureConfiguration() *InfrastructureConfiguration

GetInfrastructureConfiguration implements the InfrastructureConfigurationClassification interface for type SingleServerConfiguration.

func (SingleServerConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SingleServerConfiguration.

func (*SingleServerConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SingleServerConfiguration.

type SingleServerRecommendationResult added in v0.2.0

type SingleServerRecommendationResult struct {
	// REQUIRED; The deployment Type.
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`

	// The recommended VM SKU for single server.
	VMSKU *string `json:"vmSku,omitempty"`
}

SingleServerRecommendationResult - The recommended configuration for a single server SAP system.

func (*SingleServerRecommendationResult) GetSAPSizingRecommendationResult added in v0.2.0

func (s *SingleServerRecommendationResult) GetSAPSizingRecommendationResult() *SAPSizingRecommendationResult

GetSAPSizingRecommendationResult implements the SAPSizingRecommendationResultClassification interface for type SingleServerRecommendationResult.

func (SingleServerRecommendationResult) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SingleServerRecommendationResult.

func (*SingleServerRecommendationResult) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SingleServerRecommendationResult.

type SiteProfile added in v0.2.0

type SiteProfile struct {
	// Domain name for the application site URL
	DomainName *string `json:"domainName,omitempty"`
}

SiteProfile - Workload website profile

func (SiteProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SiteProfile.

func (*SiteProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SiteProfile.

type SoftwareConfiguration added in v0.2.0

type SoftwareConfiguration struct {
	// REQUIRED; The SAP software installation Type.
	SoftwareInstallationType *SAPSoftwareInstallationType `json:"softwareInstallationType,omitempty"`
}

SoftwareConfiguration - The SAP Software configuration Input.

func (*SoftwareConfiguration) GetSoftwareConfiguration added in v0.2.0

func (s *SoftwareConfiguration) GetSoftwareConfiguration() *SoftwareConfiguration

GetSoftwareConfiguration implements the SoftwareConfigurationClassification interface for type SoftwareConfiguration.

func (SoftwareConfiguration) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SoftwareConfiguration.

func (*SoftwareConfiguration) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareConfiguration.

type SoftwareConfigurationClassification added in v0.2.0

type SoftwareConfigurationClassification interface {
	// GetSoftwareConfiguration returns the SoftwareConfiguration content of the underlying type.
	GetSoftwareConfiguration() *SoftwareConfiguration
}

SoftwareConfigurationClassification provides polymorphic access to related types. Call the interface's GetSoftwareConfiguration() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *SAPInstallWithoutOSConfigSoftwareConfiguration, *ServiceInitiatedSoftwareConfiguration, *SoftwareConfiguration

type StopRequest added in v0.2.0

type StopRequest struct {
	// A boolean to specify if the SAP system should be hard-stopped.
	HardStop *bool `json:"hardStop,omitempty"`
}

StopRequest - Stop SAP Request.

func (StopRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type StopRequest.

func (*StopRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type StopRequest.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// The identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`

	// The type of identity that created the resource.
	CreatedByType *CreatedByType `json:"createdByType,omitempty"`

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`

	// The identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"`
}

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 Tags

type Tags struct {
	// Tags field of the resource.
	Tags map[string]*string `json:"tags,omitempty"`
}

Tags field of the resource.

func (Tags) MarshalJSON

func (t Tags) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Tags.

func (*Tags) UnmarshalJSON added in v0.2.0

func (t *Tags) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Tags.

type ThreeTierConfiguration added in v0.2.0

type ThreeTierConfiguration struct {
	// REQUIRED; The application resource group where SAP system resources will be deployed.
	AppResourceGroup *string `json:"appResourceGroup,omitempty"`

	// REQUIRED; The application server configuration.
	ApplicationServer *ApplicationServerConfiguration `json:"applicationServer,omitempty"`

	// REQUIRED; The central server configuration.
	CentralServer *CentralServerConfiguration `json:"centralServer,omitempty"`

	// REQUIRED; The database configuration.
	DatabaseServer *DatabaseConfiguration `json:"databaseServer,omitempty"`

	// REQUIRED; The deployment Type.
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`

	// The high availability configuration.
	HighAvailabilityConfig *HighAvailabilityConfiguration `json:"highAvailabilityConfig,omitempty"`

	// Network configuration common to all servers
	NetworkConfiguration *NetworkConfiguration `json:"networkConfiguration,omitempty"`
}

ThreeTierConfiguration - Gets or sets the three tier SAP configuration.

func (*ThreeTierConfiguration) GetInfrastructureConfiguration added in v0.2.0

func (t *ThreeTierConfiguration) GetInfrastructureConfiguration() *InfrastructureConfiguration

GetInfrastructureConfiguration implements the InfrastructureConfigurationClassification interface for type ThreeTierConfiguration.

func (ThreeTierConfiguration) MarshalJSON added in v0.2.0

func (t ThreeTierConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ThreeTierConfiguration.

func (*ThreeTierConfiguration) UnmarshalJSON added in v0.2.0

func (t *ThreeTierConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ThreeTierConfiguration.

type ThreeTierRecommendationResult added in v0.2.0

type ThreeTierRecommendationResult struct {
	// REQUIRED; The deployment Type.
	DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"`

	// The application server instance count.
	ApplicationServerInstanceCount *int64 `json:"applicationServerInstanceCount,omitempty"`

	// The application server VM SKU.
	ApplicationServerVMSKU *string `json:"applicationServerVmSku,omitempty"`

	// The central server instance count.
	CentralServerInstanceCount *int64 `json:"centralServerInstanceCount,omitempty"`

	// The central server VM SKU.
	CentralServerVMSKU *string `json:"centralServerVmSku,omitempty"`

	// The database server instance count.
	DatabaseInstanceCount *int64 `json:"databaseInstanceCount,omitempty"`

	// The database VM SKU.
	DbVMSKU *string `json:"dbVmSku,omitempty"`
}

ThreeTierRecommendationResult - The recommended configuration for a three tier SAP system.

func (*ThreeTierRecommendationResult) GetSAPSizingRecommendationResult added in v0.2.0

func (t *ThreeTierRecommendationResult) GetSAPSizingRecommendationResult() *SAPSizingRecommendationResult

GetSAPSizingRecommendationResult implements the SAPSizingRecommendationResultClassification interface for type ThreeTierRecommendationResult.

func (ThreeTierRecommendationResult) MarshalJSON added in v0.2.0

func (t ThreeTierRecommendationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ThreeTierRecommendationResult.

func (*ThreeTierRecommendationResult) UnmarshalJSON added in v0.2.0

func (t *ThreeTierRecommendationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ThreeTierRecommendationResult.

type TrackedResource

type TrackedResource struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`

	// Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON

func (t TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TrackedResource.

func (*TrackedResource) UnmarshalJSON added in v0.2.0

func (t *TrackedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.

type UpdateMonitorRequest added in v0.2.0

type UpdateMonitorRequest struct {
	// Managed service identity (user assigned identities)
	Identity *UserAssignedServiceIdentity `json:"identity,omitempty"`

	// Gets or sets the Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`
}

UpdateMonitorRequest - Defines the request body for updating SAP monitor resource.

func (UpdateMonitorRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UpdateMonitorRequest.

func (*UpdateMonitorRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateMonitorRequest.

type UpdateSAPApplicationInstanceRequest added in v0.2.0

type UpdateSAPApplicationInstanceRequest struct {
	// Gets or sets the Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`
}

UpdateSAPApplicationInstanceRequest - Defines the request body for updating SAP Application Instance.

func (UpdateSAPApplicationInstanceRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UpdateSAPApplicationInstanceRequest.

func (*UpdateSAPApplicationInstanceRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateSAPApplicationInstanceRequest.

type UpdateSAPCentralInstanceRequest added in v0.2.0

type UpdateSAPCentralInstanceRequest struct {
	// Gets or sets the Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`
}

UpdateSAPCentralInstanceRequest - Defines the request body for updating SAP Central Instance.

func (UpdateSAPCentralInstanceRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UpdateSAPCentralInstanceRequest.

func (*UpdateSAPCentralInstanceRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateSAPCentralInstanceRequest.

type UpdateSAPDatabaseInstanceRequest added in v0.2.0

type UpdateSAPDatabaseInstanceRequest struct {
	// Gets or sets the Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`
}

UpdateSAPDatabaseInstanceRequest - Defines the request body for updating SAP Database Instance.

func (UpdateSAPDatabaseInstanceRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UpdateSAPDatabaseInstanceRequest.

func (*UpdateSAPDatabaseInstanceRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateSAPDatabaseInstanceRequest.

type UpdateSAPVirtualInstanceRequest added in v0.2.0

type UpdateSAPVirtualInstanceRequest struct {
	// Managed service identity (user assigned identities)
	Identity *UserAssignedServiceIdentity `json:"identity,omitempty"`

	// Gets or sets the Resource tags.
	Tags map[string]*string `json:"tags,omitempty"`
}

UpdateSAPVirtualInstanceRequest - Defines the request body for updating Virtual Instance for SAP.

func (UpdateSAPVirtualInstanceRequest) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UpdateSAPVirtualInstanceRequest.

func (*UpdateSAPVirtualInstanceRequest) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateSAPVirtualInstanceRequest.

type UserAssignedIdentity added in v0.2.0

type UserAssignedIdentity struct {
	// READ-ONLY; The client ID of the assigned identity.
	ClientID *string `json:"clientId,omitempty" azure:"ro"`

	// READ-ONLY; The principal ID of the assigned identity.
	PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
}

UserAssignedIdentity - User assigned identity properties

func (UserAssignedIdentity) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.

func (*UserAssignedIdentity) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.

type UserAssignedServiceIdentity added in v0.2.0

type UserAssignedServiceIdentity struct {
	// REQUIRED; Type of manage identity
	Type *ManagedServiceIdentityType `json:"type,omitempty"`

	// User assigned identities dictionary
	UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"`
}

UserAssignedServiceIdentity - Managed service identity (user assigned identities)

func (UserAssignedServiceIdentity) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UserAssignedServiceIdentity.

func (*UserAssignedServiceIdentity) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedServiceIdentity.

type UserProfile added in v0.2.0

type UserProfile struct {
	// REQUIRED; SSH public key data
	SSHPublicKey *string `json:"sshPublicKey,omitempty"`

	// REQUIRED; User name
	UserName *string `json:"userName,omitempty"`
}

UserProfile - User profile to configure on a compute resources such as VM, VMSS

func (UserProfile) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type UserProfile.

func (*UserProfile) UnmarshalJSON added in v0.2.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type UserProfile.

type VirtualMachineConfiguration added in v0.2.0

type VirtualMachineConfiguration struct {
	// REQUIRED; The image reference.
	ImageReference *ImageReference `json:"imageReference,omitempty"`

	// REQUIRED; The OS profile.
	OSProfile *OSProfile `json:"osProfile,omitempty"`

	// REQUIRED; The virtual machine size.
	VMSize *string `json:"vmSize,omitempty"`
}

VirtualMachineConfiguration - Defines the virtual machine configuration.

func (VirtualMachineConfiguration) MarshalJSON added in v0.2.0

func (v VirtualMachineConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VirtualMachineConfiguration.

func (*VirtualMachineConfiguration) UnmarshalJSON added in v0.2.0

func (v *VirtualMachineConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineConfiguration.

type VmssNodesProfile added in v0.2.0

type VmssNodesProfile struct {
	// REQUIRED; VM SKU for node(s)
	NodeSKU *string `json:"nodeSku,omitempty"`

	// REQUIRED; OS disk details
	OSDisk *DiskInfo `json:"osDisk,omitempty"`

	// REQUIRED; OS image used for creating the nodes
	OSImage *OsImageProfile `json:"osImage,omitempty"`

	// Maximum number of nodes for autoscale
	AutoScaleMaxCount *int32 `json:"autoScaleMaxCount,omitempty"`

	// Minimum number of nodes for autoscale
	AutoScaleMinCount *int32 `json:"autoScaleMinCount,omitempty"`

	// Data disks details. This property is not in use right now
	DataDisks []*DiskInfo `json:"dataDisks,omitempty"`

	// VM or VMSS name
	Name *string `json:"name,omitempty"`

	// READ-ONLY; VM/VMSS resource ARM Ids
	NodeResourceIDs []*string `json:"nodeResourceIds,omitempty" azure:"ro"`
}

VmssNodesProfile - VMSS profile

func (VmssNodesProfile) MarshalJSON added in v0.2.0

func (v VmssNodesProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmssNodesProfile.

func (*VmssNodesProfile) UnmarshalJSON added in v0.2.0

func (v *VmssNodesProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmssNodesProfile.

type WindowsConfiguration added in v0.2.0

type WindowsConfiguration struct {
	// REQUIRED; The OS Type
	OSType *OSType `json:"osType,omitempty"`
}

WindowsConfiguration - Specifies Windows operating system settings on the virtual machine.

func (*WindowsConfiguration) GetOSConfiguration added in v0.2.0

func (w *WindowsConfiguration) GetOSConfiguration() *OSConfiguration

GetOSConfiguration implements the OSConfigurationClassification interface for type WindowsConfiguration.

func (WindowsConfiguration) MarshalJSON added in v0.2.0

func (w WindowsConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WindowsConfiguration.

func (*WindowsConfiguration) UnmarshalJSON added in v0.2.0

func (w *WindowsConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WindowsConfiguration.

type WordpressInstanceResource added in v0.2.0

type WordpressInstanceResource struct {
	// Resource properties
	Properties *WordpressInstanceResourceProperties `json:"properties,omitempty"`

	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

WordpressInstanceResource - WordPress instance resource

func (WordpressInstanceResource) MarshalJSON added in v0.2.0

func (w WordpressInstanceResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WordpressInstanceResource.

func (*WordpressInstanceResource) UnmarshalJSON added in v0.2.0

func (w *WordpressInstanceResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WordpressInstanceResource.

type WordpressInstanceResourceList added in v0.2.0

type WordpressInstanceResourceList struct {
	// Link to next page of resources
	NextLink *string `json:"nextLink,omitempty"`

	// List of resources in current page
	Value []*WordpressInstanceResource `json:"value,omitempty"`
}

WordpressInstanceResourceList - WordPress instance resource list

func (WordpressInstanceResourceList) MarshalJSON added in v0.2.0

func (w WordpressInstanceResourceList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WordpressInstanceResourceList.

func (*WordpressInstanceResourceList) UnmarshalJSON added in v0.2.0

func (w *WordpressInstanceResourceList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WordpressInstanceResourceList.

type WordpressInstanceResourceProperties added in v0.2.0

type WordpressInstanceResourceProperties struct {
	// REQUIRED; Application version
	Version *WordpressVersions `json:"version,omitempty"`

	// Database name used by the application
	DatabaseName *string `json:"databaseName,omitempty"`

	// User name used by the application to connect to database
	DatabaseUser *string `json:"databaseUser,omitempty"`

	// READ-ONLY; WordPress instance provisioning state
	ProvisioningState *ApplicationProvisioningState `json:"provisioningState,omitempty" azure:"ro"`

	// READ-ONLY; Site Url to access the WordPress application
	SiteURL *string `json:"siteUrl,omitempty" azure:"ro"`
}

WordpressInstanceResourceProperties - WordPress instance properties

func (WordpressInstanceResourceProperties) MarshalJSON added in v0.2.0

func (w WordpressInstanceResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WordpressInstanceResourceProperties.

func (*WordpressInstanceResourceProperties) UnmarshalJSON added in v0.2.0

func (w *WordpressInstanceResourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WordpressInstanceResourceProperties.

type WordpressInstancesClient added in v0.2.0

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

WordpressInstancesClient contains the methods for the WordpressInstances group. Don't use this type directly, use NewWordpressInstancesClient() instead.

func NewWordpressInstancesClient added in v0.2.0

func NewWordpressInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WordpressInstancesClient, error)

NewWordpressInstancesClient creates a new instance of WordpressInstancesClient 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 (*WordpressInstancesClient) BeginCreateOrUpdate added in v0.2.0

func (client *WordpressInstancesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, phpWorkloadName string, wordpressInstanceResource WordpressInstanceResource, options *WordpressInstancesClientBeginCreateOrUpdateOptions) (*runtime.Poller[WordpressInstancesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create or updated WordPress instance resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name wordpressInstanceResource - Resource create or update request payload options - WordpressInstancesClientBeginCreateOrUpdateOptions contains the optional parameters for the WordpressInstancesClient.BeginCreateOrUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_CreateOrUpdate.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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreateOrUpdate(ctx,
		"test-rg",
		"wp39",
		armworkloads.WordpressInstanceResource{
			Properties: &armworkloads.WordpressInstanceResourceProperties{
				DatabaseName: to.Ptr("wpdb"),
				DatabaseUser: to.Ptr("wpuser"),
				Version:      to.Ptr(armworkloads.WordpressVersionsFive42),
			},
		},
		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)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*WordpressInstancesClient) Delete added in v0.2.0

Delete - Delete WordPress instance resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name options - WordpressInstancesClientDeleteOptions contains the optional parameters for the WordpressInstancesClient.Delete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = client.Delete(ctx,
		"test-rg",
		"wp39",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*WordpressInstancesClient) Get added in v0.2.0

Get - Gets the WordPress instance resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name options - WordpressInstancesClientGetOptions contains the optional parameters for the WordpressInstancesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx,
		"test-rg",
		"wp39",
		nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*WordpressInstancesClient) NewListPager added in v0.2.0

func (client *WordpressInstancesClient) NewListPager(resourceGroupName string, phpWorkloadName string, options *WordpressInstancesClientListOptions) *runtime.Pager[WordpressInstancesClientListResponse]

NewListPager - Lists WordPress instance resources under a phpWorkload resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-12-01-preview resourceGroupName - The name of the resource group. The name is case insensitive. phpWorkloadName - Php workload name options - WordpressInstancesClientListOptions contains the optional parameters for the WordpressInstancesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_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/workloads/armworkloads"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager("test-rg",
		"wp39",
		nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type WordpressInstancesClientBeginCreateOrUpdateOptions added in v0.2.0

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

WordpressInstancesClientBeginCreateOrUpdateOptions contains the optional parameters for the WordpressInstancesClient.BeginCreateOrUpdate method.

type WordpressInstancesClientCreateOrUpdateResponse added in v0.2.0

type WordpressInstancesClientCreateOrUpdateResponse struct {
	WordpressInstanceResource
}

WordpressInstancesClientCreateOrUpdateResponse contains the response from method WordpressInstancesClient.CreateOrUpdate.

type WordpressInstancesClientDeleteOptions added in v0.2.0

type WordpressInstancesClientDeleteOptions struct {
}

WordpressInstancesClientDeleteOptions contains the optional parameters for the WordpressInstancesClient.Delete method.

type WordpressInstancesClientDeleteResponse added in v0.2.0

type WordpressInstancesClientDeleteResponse struct {
}

WordpressInstancesClientDeleteResponse contains the response from method WordpressInstancesClient.Delete.

type WordpressInstancesClientGetOptions added in v0.2.0

type WordpressInstancesClientGetOptions struct {
}

WordpressInstancesClientGetOptions contains the optional parameters for the WordpressInstancesClient.Get method.

type WordpressInstancesClientGetResponse added in v0.2.0

type WordpressInstancesClientGetResponse struct {
	WordpressInstanceResource
}

WordpressInstancesClientGetResponse contains the response from method WordpressInstancesClient.Get.

type WordpressInstancesClientListOptions added in v0.2.0

type WordpressInstancesClientListOptions struct {
}

WordpressInstancesClientListOptions contains the optional parameters for the WordpressInstancesClient.List method.

type WordpressInstancesClientListResponse added in v0.2.0

type WordpressInstancesClientListResponse struct {
	WordpressInstanceResourceList
}

WordpressInstancesClientListResponse contains the response from method WordpressInstancesClient.List.

type WordpressVersions added in v0.2.0

type WordpressVersions string

WordpressVersions - Application version

const (
	WordpressVersionsFive4  WordpressVersions = "5.4"
	WordpressVersionsFive41 WordpressVersions = "5.4.1"
	WordpressVersionsFive42 WordpressVersions = "5.4.2"
	WordpressVersionsFive43 WordpressVersions = "5.4.3"
)

func PossibleWordpressVersionsValues added in v0.2.0

func PossibleWordpressVersionsValues() []WordpressVersions

PossibleWordpressVersionsValues returns the possible values for the WordpressVersions const type.

type WorkloadKind added in v0.2.0

type WorkloadKind string

WorkloadKind - Indicates which kind of php workload this resource represent e.g WordPress

const (
	WorkloadKindWordPress WorkloadKind = "WordPress"
)

func PossibleWorkloadKindValues added in v0.2.0

func PossibleWorkloadKindValues() []WorkloadKind

PossibleWorkloadKindValues returns the possible values for the WorkloadKind const type.

type WorkloadMonitorActionType

type WorkloadMonitorActionType string

WorkloadMonitorActionType - Defines the action type of workload operation.

const (
	WorkloadMonitorActionTypeInternal     WorkloadMonitorActionType = "Internal"
	WorkloadMonitorActionTypeNotSpecified WorkloadMonitorActionType = "NotSpecified"
)

func PossibleWorkloadMonitorActionTypeValues

func PossibleWorkloadMonitorActionTypeValues() []WorkloadMonitorActionType

PossibleWorkloadMonitorActionTypeValues returns the possible values for the WorkloadMonitorActionType const type.

type WorkloadMonitorProvisioningState

type WorkloadMonitorProvisioningState string

WorkloadMonitorProvisioningState - State of provisioning of the SAP monitor.

const (
	WorkloadMonitorProvisioningStateAccepted  WorkloadMonitorProvisioningState = "Accepted"
	WorkloadMonitorProvisioningStateCreating  WorkloadMonitorProvisioningState = "Creating"
	WorkloadMonitorProvisioningStateDeleting  WorkloadMonitorProvisioningState = "Deleting"
	WorkloadMonitorProvisioningStateFailed    WorkloadMonitorProvisioningState = "Failed"
	WorkloadMonitorProvisioningStateMigrating WorkloadMonitorProvisioningState = "Migrating"
	WorkloadMonitorProvisioningStateSucceeded WorkloadMonitorProvisioningState = "Succeeded"
	WorkloadMonitorProvisioningStateUpdating  WorkloadMonitorProvisioningState = "Updating"
)

func PossibleWorkloadMonitorProvisioningStateValues

func PossibleWorkloadMonitorProvisioningStateValues() []WorkloadMonitorProvisioningState

PossibleWorkloadMonitorProvisioningStateValues returns the possible values for the WorkloadMonitorProvisioningState const type.

Jump to

Keyboard shortcuts

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