armedgeorder

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 14 Imported by: 1

README

Azure Edge Order Module for Go

PkgGoDev

The armedgeorder module provides operations for working with Azure Edge Order.

Source code

Getting started

Prerequisites

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

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Edge Order module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder

Authorization

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

cred, err := azidentity.NewDefaultAzureCredential(nil)

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

Client Factory

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

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

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

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

Clients

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

client := clientFactory.NewManagementClient()

Fakes

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

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

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Edge Order 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 ActionStatusEnum

type ActionStatusEnum string

ActionStatusEnum - Describes whether the order item is deletable or not.

const (
	// ActionStatusEnumAllowed - Allowed flag.
	ActionStatusEnumAllowed ActionStatusEnum = "Allowed"
	// ActionStatusEnumNotAllowed - Not Allowed flag.
	ActionStatusEnumNotAllowed ActionStatusEnum = "NotAllowed"
)

func PossibleActionStatusEnumValues

func PossibleActionStatusEnumValues() []ActionStatusEnum

PossibleActionStatusEnumValues returns the possible values for the ActionStatusEnum const type.

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 AddressDetails

type AddressDetails struct {
	// REQUIRED; Customer address and contact details. It should be address resource
	ForwardAddress *AddressProperties

	// READ-ONLY; Return shipping address
	ReturnAddress *AddressProperties
}

AddressDetails - Address details for an order item.

func (AddressDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AddressDetails.

func (*AddressDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AddressDetails.

type AddressProperties

type AddressProperties struct {
	// REQUIRED; Contact details for the address
	ContactDetails *ContactDetails

	// Shipping details for the address
	ShippingAddress *ShippingAddress

	// READ-ONLY; Status of address validation
	AddressValidationStatus *AddressValidationStatus
}

AddressProperties - Address Properties

func (AddressProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AddressProperties.

func (*AddressProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AddressProperties.

type AddressResource

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

	// REQUIRED; Properties of an address.
	Properties *AddressProperties

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

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

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

	// READ-ONLY; Represents resource creation and update time
	SystemData *SystemData

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

AddressResource - Address Resource.

func (AddressResource) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AddressResource.

func (*AddressResource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AddressResource.

type AddressResourceList

type AddressResourceList struct {
	// Link for the next set of job resources.
	NextLink *string

	// READ-ONLY; List of address resources.
	Value []*AddressResource
}

AddressResourceList - Address Resource Collection

func (AddressResourceList) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AddressResourceList.

func (*AddressResourceList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AddressResourceList.

type AddressType

type AddressType string

AddressType - Type of address.

const (
	// AddressTypeCommercial - Commercial Address.
	AddressTypeCommercial AddressType = "Commercial"
	// AddressTypeNone - Address type not known.
	AddressTypeNone AddressType = "None"
	// AddressTypeResidential - Residential Address.
	AddressTypeResidential AddressType = "Residential"
)

func PossibleAddressTypeValues

func PossibleAddressTypeValues() []AddressType

PossibleAddressTypeValues returns the possible values for the AddressType const type.

type AddressUpdateParameter

type AddressUpdateParameter struct {
	// Properties of a address to be updated.
	Properties *AddressUpdateProperties

	// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across
	// resource groups).
	Tags map[string]*string
}

AddressUpdateParameter - The Address update parameters

func (AddressUpdateParameter) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AddressUpdateParameter.

func (*AddressUpdateParameter) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AddressUpdateParameter.

type AddressUpdateProperties

type AddressUpdateProperties struct {
	// Contact details for the address
	ContactDetails *ContactDetails

	// Shipping details for the address
	ShippingAddress *ShippingAddress
}

AddressUpdateProperties - Address Properties

func (AddressUpdateProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AddressUpdateProperties.

func (*AddressUpdateProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AddressUpdateProperties.

type AddressValidationStatus

type AddressValidationStatus string

AddressValidationStatus - Status of address validation

const (
	// AddressValidationStatusAmbiguous - Address provided is ambiguous, please choose one of the alternate addresses returned.
	AddressValidationStatusAmbiguous AddressValidationStatus = "Ambiguous"
	// AddressValidationStatusInvalid - Address provided is invalid or not supported.
	AddressValidationStatusInvalid AddressValidationStatus = "Invalid"
	// AddressValidationStatusValid - Address provided is valid.
	AddressValidationStatusValid AddressValidationStatus = "Valid"
)

func PossibleAddressValidationStatusValues

func PossibleAddressValidationStatusValues() []AddressValidationStatus

PossibleAddressValidationStatusValues returns the possible values for the AddressValidationStatus const type.

type AvailabilityInformation

type AvailabilityInformation struct {
	// READ-ONLY; Current availability stage of the product. Availability stage
	AvailabilityStage *AvailabilityStage

	// READ-ONLY; Reason why the product is disabled.
	DisabledReason *DisabledReason

	// READ-ONLY; Message for why the product is disabled.
	DisabledReasonMessage *string
}

AvailabilityInformation - Availability information of a product system.

func (AvailabilityInformation) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AvailabilityInformation.

func (*AvailabilityInformation) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityInformation.

type AvailabilityStage

type AvailabilityStage string

AvailabilityStage - Current availability stage of the product. Availability stage

const (
	// AvailabilityStageAvailable - Product is available.
	AvailabilityStageAvailable AvailabilityStage = "Available"
	// AvailabilityStageComingSoon - Product is coming soon.
	AvailabilityStageComingSoon AvailabilityStage = "ComingSoon"
	// AvailabilityStageDeprecated - Product is deprecated.
	AvailabilityStageDeprecated AvailabilityStage = "Deprecated"
	// AvailabilityStagePreview - Product is in preview.
	AvailabilityStagePreview AvailabilityStage = "Preview"
	// AvailabilityStageSignup - Product is available only on signup.
	AvailabilityStageSignup AvailabilityStage = "Signup"
	// AvailabilityStageUnavailable - Product is not available.
	AvailabilityStageUnavailable AvailabilityStage = "Unavailable"
)

func PossibleAvailabilityStageValues

func PossibleAvailabilityStageValues() []AvailabilityStage

PossibleAvailabilityStageValues returns the possible values for the AvailabilityStage const type.

type BasicInformation

type BasicInformation struct {
	// READ-ONLY; Availability information of the product system.
	AvailabilityInformation *AvailabilityInformation

	// READ-ONLY; Cost information for the product system.
	CostInformation *CostInformation

	// READ-ONLY; Description related to the product system.
	Description *Description

	// READ-ONLY; Display Name for the product system.
	DisplayName *string

	// READ-ONLY; Hierarchy information of a product.
	HierarchyInformation *HierarchyInformation

	// READ-ONLY; Image information for the product system.
	ImageInformation []*ImageInformation
}

BasicInformation - Basic information for any product system

func (BasicInformation) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type BasicInformation.

func (*BasicInformation) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type BasicInformation.

type BillingMeterDetails

type BillingMeterDetails struct {
	// READ-ONLY; Frequency of recurrence
	Frequency *string

	// READ-ONLY; Represents MeterDetails
	MeterDetails MeterDetailsClassification

	// READ-ONLY; Represents Metering type (eg one-time or recurrent)
	MeteringType *MeteringType

	// READ-ONLY; Represents Billing type name
	Name *string
}

BillingMeterDetails - Holds billing meter details for each type of billing

func (BillingMeterDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type BillingMeterDetails.

func (*BillingMeterDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type BillingMeterDetails.

type BillingType

type BillingType string

BillingType - Represents billing type.

const (
	// BillingTypePav2 - PaV2 billing.
	BillingTypePav2 BillingType = "Pav2"
	// BillingTypePurchase - Purchase billing.
	BillingTypePurchase BillingType = "Purchase"
)

func PossibleBillingTypeValues

func PossibleBillingTypeValues() []BillingType

PossibleBillingTypeValues returns the possible values for the BillingType const type.

type CancellationReason

type CancellationReason struct {
	// REQUIRED; Reason for cancellation.
	Reason *string
}

CancellationReason - Reason for cancellation.

func (CancellationReason) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type CancellationReason.

func (*CancellationReason) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CancellationReason.

type ChargingType

type ChargingType string

ChargingType - Charging type.

const (
	// ChargingTypePerDevice - Per device charging type.
	ChargingTypePerDevice ChargingType = "PerDevice"
	// ChargingTypePerOrder - Per order charging type.
	ChargingTypePerOrder ChargingType = "PerOrder"
)

func PossibleChargingTypeValues

func PossibleChargingTypeValues() []ChargingType

PossibleChargingTypeValues returns the possible values for the ChargingType const type.

type ClientFactory added in v1.1.0

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

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

func NewClientFactory added in v1.1.0

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

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

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

func (*ClientFactory) NewManagementClient added in v1.1.0

func (c *ClientFactory) NewManagementClient() *ManagementClient

NewManagementClient creates a new instance of ManagementClient.

type CommonProperties

type CommonProperties struct {
	// READ-ONLY; Availability information of the product system.
	AvailabilityInformation *AvailabilityInformation

	// READ-ONLY; Cost information for the product system.
	CostInformation *CostInformation

	// READ-ONLY; Description related to the product system.
	Description *Description

	// READ-ONLY; Display Name for the product system.
	DisplayName *string

	// READ-ONLY; list of filters supported for a product
	FilterableProperties []*FilterableProperty

	// READ-ONLY; Hierarchy information of a product.
	HierarchyInformation *HierarchyInformation

	// READ-ONLY; Image information for the product system.
	ImageInformation []*ImageInformation
}

CommonProperties - Represents common properties across product hierarchy

func (CommonProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type CommonProperties.

func (*CommonProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CommonProperties.

type Configuration

type Configuration struct {
	// READ-ONLY; Properties of configuration
	Properties *ConfigurationProperties
}

Configuration object.

func (Configuration) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Configuration.

func (*Configuration) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Configuration.

type ConfigurationFilters

type ConfigurationFilters struct {
	// REQUIRED; Product hierarchy information
	HierarchyInformation *HierarchyInformation

	// Filters specific to product
	FilterableProperty []*FilterableProperty
}

ConfigurationFilters - Configuration filters

func (ConfigurationFilters) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ConfigurationFilters.

func (*ConfigurationFilters) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationFilters.

type ConfigurationProperties

type ConfigurationProperties struct {
	// READ-ONLY; Availability information of the product system.
	AvailabilityInformation *AvailabilityInformation

	// READ-ONLY; Cost information for the product system.
	CostInformation *CostInformation

	// READ-ONLY; Description related to the product system.
	Description *Description

	// READ-ONLY; Dimensions of the configuration
	Dimensions *Dimensions

	// READ-ONLY; Display Name for the product system.
	DisplayName *string

	// READ-ONLY; list of filters supported for a product
	FilterableProperties []*FilterableProperty

	// READ-ONLY; Hierarchy information of a product.
	HierarchyInformation *HierarchyInformation

	// READ-ONLY; Image information for the product system.
	ImageInformation []*ImageInformation

	// READ-ONLY; Specifications of the configuration
	Specifications []*Specification
}

ConfigurationProperties - Properties of configuration

func (ConfigurationProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ConfigurationProperties.

func (*ConfigurationProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationProperties.

type Configurations

type Configurations struct {
	// Link for the next set of configurations.
	NextLink *string

	// READ-ONLY; List of configurations.
	Value []*Configuration
}

Configurations - The list of configurations.

func (Configurations) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Configurations.

func (*Configurations) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Configurations.

type ConfigurationsRequest

type ConfigurationsRequest struct {
	// REQUIRED; Holds details about product hierarchy information and filterable property.
	ConfigurationFilters []*ConfigurationFilters

	// Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing
	// subscription details
	CustomerSubscriptionDetails *CustomerSubscriptionDetails
}

ConfigurationsRequest - Configuration request object.

func (ConfigurationsRequest) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ConfigurationsRequest.

func (*ConfigurationsRequest) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationsRequest.

type ContactDetails

type ContactDetails struct {
	// REQUIRED; Contact name of the person.
	ContactName *string

	// REQUIRED; List of Email-ids to be notified about job progress.
	EmailList []*string

	// REQUIRED; Phone number of the contact person.
	Phone *string

	// Mobile number of the contact person.
	Mobile *string

	// Phone extension number of the contact person.
	PhoneExtension *string
}

ContactDetails - Contact Details.

func (ContactDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ContactDetails.

func (*ContactDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ContactDetails.

type CostInformation

type CostInformation struct {
	// READ-ONLY; Default url to display billing information
	BillingInfoURL *string

	// READ-ONLY; Details on the various billing aspects for the product system.
	BillingMeterDetails []*BillingMeterDetails
}

CostInformation - Cost information for the product system

func (CostInformation) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type CostInformation.

func (*CostInformation) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CostInformation.

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 CustomerSubscriptionDetails

type CustomerSubscriptionDetails struct {
	// REQUIRED; Quota ID of a subscription
	QuotaID *string

	// Location placement Id of a subscription
	LocationPlacementID *string

	// List of registered feature flags for subscription
	RegisteredFeatures []*CustomerSubscriptionRegisteredFeatures
}

CustomerSubscriptionDetails - Holds Customer subscription details. Clients can display available products to unregistered customers by explicitly passing subscription details

func (CustomerSubscriptionDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type CustomerSubscriptionDetails.

func (*CustomerSubscriptionDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CustomerSubscriptionDetails.

type CustomerSubscriptionRegisteredFeatures

type CustomerSubscriptionRegisteredFeatures struct {
	// Name of subscription registered feature
	Name *string

	// State of subscription registered feature
	State *string
}

CustomerSubscriptionRegisteredFeatures - Represents subscription registered features

func (CustomerSubscriptionRegisteredFeatures) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type CustomerSubscriptionRegisteredFeatures.

func (*CustomerSubscriptionRegisteredFeatures) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type CustomerSubscriptionRegisteredFeatures.

type Description

type Description struct {
	// READ-ONLY; Attributes for the product system.
	Attributes []*string

	// READ-ONLY; Type of description.
	DescriptionType *DescriptionType

	// READ-ONLY; Keywords for the product system.
	Keywords []*string

	// READ-ONLY; Links for the product system.
	Links []*Link

	// READ-ONLY; Long description of the product system.
	LongDescription *string

	// READ-ONLY; Short description of the product system.
	ShortDescription *string
}

Description related properties of a product system.

func (Description) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Description.

func (*Description) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Description.

type DescriptionType

type DescriptionType string

DescriptionType - Type of description.

const (
	// DescriptionTypeBase - Base description.
	DescriptionTypeBase DescriptionType = "Base"
)

func PossibleDescriptionTypeValues

func PossibleDescriptionTypeValues() []DescriptionType

PossibleDescriptionTypeValues returns the possible values for the DescriptionType const type.

type DeviceDetails

type DeviceDetails struct {
	// READ-ONLY; Management Resource Id
	ManagementResourceID *string

	// READ-ONLY; Management Resource Tenant ID
	ManagementResourceTenantID *string

	// READ-ONLY; device serial number
	SerialNumber *string
}

DeviceDetails - Device details.

func (DeviceDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type DeviceDetails.

func (*DeviceDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type DeviceDetails.

type Dimensions

type Dimensions struct {
	// READ-ONLY; Depth of the device.
	Depth *float64

	// READ-ONLY; Height of the device.
	Height *float64

	// READ-ONLY; Length of the device.
	Length *float64

	// READ-ONLY; Unit for the dimensions of length, height and width.
	LengthHeightUnit *LengthHeightUnit

	// READ-ONLY; Weight of the device.
	Weight *float64

	// READ-ONLY; Unit for the dimensions of weight.
	WeightUnit *WeightMeasurementUnit

	// READ-ONLY; Width of the device.
	Width *float64
}

Dimensions of a configuration.

func (Dimensions) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Dimensions.

func (*Dimensions) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Dimensions.

type DisabledReason

type DisabledReason string

DisabledReason - Reason why the product is disabled.

const (
	// DisabledReasonCountry - Not available in the requested country.
	DisabledReasonCountry DisabledReason = "Country"
	// DisabledReasonFeature - Required features are not enabled.
	DisabledReasonFeature DisabledReason = "Feature"
	// DisabledReasonNoSubscriptionInfo - Subscription has not registered to Microsoft.DataBox and Service does not have the subscription
	// notification.
	DisabledReasonNoSubscriptionInfo DisabledReason = "NoSubscriptionInfo"
	// DisabledReasonNone - Not disabled.
	DisabledReasonNone DisabledReason = "None"
	// DisabledReasonNotAvailable - The product is not yet available.
	DisabledReasonNotAvailable DisabledReason = "NotAvailable"
	// DisabledReasonOfferType - Subscription does not have required offer types.
	DisabledReasonOfferType DisabledReason = "OfferType"
	// DisabledReasonOutOfStock - The product is out of stock.
	DisabledReasonOutOfStock DisabledReason = "OutOfStock"
	// DisabledReasonRegion - Not available to push data to the requested Azure region.
	DisabledReasonRegion DisabledReason = "Region"
)

func PossibleDisabledReasonValues

func PossibleDisabledReasonValues() []DisabledReason

PossibleDisabledReasonValues returns the possible values for the DisabledReason const type.

type DisplayInfo

type DisplayInfo struct {
	// READ-ONLY; Configuration display name
	ConfigurationDisplayName *string

	// READ-ONLY; Product family display name
	ProductFamilyDisplayName *string
}

DisplayInfo - Describes product display information

func (DisplayInfo) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type DisplayInfo.

func (*DisplayInfo) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type DisplayInfo.

type DoubleEncryptionStatus

type DoubleEncryptionStatus string

DoubleEncryptionStatus - Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured.

const (
	// DoubleEncryptionStatusDisabled - Double encryption is disabled
	DoubleEncryptionStatusDisabled DoubleEncryptionStatus = "Disabled"
	// DoubleEncryptionStatusEnabled - Double encryption is enabled
	DoubleEncryptionStatusEnabled DoubleEncryptionStatus = "Enabled"
)

func PossibleDoubleEncryptionStatusValues

func PossibleDoubleEncryptionStatusValues() []DoubleEncryptionStatus

PossibleDoubleEncryptionStatusValues returns the possible values for the DoubleEncryptionStatus const type.

type EncryptionPreferences

type EncryptionPreferences struct {
	// Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled'
	// policy is configured.
	DoubleEncryptionStatus *DoubleEncryptionStatus
}

EncryptionPreferences - Preferences related to the double encryption

func (EncryptionPreferences) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type EncryptionPreferences.

func (*EncryptionPreferences) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionPreferences.

type ErrorAdditionalInfo

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

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

ErrorAdditionalInfo - The resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.

func (*ErrorAdditionalInfo) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.

type ErrorDetail

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

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

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

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

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

ErrorDetail - The error detail.

func (ErrorDetail) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorDetail.

func (*ErrorDetail) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.

type ErrorResponse

type ErrorResponse struct {
	// The error object.
	Error *ErrorDetail
}

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 v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type FilterableProperty

type FilterableProperty struct {
	// REQUIRED; Values to be filtered.
	SupportedValues []*string

	// REQUIRED; Type of product filter.
	Type *SupportedFilterTypes
}

FilterableProperty - Different types of filters supported and its values.

func (FilterableProperty) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type FilterableProperty.

func (*FilterableProperty) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type FilterableProperty.

type ForwardShippingDetails

type ForwardShippingDetails struct {
	// READ-ONLY; Carrier Name for display purpose. Not to be used for any processing.
	CarrierDisplayName *string

	// READ-ONLY; Name of the carrier.
	CarrierName *string

	// READ-ONLY; TrackingId of the package
	TrackingID *string

	// READ-ONLY; TrackingUrl of the package.
	TrackingURL *string
}

ForwardShippingDetails - Forward shipment details.

func (ForwardShippingDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ForwardShippingDetails.

func (*ForwardShippingDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ForwardShippingDetails.

type HierarchyInformation

type HierarchyInformation struct {
	// Represents configuration name that uniquely identifies configuration
	ConfigurationName *string

	// Represents product family name that uniquely identifies product family
	ProductFamilyName *string

	// Represents product line name that uniquely identifies product line
	ProductLineName *string

	// Represents product name that uniquely identifies product
	ProductName *string
}

HierarchyInformation - Holds details about product hierarchy information

func (HierarchyInformation) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type HierarchyInformation.

func (*HierarchyInformation) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type HierarchyInformation.

type ImageInformation

type ImageInformation struct {
	// READ-ONLY; Type of the image
	ImageType *ImageType

	// READ-ONLY; Url of the image
	ImageURL *string
}

ImageInformation - Image for the product

func (ImageInformation) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ImageInformation.

func (*ImageInformation) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ImageInformation.

type ImageType

type ImageType string

ImageType - Type of the image

const (
	// ImageTypeBulletImage - Bullet image.
	ImageTypeBulletImage ImageType = "BulletImage"
	// ImageTypeGenericImage - Generic image.
	ImageTypeGenericImage ImageType = "GenericImage"
	// ImageTypeMainImage - Main image.
	ImageTypeMainImage ImageType = "MainImage"
)

func PossibleImageTypeValues

func PossibleImageTypeValues() []ImageType

PossibleImageTypeValues returns the possible values for the ImageType const type.

type LengthHeightUnit

type LengthHeightUnit string

LengthHeightUnit - Unit for the dimensions of length, height and width.

const (
	// LengthHeightUnitCM - Centimeter.
	LengthHeightUnitCM LengthHeightUnit = "CM"
	// LengthHeightUnitIN - Inch, applicable for West US.
	LengthHeightUnitIN LengthHeightUnit = "IN"
)

func PossibleLengthHeightUnitValues

func PossibleLengthHeightUnitValues() []LengthHeightUnit

PossibleLengthHeightUnitValues returns the possible values for the LengthHeightUnit const type.

type Link struct {
	// READ-ONLY; Type of link
	LinkType *LinkType

	// READ-ONLY; Url of the link
	LinkURL *string
}

Link - Returns link related to the product

func (Link) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Link.

func (*Link) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Link.

type LinkType

type LinkType string

LinkType - Type of link

const (
	// LinkTypeDocumentation - Link to product documentation
	LinkTypeDocumentation LinkType = "Documentation"
	// LinkTypeGeneric - Generic link.
	LinkTypeGeneric LinkType = "Generic"
	// LinkTypeKnowMore - Link to know more
	LinkTypeKnowMore LinkType = "KnowMore"
	// LinkTypeSignUp - Link to sign up for products
	LinkTypeSignUp LinkType = "SignUp"
	// LinkTypeSpecification - Link to product specification.
	LinkTypeSpecification LinkType = "Specification"
	// LinkTypeTermsAndConditions - Terms and conditions link.
	LinkTypeTermsAndConditions LinkType = "TermsAndConditions"
)

func PossibleLinkTypeValues

func PossibleLinkTypeValues() []LinkType

PossibleLinkTypeValues returns the possible values for the LinkType const type.

type ManagementClient added in v0.2.0

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

ManagementClient contains the methods for the EdgeOrderManagementClient group. Don't use this type directly, use NewManagementClient() instead.

func NewManagementClient added in v0.2.0

func NewManagementClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementClient, error)

NewManagementClient creates a new instance of ManagementClient 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 (*ManagementClient) BeginCreateAddress added in v0.2.0

func (client *ManagementClient) BeginCreateAddress(ctx context.Context, addressName string, resourceGroupName string, addressResource AddressResource, options *ManagementClientBeginCreateAddressOptions) (*runtime.Poller[ManagementClientCreateAddressResponse], error)

BeginCreateAddress - Creates a new address with the specified parameters. Existing address can be updated with this API If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • addressName - The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • addressResource - Address details from request body.
  • options - ManagementClientBeginCreateAddressOptions contains the optional parameters for the ManagementClient.BeginCreateAddress method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/CreateAddress.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewManagementClient().BeginCreateAddress(ctx, "TestAddressName2", "YourResourceGroupName", armedgeorder.AddressResource{
		Location: to.Ptr("eastus"),
		Properties: &armedgeorder.AddressProperties{
			ContactDetails: &armedgeorder.ContactDetails{
				ContactName: to.Ptr("XXXX XXXX"),
				EmailList: []*string{
					to.Ptr("xxxx@xxxx.xxx")},
				Phone:          to.Ptr("0000000000"),
				PhoneExtension: to.Ptr(""),
			},
			ShippingAddress: &armedgeorder.ShippingAddress{
				AddressType:     to.Ptr(armedgeorder.AddressTypeNone),
				City:            to.Ptr("San Francisco"),
				CompanyName:     to.Ptr("Microsoft"),
				Country:         to.Ptr("US"),
				PostalCode:      to.Ptr("94107"),
				StateOrProvince: to.Ptr("CA"),
				StreetAddress1:  to.Ptr("16 TOWNSEND ST"),
				StreetAddress2:  to.Ptr("UNIT 1"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AddressResource = armedgeorder.AddressResource{
	// 	Name: to.Ptr("TestAddressName2"),
	// 	Type: to.Ptr("Microsoft.EdgeOrder/addresses"),
	// 	ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName2"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 	},
	// 	Properties: &armedgeorder.AddressProperties{
	// 		AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
	// 		ContactDetails: &armedgeorder.ContactDetails{
	// 			ContactName: to.Ptr("XXXX XXXX"),
	// 			EmailList: []*string{
	// 				to.Ptr("xxxx@xxxx.xxx")},
	// 				Phone: to.Ptr("0000000000"),
	// 				PhoneExtension: to.Ptr(""),
	// 			},
	// 			ShippingAddress: &armedgeorder.ShippingAddress{
	// 				AddressType: to.Ptr(armedgeorder.AddressTypeNone),
	// 				City: to.Ptr("San Francisco"),
	// 				CompanyName: to.Ptr("Microsoft"),
	// 				Country: to.Ptr("US"),
	// 				PostalCode: to.Ptr("94107"),
	// 				StateOrProvince: to.Ptr("CA"),
	// 				StreetAddress1: to.Ptr("16 TOWNSEND ST"),
	// 				StreetAddress2: to.Ptr("UNIT 1"),
	// 			},
	// 		},
	// 		SystemData: &armedgeorder.SystemData{
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		},
	// 	}
}
Output:

func (*ManagementClient) BeginCreateOrderItem added in v0.2.0

func (client *ManagementClient) BeginCreateOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, orderItemResource OrderItemResource, options *ManagementClientBeginCreateOrderItemOptions) (*runtime.Poller[ManagementClientCreateOrderItemResponse], error)

BeginCreateOrderItem - Creates an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item API. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • orderItemName - The name of the order item
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • orderItemResource - Order item details from request body.
  • options - ManagementClientBeginCreateOrderItemOptions contains the optional parameters for the ManagementClient.BeginCreateOrderItem method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/CreateOrderItem.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewManagementClient().BeginCreateOrderItem(ctx, "TestOrderItemName2", "YourResourceGroupName", armedgeorder.OrderItemResource{
		Location: to.Ptr("eastus"),
		Properties: &armedgeorder.OrderItemProperties{
			AddressDetails: &armedgeorder.AddressDetails{
				ForwardAddress: &armedgeorder.AddressProperties{
					ContactDetails: &armedgeorder.ContactDetails{
						ContactName: to.Ptr("XXXX XXXX"),
						EmailList: []*string{
							to.Ptr("xxxx@xxxx.xxx")},
						Phone:          to.Ptr("0000000000"),
						PhoneExtension: to.Ptr(""),
					},
					ShippingAddress: &armedgeorder.ShippingAddress{
						AddressType:     to.Ptr(armedgeorder.AddressTypeNone),
						City:            to.Ptr("San Francisco"),
						CompanyName:     to.Ptr("Microsoft"),
						Country:         to.Ptr("US"),
						PostalCode:      to.Ptr("94107"),
						StateOrProvince: to.Ptr("CA"),
						StreetAddress1:  to.Ptr("16 TOWNSEND ST"),
						StreetAddress2:  to.Ptr("UNIT 1"),
					},
				},
			},
			OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2"),
			OrderItemDetails: &armedgeorder.OrderItemDetails{
				OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
				Preferences: &armedgeorder.Preferences{
					TransportPreferences: &armedgeorder.TransportPreferences{
						PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesMicrosoftManaged),
					},
				},
				ProductDetails: &armedgeorder.ProductDetails{
					HierarchyInformation: &armedgeorder.HierarchyInformation{
						ConfigurationName: to.Ptr("edgep_base"),
						ProductFamilyName: to.Ptr("azurestackedge"),
						ProductLineName:   to.Ptr("azurestackedge"),
						ProductName:       to.Ptr("azurestackedgegpu"),
					},
				},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OrderItemResource = armedgeorder.OrderItemResource{
	// 	Name: to.Ptr("TestOrderItemName2"),
	// 	Type: to.Ptr("Microsoft.EdgeOrder/orderItems"),
	// 	ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName2"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 	},
	// 	Properties: &armedgeorder.OrderItemProperties{
	// 		AddressDetails: &armedgeorder.AddressDetails{
	// 			ForwardAddress: &armedgeorder.AddressProperties{
	// 				AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
	// 				ContactDetails: &armedgeorder.ContactDetails{
	// 					ContactName: to.Ptr("XXXX XXXX"),
	// 					EmailList: []*string{
	// 						to.Ptr("xxxx@xxxx.xxx")},
	// 						Phone: to.Ptr("0000000000"),
	// 						PhoneExtension: to.Ptr(""),
	// 					},
	// 					ShippingAddress: &armedgeorder.ShippingAddress{
	// 						AddressType: to.Ptr(armedgeorder.AddressTypeNone),
	// 						City: to.Ptr("San Francisco"),
	// 						CompanyName: to.Ptr("Microsoft"),
	// 						Country: to.Ptr("US"),
	// 						PostalCode: to.Ptr("94107"),
	// 						StateOrProvince: to.Ptr("CA"),
	// 						StreetAddress1: to.Ptr("16 TOWNSEND ST"),
	// 						StreetAddress2: to.Ptr("UNIT 1"),
	// 					},
	// 				},
	// 			},
	// 			OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2"),
	// 			OrderItemDetails: &armedgeorder.OrderItemDetails{
	// 				CancellationStatus: to.Ptr(armedgeorder.OrderItemCancellationEnumCancellable),
	// 				CurrentStage: &armedgeorder.StageDetails{
	// 					StageName: to.Ptr(armedgeorder.StageNamePlaced),
	// 					StageStatus: to.Ptr(armedgeorder.StageStatusInProgress),
	// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:28:27.582Z"); return t}()),
	// 				},
	// 				DeletionStatus: to.Ptr(armedgeorder.ActionStatusEnumNotAllowed),
	// 				ManagementRpDetailsList: []*armedgeorder.ResourceProviderDetails{
	// 					{
	// 						ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
	// 				}},
	// 				NotificationEmailList: []*string{
	// 				},
	// 				OrderItemStageHistory: []*armedgeorder.StageDetails{
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNamePlaced),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameConfirmed),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameReadyToShip),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameShipped),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameDelivered),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameInUse),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 				}},
	// 				OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
	// 				Preferences: &armedgeorder.Preferences{
	// 					TransportPreferences: &armedgeorder.TransportPreferences{
	// 						PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesMicrosoftManaged),
	// 					},
	// 				},
	// 				ProductDetails: &armedgeorder.ProductDetails{
	// 					Count: to.Ptr[int32](0),
	// 					DisplayInfo: &armedgeorder.DisplayInfo{
	// 						ConfigurationDisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
	// 						ProductFamilyDisplayName: to.Ptr("Azure Stack Edge"),
	// 					},
	// 					HierarchyInformation: &armedgeorder.HierarchyInformation{
	// 						ConfigurationName: to.Ptr("edgep_base"),
	// 						ProductFamilyName: to.Ptr("azurestackedge"),
	// 						ProductLineName: to.Ptr("azurestackedge"),
	// 						ProductName: to.Ptr("azurestackedgegpu"),
	// 					},
	// 					ProductDoubleEncryptionStatus: to.Ptr(armedgeorder.DoubleEncryptionStatusDisabled),
	// 				},
	// 				ReturnStatus: to.Ptr(armedgeorder.OrderItemReturnEnumNotReturnable),
	// 			},
	// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:28:27.582Z"); return t}()),
	// 		},
	// 		SystemData: &armedgeorder.SystemData{
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		},
	// 	}
}
Output:

func (*ManagementClient) BeginDeleteAddressByName added in v0.2.0

func (client *ManagementClient) BeginDeleteAddressByName(ctx context.Context, addressName string, resourceGroupName string, options *ManagementClientBeginDeleteAddressByNameOptions) (*runtime.Poller[ManagementClientDeleteAddressByNameResponse], error)

BeginDeleteAddressByName - Deletes an address. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • addressName - The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ManagementClientBeginDeleteAddressByNameOptions contains the optional parameters for the ManagementClient.BeginDeleteAddressByName method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/DeleteAddressByName.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

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

func (*ManagementClient) BeginDeleteOrderItemByName added in v0.2.0

func (client *ManagementClient) BeginDeleteOrderItemByName(ctx context.Context, orderItemName string, resourceGroupName string, options *ManagementClientBeginDeleteOrderItemByNameOptions) (*runtime.Poller[ManagementClientDeleteOrderItemByNameResponse], error)

BeginDeleteOrderItemByName - Deletes an order item. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • orderItemName - The name of the order item
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ManagementClientBeginDeleteOrderItemByNameOptions contains the optional parameters for the ManagementClient.BeginDeleteOrderItemByName method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/DeleteOrderItemByName.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

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

func (*ManagementClient) BeginReturnOrderItem added in v0.2.0

func (client *ManagementClient) BeginReturnOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, returnOrderItemDetails ReturnOrderItemDetails, options *ManagementClientBeginReturnOrderItemOptions) (*runtime.Poller[ManagementClientReturnOrderItemResponse], error)

BeginReturnOrderItem - Return order item. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • orderItemName - The name of the order item
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • returnOrderItemDetails - Return order item CurrentStatus.
  • options - ManagementClientBeginReturnOrderItemOptions contains the optional parameters for the ManagementClient.BeginReturnOrderItem method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ReturnOrderItem.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewManagementClient().BeginReturnOrderItem(ctx, "TestOrderName4", "YourResourceGroupName", armedgeorder.ReturnOrderItemDetails{
		ReturnReason: to.Ptr("Order returned"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ManagementClient) BeginUpdateAddress added in v0.2.0

func (client *ManagementClient) BeginUpdateAddress(ctx context.Context, addressName string, resourceGroupName string, addressUpdateParameter AddressUpdateParameter, options *ManagementClientBeginUpdateAddressOptions) (*runtime.Poller[ManagementClientUpdateAddressResponse], error)

BeginUpdateAddress - Updates the properties of an existing address. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • addressName - The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • addressUpdateParameter - Address update parameters from request body.
  • options - ManagementClientBeginUpdateAddressOptions contains the optional parameters for the ManagementClient.BeginUpdateAddress method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/UpdateAddress.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewManagementClient().BeginUpdateAddress(ctx, "TestAddressName2", "YourResourceGroupName", armedgeorder.AddressUpdateParameter{
		Properties: &armedgeorder.AddressUpdateProperties{
			ContactDetails: &armedgeorder.ContactDetails{
				ContactName: to.Ptr("YYYY YYYY"),
				EmailList: []*string{
					to.Ptr("xxxx@xxxx.xxx")},
				Phone:          to.Ptr("0000000000"),
				PhoneExtension: to.Ptr(""),
			},
			ShippingAddress: &armedgeorder.ShippingAddress{
				AddressType:     to.Ptr(armedgeorder.AddressTypeNone),
				City:            to.Ptr("San Francisco"),
				CompanyName:     to.Ptr("Microsoft"),
				Country:         to.Ptr("US"),
				PostalCode:      to.Ptr("94107"),
				StateOrProvince: to.Ptr("CA"),
				StreetAddress1:  to.Ptr("16 TOWNSEND ST"),
				StreetAddress2:  to.Ptr("UNIT 1"),
			},
		},
		Tags: map[string]*string{
			"tag1": to.Ptr("value1"),
			"tag2": to.Ptr("value2"),
		},
	}, &armedgeorder.ManagementClientBeginUpdateAddressOptions{IfMatch: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AddressResource = armedgeorder.AddressResource{
	// 	Name: to.Ptr("TestAddressName2"),
	// 	Type: to.Ptr("Microsoft.EdgeOrder/addresses"),
	// 	ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName2"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tag1": to.Ptr("value1"),
	// 		"tag2": to.Ptr("value2"),
	// 	},
	// 	Properties: &armedgeorder.AddressProperties{
	// 		AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
	// 		ContactDetails: &armedgeorder.ContactDetails{
	// 			ContactName: to.Ptr("YYYY YYYY"),
	// 			EmailList: []*string{
	// 				to.Ptr("xxxx@xxxx.xxx")},
	// 				Phone: to.Ptr("0000000000"),
	// 				PhoneExtension: to.Ptr(""),
	// 			},
	// 			ShippingAddress: &armedgeorder.ShippingAddress{
	// 				AddressType: to.Ptr(armedgeorder.AddressTypeNone),
	// 				City: to.Ptr("San Francisco"),
	// 				CompanyName: to.Ptr("Microsoft"),
	// 				Country: to.Ptr("US"),
	// 				PostalCode: to.Ptr("94107"),
	// 				StateOrProvince: to.Ptr("CA"),
	// 				StreetAddress1: to.Ptr("16 TOWNSEND ST"),
	// 				StreetAddress2: to.Ptr("UNIT 1"),
	// 			},
	// 		},
	// 		SystemData: &armedgeorder.SystemData{
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		},
	// 	}
}
Output:

func (*ManagementClient) BeginUpdateOrderItem added in v0.2.0

func (client *ManagementClient) BeginUpdateOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, orderItemUpdateParameter OrderItemUpdateParameter, options *ManagementClientBeginUpdateOrderItemOptions) (*runtime.Poller[ManagementClientUpdateOrderItemResponse], error)

BeginUpdateOrderItem - Updates the properties of an existing order item. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • orderItemName - The name of the order item
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • orderItemUpdateParameter - order item update parameters from request body.
  • options - ManagementClientBeginUpdateOrderItemOptions contains the optional parameters for the ManagementClient.BeginUpdateOrderItem method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/UpdateOrderItem.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewManagementClient().BeginUpdateOrderItem(ctx, "TestOrderItemName3", "YourResourceGroupName", armedgeorder.OrderItemUpdateParameter{
		Properties: &armedgeorder.OrderItemUpdateProperties{
			Preferences: &armedgeorder.Preferences{
				TransportPreferences: &armedgeorder.TransportPreferences{
					PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesCustomerManaged),
				},
			},
		},
	}, &armedgeorder.ManagementClientBeginUpdateOrderItemOptions{IfMatch: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OrderItemResource = armedgeorder.OrderItemResource{
	// 	Name: to.Ptr("TestOrderItemName3"),
	// 	Type: to.Ptr("Microsoft.EdgeOrder/orderItems"),
	// 	ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName3"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 	},
	// 	Properties: &armedgeorder.OrderItemProperties{
	// 		AddressDetails: &armedgeorder.AddressDetails{
	// 			ForwardAddress: &armedgeorder.AddressProperties{
	// 				AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
	// 				ContactDetails: &armedgeorder.ContactDetails{
	// 					ContactName: to.Ptr("XXXX XXXX"),
	// 					EmailList: []*string{
	// 						to.Ptr("xxxx@xxxx.xxx")},
	// 						Phone: to.Ptr("0000000000"),
	// 						PhoneExtension: to.Ptr(""),
	// 					},
	// 					ShippingAddress: &armedgeorder.ShippingAddress{
	// 						AddressType: to.Ptr(armedgeorder.AddressTypeNone),
	// 						City: to.Ptr("San Francisco"),
	// 						CompanyName: to.Ptr("Microsoft"),
	// 						Country: to.Ptr("US"),
	// 						PostalCode: to.Ptr("94107"),
	// 						StateOrProvince: to.Ptr("CA"),
	// 						StreetAddress1: to.Ptr("16 TOWNSEND ST"),
	// 						StreetAddress2: to.Ptr("UNIT 1"),
	// 					},
	// 				},
	// 			},
	// 			OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName3"),
	// 			OrderItemDetails: &armedgeorder.OrderItemDetails{
	// 				CancellationStatus: to.Ptr(armedgeorder.OrderItemCancellationEnumCancellable),
	// 				CurrentStage: &armedgeorder.StageDetails{
	// 					StageName: to.Ptr(armedgeorder.StageNamePlaced),
	// 					StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T06:00:31.583Z"); return t}()),
	// 				},
	// 				DeletionStatus: to.Ptr(armedgeorder.ActionStatusEnumNotAllowed),
	// 				ManagementRpDetailsList: []*armedgeorder.ResourceProviderDetails{
	// 					{
	// 						ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
	// 				}},
	// 				NotificationEmailList: []*string{
	// 				},
	// 				OrderItemStageHistory: []*armedgeorder.StageDetails{
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNamePlaced),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 						StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T06:00:31.583Z"); return t}()),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameConfirmed),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameReadyToShip),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameShipped),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameDelivered),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameInUse),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 				}},
	// 				OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
	// 				Preferences: &armedgeorder.Preferences{
	// 					TransportPreferences: &armedgeorder.TransportPreferences{
	// 						PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesCustomerManaged),
	// 					},
	// 				},
	// 				ProductDetails: &armedgeorder.ProductDetails{
	// 					Count: to.Ptr[int32](0),
	// 					DisplayInfo: &armedgeorder.DisplayInfo{
	// 						ConfigurationDisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
	// 						ProductFamilyDisplayName: to.Ptr("Azure Stack Edge"),
	// 					},
	// 					HierarchyInformation: &armedgeorder.HierarchyInformation{
	// 						ConfigurationName: to.Ptr("edgep_base"),
	// 						ProductFamilyName: to.Ptr("azurestackedge"),
	// 						ProductLineName: to.Ptr("azurestackedge"),
	// 						ProductName: to.Ptr("azurestackedgegpu"),
	// 					},
	// 					ProductDoubleEncryptionStatus: to.Ptr(armedgeorder.DoubleEncryptionStatusDisabled),
	// 				},
	// 				ReturnStatus: to.Ptr(armedgeorder.OrderItemReturnEnumNotReturnable),
	// 			},
	// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:59:47.348Z"); return t}()),
	// 		},
	// 		SystemData: &armedgeorder.SystemData{
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		},
	// 	}
}
Output:

func (*ManagementClient) CancelOrderItem added in v0.2.0

func (client *ManagementClient) CancelOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, cancellationReason CancellationReason, options *ManagementClientCancelOrderItemOptions) (ManagementClientCancelOrderItemResponse, error)

CancelOrderItem - Cancel order item. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • orderItemName - The name of the order item
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cancellationReason - Reason for cancellation.
  • options - ManagementClientCancelOrderItemOptions contains the optional parameters for the ManagementClient.CancelOrderItem method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/CancelOrderItem.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewManagementClient().CancelOrderItem(ctx, "TestOrderItemName3", "YourResourceGroupName", armedgeorder.CancellationReason{
		Reason: to.Ptr("Order cancelled"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*ManagementClient) GetAddressByName added in v0.2.0

func (client *ManagementClient) GetAddressByName(ctx context.Context, addressName string, resourceGroupName string, options *ManagementClientGetAddressByNameOptions) (ManagementClientGetAddressByNameResponse, error)

GetAddressByName - Gets information about the specified address. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • addressName - The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ManagementClientGetAddressByNameOptions contains the optional parameters for the ManagementClient.GetAddressByName method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/GetAddressByName.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagementClient().GetAddressByName(ctx, "TestAddressName1", "YourResourceGroupName", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AddressResource = armedgeorder.AddressResource{
	// 	Name: to.Ptr("TestAddressName1"),
	// 	Type: to.Ptr("Microsoft.EdgeOrder/addresses"),
	// 	ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 	},
	// 	Properties: &armedgeorder.AddressProperties{
	// 		AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
	// 		ContactDetails: &armedgeorder.ContactDetails{
	// 			ContactName: to.Ptr("XXXX XXXX"),
	// 			EmailList: []*string{
	// 				to.Ptr("xxxx@xxxx.xxx")},
	// 				Phone: to.Ptr("0000000000"),
	// 				PhoneExtension: to.Ptr(""),
	// 			},
	// 			ShippingAddress: &armedgeorder.ShippingAddress{
	// 				AddressType: to.Ptr(armedgeorder.AddressTypeNone),
	// 				City: to.Ptr("San Francisco"),
	// 				CompanyName: to.Ptr("Microsoft"),
	// 				Country: to.Ptr("US"),
	// 				PostalCode: to.Ptr("94107"),
	// 				StateOrProvince: to.Ptr("CA"),
	// 				StreetAddress1: to.Ptr("16 TOWNSEND ST"),
	// 				StreetAddress2: to.Ptr("UNIT 1"),
	// 			},
	// 		},
	// 		SystemData: &armedgeorder.SystemData{
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		},
	// 	}
}
Output:

func (*ManagementClient) GetOrderByName added in v0.2.0

func (client *ManagementClient) GetOrderByName(ctx context.Context, orderName string, resourceGroupName string, location string, options *ManagementClientGetOrderByNameOptions) (ManagementClientGetOrderByNameResponse, error)

GetOrderByName - Gets an order. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • orderName - The name of the order
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • location - The name of Azure region.
  • options - ManagementClientGetOrderByNameOptions contains the optional parameters for the ManagementClient.GetOrderByName method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/GetOrderByName.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagementClient().GetOrderByName(ctx, "TestOrderName3", "YourResourceGroupName", "eastus", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OrderResource = armedgeorder.OrderResource{
	// 	Name: to.Ptr("TestOrderName3"),
	// 	Type: to.Ptr("Microsoft.EdgeOrder/orders"),
	// 	ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName3"),
	// 	Properties: &armedgeorder.OrderProperties{
	// 		CurrentStage: &armedgeorder.StageDetails{
	// 			StageName: to.Ptr(armedgeorder.StageNameInReview),
	// 			StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T06:05:20.852Z"); return t}()),
	// 		},
	// 		OrderItemIDs: []*string{
	// 			to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName3")},
	// 			OrderStageHistory: []*armedgeorder.StageDetails{
	// 				{
	// 					StageName: to.Ptr(armedgeorder.StageNamePlaced),
	// 					StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T06:00:30.271Z"); return t}()),
	// 				},
	// 				{
	// 					StageName: to.Ptr(armedgeorder.StageNameInReview),
	// 					StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T06:05:20.852Z"); return t}()),
	// 			}},
	// 		},
	// 		SystemData: &armedgeorder.SystemData{
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		},
	// 	}
}
Output:

func (*ManagementClient) GetOrderItemByName added in v0.2.0

func (client *ManagementClient) GetOrderItemByName(ctx context.Context, orderItemName string, resourceGroupName string, options *ManagementClientGetOrderItemByNameOptions) (ManagementClientGetOrderItemByNameResponse, error)

GetOrderItemByName - Gets an order item. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • orderItemName - The name of the order item
  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ManagementClientGetOrderItemByNameOptions contains the optional parameters for the ManagementClient.GetOrderItemByName method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/GetOrderItemByName.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewManagementClient().GetOrderItemByName(ctx, "TestOrderItemName1", "YourResourceGroupName", &armedgeorder.ManagementClientGetOrderItemByNameOptions{Expand: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OrderItemResource = armedgeorder.OrderItemResource{
	// 	Name: to.Ptr("TestOrderItemName1"),
	// 	Type: to.Ptr("Microsoft.EdgeOrder/orderItems"),
	// 	ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 	},
	// 	Properties: &armedgeorder.OrderItemProperties{
	// 		AddressDetails: &armedgeorder.AddressDetails{
	// 			ForwardAddress: &armedgeorder.AddressProperties{
	// 				AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
	// 				ContactDetails: &armedgeorder.ContactDetails{
	// 					ContactName: to.Ptr("XXXX XXXX"),
	// 					EmailList: []*string{
	// 						to.Ptr("xxxx@xxxx.xxx")},
	// 						Phone: to.Ptr("0000000000"),
	// 						PhoneExtension: to.Ptr(""),
	// 					},
	// 					ShippingAddress: &armedgeorder.ShippingAddress{
	// 						AddressType: to.Ptr(armedgeorder.AddressTypeNone),
	// 						City: to.Ptr("San Francisco"),
	// 						CompanyName: to.Ptr("Microsoft"),
	// 						Country: to.Ptr("US"),
	// 						PostalCode: to.Ptr("94107"),
	// 						StateOrProvince: to.Ptr("CA"),
	// 						StreetAddress1: to.Ptr("16 TOWNSEND ST"),
	// 						StreetAddress2: to.Ptr("UNIT 1"),
	// 					},
	// 				},
	// 			},
	// 			OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName1"),
	// 			OrderItemDetails: &armedgeorder.OrderItemDetails{
	// 				CancellationStatus: to.Ptr(armedgeorder.OrderItemCancellationEnumNotCancellable),
	// 				CurrentStage: &armedgeorder.StageDetails{
	// 					StageName: to.Ptr(armedgeorder.StageNameConfirmed),
	// 					StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:35:00.357Z"); return t}()),
	// 				},
	// 				DeletionStatus: to.Ptr(armedgeorder.ActionStatusEnumNotAllowed),
	// 				ManagementRpDetailsList: []*armedgeorder.ResourceProviderDetails{
	// 					{
	// 						ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
	// 				}},
	// 				NotificationEmailList: []*string{
	// 				},
	// 				OrderItemStageHistory: []*armedgeorder.StageDetails{
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNamePlaced),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 						StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:54.342Z"); return t}()),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameConfirmed),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
	// 						StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:35:00.357Z"); return t}()),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameReadyToShip),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameShipped),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameDelivered),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 					},
	// 					{
	// 						StageName: to.Ptr(armedgeorder.StageNameInUse),
	// 						StageStatus: to.Ptr(armedgeorder.StageStatusNone),
	// 				}},
	// 				OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
	// 				Preferences: &armedgeorder.Preferences{
	// 					TransportPreferences: &armedgeorder.TransportPreferences{
	// 						PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesMicrosoftManaged),
	// 					},
	// 				},
	// 				ProductDetails: &armedgeorder.ProductDetails{
	// 					Count: to.Ptr[int32](0),
	// 					DisplayInfo: &armedgeorder.DisplayInfo{
	// 						ConfigurationDisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
	// 						ProductFamilyDisplayName: to.Ptr("Azure Stack Edge"),
	// 					},
	// 					HierarchyInformation: &armedgeorder.HierarchyInformation{
	// 						ConfigurationName: to.Ptr("edgep_base"),
	// 						ProductFamilyName: to.Ptr("azurestackedge"),
	// 						ProductLineName: to.Ptr("azurestackedge"),
	// 						ProductName: to.Ptr("azurestackedgegpu"),
	// 					},
	// 					ProductDoubleEncryptionStatus: to.Ptr(armedgeorder.DoubleEncryptionStatusDisabled),
	// 				},
	// 				ReturnStatus: to.Ptr(armedgeorder.OrderItemReturnEnumNotReturnable),
	// 			},
	// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:10.282Z"); return t}()),
	// 		},
	// 		SystemData: &armedgeorder.SystemData{
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
	// 		},
	// 	}
}
Output:

func (*ManagementClient) NewListAddressesAtResourceGroupLevelPager added in v0.4.0

NewListAddressesAtResourceGroupLevelPager - Lists all the addresses available under the given resource group.

Generated from API version 2021-12-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ManagementClientListAddressesAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.NewListAddressesAtResourceGroupLevelPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListAddressesAtResourceGroupLevel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListAddressesAtResourceGroupLevelPager("YourResourceGroupName", &armedgeorder.ManagementClientListAddressesAtResourceGroupLevelOptions{Filter: nil,
		SkipToken: nil,
	})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AddressResourceList = armedgeorder.AddressResourceList{
		// 	Value: []*armedgeorder.AddressResource{
		// 		{
		// 			Name: to.Ptr("TestAddressName1"),
		// 			Type: to.Ptr("Microsoft.EdgeOrder/addresses"),
		// 			ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 			},
		// 			Properties: &armedgeorder.AddressProperties{
		// 				AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 				ContactDetails: &armedgeorder.ContactDetails{
		// 					ContactName: to.Ptr("XXXX XXXX"),
		// 					EmailList: []*string{
		// 						to.Ptr("xxxx@xxxx.xxx")},
		// 						Phone: to.Ptr("0000000000"),
		// 						PhoneExtension: to.Ptr(""),
		// 					},
		// 					ShippingAddress: &armedgeorder.ShippingAddress{
		// 						AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 						City: to.Ptr("San Francisco"),
		// 						CompanyName: to.Ptr("Microsoft"),
		// 						Country: to.Ptr("US"),
		// 						PostalCode: to.Ptr("94107"),
		// 						StateOrProvince: to.Ptr("CA"),
		// 						StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 						StreetAddress2: to.Ptr("UNIT 1"),
		// 					},
		// 				},
		// 				SystemData: &armedgeorder.SystemData{
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("TestAddressName2"),
		// 				Type: to.Ptr("Microsoft.EdgeOrder/addresses"),
		// 				ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName2"),
		// 				Location: to.Ptr("eastus"),
		// 				Tags: map[string]*string{
		// 					"tag1": to.Ptr("value1"),
		// 					"tag2": to.Ptr("value2"),
		// 				},
		// 				Properties: &armedgeorder.AddressProperties{
		// 					AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 					ContactDetails: &armedgeorder.ContactDetails{
		// 						ContactName: to.Ptr("YYYY YYYY"),
		// 						EmailList: []*string{
		// 							to.Ptr("xxxx@xxxx.xxx")},
		// 							Phone: to.Ptr("0000000000"),
		// 							PhoneExtension: to.Ptr(""),
		// 						},
		// 						ShippingAddress: &armedgeorder.ShippingAddress{
		// 							AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 							City: to.Ptr("San Francisco"),
		// 							CompanyName: to.Ptr("Microsoft"),
		// 							Country: to.Ptr("US"),
		// 							PostalCode: to.Ptr("94107"),
		// 							StateOrProvince: to.Ptr("CA"),
		// 							StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 							StreetAddress2: to.Ptr("UNIT 1"),
		// 						},
		// 					},
		// 					SystemData: &armedgeorder.SystemData{
		// 						CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 						LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListAddressesAtSubscriptionLevelPager added in v0.4.0

NewListAddressesAtSubscriptionLevelPager - Lists all the addresses available under the subscription.

Generated from API version 2021-12-01

  • options - ManagementClientListAddressesAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.NewListAddressesAtSubscriptionLevelPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListAddressesAtSubscriptionLevel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListAddressesAtSubscriptionLevelPager(&armedgeorder.ManagementClientListAddressesAtSubscriptionLevelOptions{Filter: nil,
		SkipToken: nil,
	})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AddressResourceList = armedgeorder.AddressResourceList{
		// 	Value: []*armedgeorder.AddressResource{
		// 		{
		// 			Name: to.Ptr("TestAddressName1"),
		// 			Type: to.Ptr("Microsoft.EdgeOrder/addresses"),
		// 			ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 			},
		// 			Properties: &armedgeorder.AddressProperties{
		// 				AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 				ContactDetails: &armedgeorder.ContactDetails{
		// 					ContactName: to.Ptr("XXXX XXXX"),
		// 					EmailList: []*string{
		// 						to.Ptr("xxxx@xxxx.xxx")},
		// 						Phone: to.Ptr("0000000000"),
		// 						PhoneExtension: to.Ptr(""),
		// 					},
		// 					ShippingAddress: &armedgeorder.ShippingAddress{
		// 						AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 						City: to.Ptr("San Francisco"),
		// 						CompanyName: to.Ptr("Microsoft"),
		// 						Country: to.Ptr("US"),
		// 						PostalCode: to.Ptr("94107"),
		// 						StateOrProvince: to.Ptr("CA"),
		// 						StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 						StreetAddress2: to.Ptr("UNIT 1"),
		// 					},
		// 				},
		// 				SystemData: &armedgeorder.SystemData{
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("TestAddressName2"),
		// 				Type: to.Ptr("Microsoft.EdgeOrder/addresses"),
		// 				ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestAddressName2"),
		// 				Location: to.Ptr("eastus"),
		// 				Tags: map[string]*string{
		// 				},
		// 				Properties: &armedgeorder.AddressProperties{
		// 					AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 					ContactDetails: &armedgeorder.ContactDetails{
		// 						ContactName: to.Ptr("XXXX XXXX"),
		// 						EmailList: []*string{
		// 							to.Ptr("xxxx@xxxx.xxx")},
		// 							Phone: to.Ptr("0000000000"),
		// 							PhoneExtension: to.Ptr(""),
		// 						},
		// 						ShippingAddress: &armedgeorder.ShippingAddress{
		// 							AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 							City: to.Ptr("San Francisco"),
		// 							CompanyName: to.Ptr("Microsoft"),
		// 							Country: to.Ptr("US"),
		// 							PostalCode: to.Ptr("94107"),
		// 							StateOrProvince: to.Ptr("CA"),
		// 							StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 							StreetAddress2: to.Ptr("UNIT 1"),
		// 						},
		// 					},
		// 					SystemData: &armedgeorder.SystemData{
		// 						CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 						LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListConfigurationsPager added in v0.4.0

NewListConfigurationsPager - This method provides the list of configurations for the given product family, product line and product under subscription.

Generated from API version 2021-12-01

  • configurationsRequest - Filters for showing the configurations.
  • options - ManagementClientListConfigurationsOptions contains the optional parameters for the ManagementClient.NewListConfigurationsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListConfigurations.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListConfigurationsPager(armedgeorder.ConfigurationsRequest{
		ConfigurationFilters: []*armedgeorder.ConfigurationFilters{
			{
				FilterableProperty: []*armedgeorder.FilterableProperty{
					{
						Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
						SupportedValues: []*string{
							to.Ptr("US")},
					}},
				HierarchyInformation: &armedgeorder.HierarchyInformation{
					ProductFamilyName: to.Ptr("azurestackedge"),
					ProductLineName:   to.Ptr("azurestackedge"),
					ProductName:       to.Ptr("azurestackedgegpu"),
				},
			}},
	}, &armedgeorder.ManagementClientListConfigurationsOptions{SkipToken: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.Configurations = armedgeorder.Configurations{
		// 	Value: []*armedgeorder.Configuration{
		// 		{
		// 			Properties: &armedgeorder.ConfigurationProperties{
		// 				Description: &armedgeorder.Description{
		// 					Attributes: []*string{
		// 					},
		// 					DescriptionType: to.Ptr(armedgeorder.DescriptionTypeBase),
		// 					Keywords: []*string{
		// 						to.Ptr("GPU")},
		// 						Links: []*armedgeorder.Link{
		// 						},
		// 						LongDescription: to.Ptr(""),
		// 						ShortDescription: to.Ptr(""),
		// 					},
		// 					AvailabilityInformation: &armedgeorder.AvailabilityInformation{
		// 						AvailabilityStage: to.Ptr(armedgeorder.AvailabilityStageAvailable),
		// 						DisabledReason: to.Ptr(armedgeorder.DisabledReasonNone),
		// 					},
		// 					CostInformation: &armedgeorder.CostInformation{
		// 						BillingMeterDetails: []*armedgeorder.BillingMeterDetails{
		// 						},
		// 					},
		// 					DisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
		// 					HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 						ConfigurationName: to.Ptr("edgep_base"),
		// 						ProductFamilyName: to.Ptr("azurestackedge"),
		// 						ProductLineName: to.Ptr("azurestackedge"),
		// 						ProductName: to.Ptr("azurestackedgegpu"),
		// 					},
		// 					ImageInformation: []*armedgeorder.ImageInformation{
		// 					},
		// 					FilterableProperties: []*armedgeorder.FilterableProperty{
		// 						{
		// 							Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
		// 							SupportedValues: []*string{
		// 								to.Ptr("US")},
		// 						}},
		// 						Dimensions: &armedgeorder.Dimensions{
		// 							Depth: to.Ptr[float64](2),
		// 							Height: to.Ptr[float64](15),
		// 							Length: to.Ptr[float64](50),
		// 							LengthHeightUnit: to.Ptr(armedgeorder.LengthHeightUnitIN),
		// 							Weight: to.Ptr[float64](50),
		// 							WeightUnit: to.Ptr(armedgeorder.WeightMeasurementUnitLBS),
		// 							Width: to.Ptr[float64](5),
		// 						},
		// 						Specifications: []*armedgeorder.Specification{
		// 							{
		// 								Name: to.Ptr("Usable compute"),
		// 								Value: to.Ptr("40 vCPU"),
		// 							},
		// 							{
		// 								Name: to.Ptr("Usable memory"),
		// 								Value: to.Ptr("102 GB"),
		// 							},
		// 							{
		// 								Name: to.Ptr("Usable storage"),
		// 								Value: to.Ptr("4.2 TB"),
		// 						}},
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListOperationsPager added in v0.4.0

NewListOperationsPager - This method gets all the operations that are exposed for customer.

Generated from API version 2021-12-01

  • options - ManagementClientListOperationsOptions contains the optional parameters for the ManagementClient.NewListOperationsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListOperations.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListOperationsPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OperationListResult = armedgeorder.OperationListResult{
		// 	Value: []*armedgeorder.Operation{
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/addresses/read"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("List or get the Addresses"),
		// 				Operation: to.Ptr("List or Get Addresses"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("Addresses"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/addresses/delete"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("Delete the Addresses"),
		// 				Operation: to.Ptr("Delete Addresses"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("Addresses"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/addresses/write"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("Create or update the Addresses"),
		// 				Operation: to.Ptr("Create or Update Addresses"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("Addresses"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/locations/operationResults/read"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("List or get the Operation Results"),
		// 				Operation: to.Ptr("List or Get Operation Results"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("Operation Results"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/operations/read"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("List or get the Operations"),
		// 				Operation: to.Ptr("List or Get Operations"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("Operations"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/locations/orders/read"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("List or get the Order"),
		// 				Operation: to.Ptr("List or Get Order"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("Order"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/orders/read"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("List or get the Order"),
		// 				Operation: to.Ptr("List or Get Order"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("Order"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/orderItems/cancel/action"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("Cancels an OrderItem in progress."),
		// 				Operation: to.Ptr("Cancel OrderItem"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("OrderItem"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/orderItems/return/action"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("Return an OrderItem."),
		// 				Operation: to.Ptr("Return OrderItem"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("OrderItem"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/orderItems/read"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("List or get the OrderItem"),
		// 				Operation: to.Ptr("List or Get OrderItem"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("OrderItem"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/orderItems/delete"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("Delete the OrderItem"),
		// 				Operation: to.Ptr("Delete OrderItem"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("OrderItem"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/orderItems/write"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("Create or update the OrderItem"),
		// 				Operation: to.Ptr("Create or Update OrderItem"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("OrderItem"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/productFamiliesMetadata/action"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("This method lists or gets the product families metadata."),
		// 				Operation: to.Ptr("List or Get product families metadata"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("ArmApiRes_Microsoft.EdgeOrder"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/listProductFamilies/read"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("This method returns list of product families."),
		// 				Operation: to.Ptr("List Product Families"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("ArmApiRes_Microsoft.EdgeOrder"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.EdgeOrder/listConfigurations/action"),
		// 			Display: &armedgeorder.OperationDisplay{
		// 				Description: to.Ptr("This method returns list of product configurations."),
		// 				Operation: to.Ptr("List Product Configurations"),
		// 				Provider: to.Ptr("Edge Ordering"),
		// 				Resource: to.Ptr("ArmApiRes_Microsoft.EdgeOrder"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 			Origin: to.Ptr(armedgeorder.OriginUser),
		// 	}},
		// }
	}
}
Output:

func (*ManagementClient) NewListOrderAtResourceGroupLevelPager added in v0.4.0

NewListOrderAtResourceGroupLevelPager - Lists order at resource group level.

Generated from API version 2021-12-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ManagementClientListOrderAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.NewListOrderAtResourceGroupLevelPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListOrderAtResourceGroupLevel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListOrderAtResourceGroupLevelPager("YourResourceGroupName", &armedgeorder.ManagementClientListOrderAtResourceGroupLevelOptions{SkipToken: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OrderResourceList = armedgeorder.OrderResourceList{
		// 	Value: []*armedgeorder.OrderResource{
		// 		{
		// 			Name: to.Ptr("TestOrderItemName1"),
		// 			Type: to.Ptr("Microsoft.EdgeOrder/orders"),
		// 			ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName1"),
		// 			Properties: &armedgeorder.OrderProperties{
		// 				CurrentStage: &armedgeorder.StageDetails{
		// 					StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 					StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:46.943Z"); return t}()),
		// 				},
		// 				OrderItemIDs: []*string{
		// 					to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName1")},
		// 					OrderStageHistory: []*armedgeorder.StageDetails{
		// 						{
		// 							StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 							StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 							StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:46.943Z"); return t}()),
		// 						},
		// 						{
		// 							StageName: to.Ptr(armedgeorder.StageNameInReview),
		// 							StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 					}},
		// 				},
		// 				SystemData: &armedgeorder.SystemData{
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("TestOrderItemName2"),
		// 				Type: to.Ptr("Microsoft.EdgeOrder/orders"),
		// 				ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2"),
		// 				Properties: &armedgeorder.OrderProperties{
		// 					CurrentStage: &armedgeorder.StageDetails{
		// 						StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 						StageStatus: to.Ptr(armedgeorder.StageStatusInProgress),
		// 						StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:28:46.524Z"); return t}()),
		// 					},
		// 					OrderItemIDs: []*string{
		// 						to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName2")},
		// 						OrderStageHistory: []*armedgeorder.StageDetails{
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameInReview),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 						}},
		// 					},
		// 					SystemData: &armedgeorder.SystemData{
		// 						CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 						LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListOrderAtSubscriptionLevelPager added in v0.4.0

NewListOrderAtSubscriptionLevelPager - Lists order at subscription level.

Generated from API version 2021-12-01

  • options - ManagementClientListOrderAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.NewListOrderAtSubscriptionLevelPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListOrderAtSubscriptionLevel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListOrderAtSubscriptionLevelPager(&armedgeorder.ManagementClientListOrderAtSubscriptionLevelOptions{SkipToken: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OrderResourceList = armedgeorder.OrderResourceList{
		// 	Value: []*armedgeorder.OrderResource{
		// 		{
		// 			Name: to.Ptr("TestOrderItemName1"),
		// 			Type: to.Ptr("Microsoft.EdgeOrder/orders"),
		// 			ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName1"),
		// 			Properties: &armedgeorder.OrderProperties{
		// 				CurrentStage: &armedgeorder.StageDetails{
		// 					StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 					StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:46.943Z"); return t}()),
		// 				},
		// 				OrderItemIDs: []*string{
		// 					to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName1")},
		// 					OrderStageHistory: []*armedgeorder.StageDetails{
		// 						{
		// 							StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 							StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 							StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:46.943Z"); return t}()),
		// 						},
		// 						{
		// 							StageName: to.Ptr(armedgeorder.StageNameInReview),
		// 							StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 					}},
		// 				},
		// 				SystemData: &armedgeorder.SystemData{
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("TestOrderItemName2"),
		// 				Type: to.Ptr("Microsoft.EdgeOrder/orders"),
		// 				ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2"),
		// 				Properties: &armedgeorder.OrderProperties{
		// 					CurrentStage: &armedgeorder.StageDetails{
		// 						StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 						StageStatus: to.Ptr(armedgeorder.StageStatusInProgress),
		// 						StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:28:46.524Z"); return t}()),
		// 					},
		// 					OrderItemIDs: []*string{
		// 						to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName2")},
		// 						OrderStageHistory: []*armedgeorder.StageDetails{
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameInReview),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 						}},
		// 					},
		// 					SystemData: &armedgeorder.SystemData{
		// 						CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 						LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListOrderItemsAtResourceGroupLevelPager added in v0.4.0

NewListOrderItemsAtResourceGroupLevelPager - Lists order item at resource group level.

Generated from API version 2021-12-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ManagementClientListOrderItemsAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.NewListOrderItemsAtResourceGroupLevelPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListOrderItemsAtResourceGroupLevel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListOrderItemsAtResourceGroupLevelPager("YourResourceGroupName", &armedgeorder.ManagementClientListOrderItemsAtResourceGroupLevelOptions{Filter: nil,
		Expand:    nil,
		SkipToken: nil,
	})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OrderItemResourceList = armedgeorder.OrderItemResourceList{
		// 	Value: []*armedgeorder.OrderItemResource{
		// 		{
		// 			Name: to.Ptr("TestOrderItemName1"),
		// 			Type: to.Ptr("Microsoft.EdgeOrder/orderItems"),
		// 			ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 			},
		// 			Properties: &armedgeorder.OrderItemProperties{
		// 				AddressDetails: &armedgeorder.AddressDetails{
		// 					ForwardAddress: &armedgeorder.AddressProperties{
		// 						AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 						ContactDetails: &armedgeorder.ContactDetails{
		// 							ContactName: to.Ptr("XXXX XXXX"),
		// 							EmailList: []*string{
		// 								to.Ptr("xxxx@xxxx.xxx")},
		// 								Phone: to.Ptr("0000000000"),
		// 								PhoneExtension: to.Ptr(""),
		// 							},
		// 							ShippingAddress: &armedgeorder.ShippingAddress{
		// 								AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 								City: to.Ptr("San Francisco"),
		// 								CompanyName: to.Ptr("Microsoft"),
		// 								Country: to.Ptr("US"),
		// 								PostalCode: to.Ptr("94107"),
		// 								StateOrProvince: to.Ptr("CA"),
		// 								StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 								StreetAddress2: to.Ptr("UNIT 1"),
		// 							},
		// 						},
		// 					},
		// 					OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName1"),
		// 					OrderItemDetails: &armedgeorder.OrderItemDetails{
		// 						CancellationStatus: to.Ptr(armedgeorder.OrderItemCancellationEnumNotCancellable),
		// 						CurrentStage: &armedgeorder.StageDetails{
		// 							StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 							StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 							StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:35:00.357Z"); return t}()),
		// 						},
		// 						DeletionStatus: to.Ptr(armedgeorder.ActionStatusEnumNotAllowed),
		// 						ManagementRpDetailsList: []*armedgeorder.ResourceProviderDetails{
		// 							{
		// 								ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
		// 						}},
		// 						NotificationEmailList: []*string{
		// 						},
		// 						OrderItemStageHistory: []*armedgeorder.StageDetails{
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 								StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:54.342Z"); return t}()),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 								StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:35:00.357Z"); return t}()),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameReadyToShip),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameShipped),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameDelivered),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameInUse),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 						}},
		// 						OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
		// 						Preferences: &armedgeorder.Preferences{
		// 							TransportPreferences: &armedgeorder.TransportPreferences{
		// 								PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesMicrosoftManaged),
		// 							},
		// 						},
		// 						ProductDetails: &armedgeorder.ProductDetails{
		// 							Count: to.Ptr[int32](0),
		// 							DisplayInfo: &armedgeorder.DisplayInfo{
		// 								ConfigurationDisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
		// 								ProductFamilyDisplayName: to.Ptr("Azure Stack Edge"),
		// 							},
		// 							HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 								ConfigurationName: to.Ptr("edgep_base"),
		// 								ProductFamilyName: to.Ptr("azurestackedge"),
		// 								ProductLineName: to.Ptr("azurestackedge"),
		// 								ProductName: to.Ptr("azurestackedgegpu"),
		// 							},
		// 							ProductDoubleEncryptionStatus: to.Ptr(armedgeorder.DoubleEncryptionStatusDisabled),
		// 						},
		// 						ReturnStatus: to.Ptr(armedgeorder.OrderItemReturnEnumNotReturnable),
		// 					},
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:10.282Z"); return t}()),
		// 				},
		// 				SystemData: &armedgeorder.SystemData{
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("TestOrderItemName2"),
		// 				Type: to.Ptr("Microsoft.EdgeOrder/orderItems"),
		// 				ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName2"),
		// 				Location: to.Ptr("eastus"),
		// 				Tags: map[string]*string{
		// 				},
		// 				Properties: &armedgeorder.OrderItemProperties{
		// 					AddressDetails: &armedgeorder.AddressDetails{
		// 						ForwardAddress: &armedgeorder.AddressProperties{
		// 							AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 							ContactDetails: &armedgeorder.ContactDetails{
		// 								ContactName: to.Ptr("XXXX XXXX"),
		// 								EmailList: []*string{
		// 									to.Ptr("xxxx@xxxx.xxx")},
		// 									Phone: to.Ptr("0000000000"),
		// 									PhoneExtension: to.Ptr(""),
		// 								},
		// 								ShippingAddress: &armedgeorder.ShippingAddress{
		// 									AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 									City: to.Ptr("San Francisco"),
		// 									CompanyName: to.Ptr("Microsoft"),
		// 									Country: to.Ptr("US"),
		// 									PostalCode: to.Ptr("94107"),
		// 									StateOrProvince: to.Ptr("CA"),
		// 									StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 									StreetAddress2: to.Ptr("UNIT 1"),
		// 								},
		// 							},
		// 						},
		// 						OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2"),
		// 						OrderItemDetails: &armedgeorder.OrderItemDetails{
		// 							CancellationStatus: to.Ptr(armedgeorder.OrderItemCancellationEnumNotCancellable),
		// 							CurrentStage: &armedgeorder.StageDetails{
		// 								StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 								StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:37:29.989Z"); return t}()),
		// 							},
		// 							DeletionStatus: to.Ptr(armedgeorder.ActionStatusEnumNotAllowed),
		// 							ManagementRpDetailsList: []*armedgeorder.ResourceProviderDetails{
		// 								{
		// 									ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
		// 							}},
		// 							NotificationEmailList: []*string{
		// 							},
		// 							OrderItemStageHistory: []*armedgeorder.StageDetails{
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 									StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:29:04.970Z"); return t}()),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 									StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:37:29.989Z"); return t}()),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameReadyToShip),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameShipped),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameDelivered),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameInUse),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							}},
		// 							OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
		// 							Preferences: &armedgeorder.Preferences{
		// 								TransportPreferences: &armedgeorder.TransportPreferences{
		// 									PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesMicrosoftManaged),
		// 								},
		// 							},
		// 							ProductDetails: &armedgeorder.ProductDetails{
		// 								Count: to.Ptr[int32](0),
		// 								DisplayInfo: &armedgeorder.DisplayInfo{
		// 									ConfigurationDisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
		// 									ProductFamilyDisplayName: to.Ptr("Azure Stack Edge"),
		// 								},
		// 								HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 									ConfigurationName: to.Ptr("edgep_base"),
		// 									ProductFamilyName: to.Ptr("azurestackedge"),
		// 									ProductLineName: to.Ptr("azurestackedge"),
		// 									ProductName: to.Ptr("azurestackedgegpu"),
		// 								},
		// 								ProductDoubleEncryptionStatus: to.Ptr(armedgeorder.DoubleEncryptionStatusDisabled),
		// 							},
		// 							ReturnStatus: to.Ptr(armedgeorder.OrderItemReturnEnumNotReturnable),
		// 						},
		// 						StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:28:27.582Z"); return t}()),
		// 					},
		// 					SystemData: &armedgeorder.SystemData{
		// 						CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 						LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListOrderItemsAtSubscriptionLevelPager added in v0.4.0

NewListOrderItemsAtSubscriptionLevelPager - Lists order item at subscription level.

Generated from API version 2021-12-01

  • options - ManagementClientListOrderItemsAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.NewListOrderItemsAtSubscriptionLevelPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListOrderItemsAtSubscriptionLevel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListOrderItemsAtSubscriptionLevelPager(&armedgeorder.ManagementClientListOrderItemsAtSubscriptionLevelOptions{Filter: nil,
		Expand:    nil,
		SkipToken: nil,
	})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OrderItemResourceList = armedgeorder.OrderItemResourceList{
		// 	Value: []*armedgeorder.OrderItemResource{
		// 		{
		// 			Name: to.Ptr("TestOrderItemName1"),
		// 			Type: to.Ptr("Microsoft.EdgeOrder/orderItems"),
		// 			ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 			},
		// 			Properties: &armedgeorder.OrderItemProperties{
		// 				AddressDetails: &armedgeorder.AddressDetails{
		// 					ForwardAddress: &armedgeorder.AddressProperties{
		// 						AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 						ContactDetails: &armedgeorder.ContactDetails{
		// 							ContactName: to.Ptr("XXXX XXXX"),
		// 							EmailList: []*string{
		// 								to.Ptr("xxxx@xxxx.xxx")},
		// 								Phone: to.Ptr("0000000000"),
		// 								PhoneExtension: to.Ptr(""),
		// 							},
		// 							ShippingAddress: &armedgeorder.ShippingAddress{
		// 								AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 								City: to.Ptr("San Francisco"),
		// 								CompanyName: to.Ptr("Microsoft"),
		// 								Country: to.Ptr("US"),
		// 								PostalCode: to.Ptr("94107"),
		// 								StateOrProvince: to.Ptr("CA"),
		// 								StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 								StreetAddress2: to.Ptr("UNIT 1"),
		// 							},
		// 						},
		// 					},
		// 					OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName1"),
		// 					OrderItemDetails: &armedgeorder.OrderItemDetails{
		// 						CancellationStatus: to.Ptr(armedgeorder.OrderItemCancellationEnumNotCancellable),
		// 						CurrentStage: &armedgeorder.StageDetails{
		// 							StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 							StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 							StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:35:00.357Z"); return t}()),
		// 						},
		// 						DeletionStatus: to.Ptr(armedgeorder.ActionStatusEnumNotAllowed),
		// 						ManagementRpDetailsList: []*armedgeorder.ResourceProviderDetails{
		// 							{
		// 								ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
		// 						}},
		// 						NotificationEmailList: []*string{
		// 						},
		// 						OrderItemStageHistory: []*armedgeorder.StageDetails{
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 								StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:54.342Z"); return t}()),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 								StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:35:00.357Z"); return t}()),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameReadyToShip),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameShipped),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameDelivered),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							},
		// 							{
		// 								StageName: to.Ptr(armedgeorder.StageNameInUse),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 						}},
		// 						OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
		// 						Preferences: &armedgeorder.Preferences{
		// 							TransportPreferences: &armedgeorder.TransportPreferences{
		// 								PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesMicrosoftManaged),
		// 							},
		// 						},
		// 						ProductDetails: &armedgeorder.ProductDetails{
		// 							Count: to.Ptr[int32](0),
		// 							DisplayInfo: &armedgeorder.DisplayInfo{
		// 								ConfigurationDisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
		// 								ProductFamilyDisplayName: to.Ptr("Azure Stack Edge"),
		// 							},
		// 							HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 								ConfigurationName: to.Ptr("edgep_base"),
		// 								ProductFamilyName: to.Ptr("azurestackedge"),
		// 								ProductLineName: to.Ptr("azurestackedge"),
		// 								ProductName: to.Ptr("azurestackedgegpu"),
		// 							},
		// 							ProductDoubleEncryptionStatus: to.Ptr(armedgeorder.DoubleEncryptionStatusDisabled),
		// 						},
		// 						ReturnStatus: to.Ptr(armedgeorder.OrderItemReturnEnumNotReturnable),
		// 					},
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:25:10.282Z"); return t}()),
		// 				},
		// 				SystemData: &armedgeorder.SystemData{
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("TestOrderItemName2"),
		// 				Type: to.Ptr("Microsoft.EdgeOrder/orderItems"),
		// 				ID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName2"),
		// 				Location: to.Ptr("eastus"),
		// 				Tags: map[string]*string{
		// 				},
		// 				Properties: &armedgeorder.OrderItemProperties{
		// 					AddressDetails: &armedgeorder.AddressDetails{
		// 						ForwardAddress: &armedgeorder.AddressProperties{
		// 							AddressValidationStatus: to.Ptr(armedgeorder.AddressValidationStatusValid),
		// 							ContactDetails: &armedgeorder.ContactDetails{
		// 								ContactName: to.Ptr("XXXX XXXX"),
		// 								EmailList: []*string{
		// 									to.Ptr("xxxx@xxxx.xxx")},
		// 									Phone: to.Ptr("0000000000"),
		// 									PhoneExtension: to.Ptr(""),
		// 								},
		// 								ShippingAddress: &armedgeorder.ShippingAddress{
		// 									AddressType: to.Ptr(armedgeorder.AddressTypeNone),
		// 									City: to.Ptr("San Francisco"),
		// 									CompanyName: to.Ptr("Microsoft"),
		// 									Country: to.Ptr("US"),
		// 									PostalCode: to.Ptr("94107"),
		// 									StateOrProvince: to.Ptr("CA"),
		// 									StreetAddress1: to.Ptr("16 TOWNSEND ST"),
		// 									StreetAddress2: to.Ptr("UNIT 1"),
		// 								},
		// 							},
		// 						},
		// 						OrderID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName2"),
		// 						OrderItemDetails: &armedgeorder.OrderItemDetails{
		// 							CancellationStatus: to.Ptr(armedgeorder.OrderItemCancellationEnumNotCancellable),
		// 							CurrentStage: &armedgeorder.StageDetails{
		// 								StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 								StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 								StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:37:29.989Z"); return t}()),
		// 							},
		// 							DeletionStatus: to.Ptr(armedgeorder.ActionStatusEnumNotAllowed),
		// 							ManagementRpDetailsList: []*armedgeorder.ResourceProviderDetails{
		// 								{
		// 									ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
		// 							}},
		// 							NotificationEmailList: []*string{
		// 							},
		// 							OrderItemStageHistory: []*armedgeorder.StageDetails{
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNamePlaced),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 									StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:29:04.970Z"); return t}()),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameConfirmed),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusSucceeded),
		// 									StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:37:29.989Z"); return t}()),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameReadyToShip),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameShipped),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameDelivered),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 								},
		// 								{
		// 									StageName: to.Ptr(armedgeorder.StageNameInUse),
		// 									StageStatus: to.Ptr(armedgeorder.StageStatusNone),
		// 							}},
		// 							OrderItemType: to.Ptr(armedgeorder.OrderItemTypePurchase),
		// 							Preferences: &armedgeorder.Preferences{
		// 								TransportPreferences: &armedgeorder.TransportPreferences{
		// 									PreferredShipmentType: to.Ptr(armedgeorder.TransportShipmentTypesMicrosoftManaged),
		// 								},
		// 							},
		// 							ProductDetails: &armedgeorder.ProductDetails{
		// 								Count: to.Ptr[int32](0),
		// 								DisplayInfo: &armedgeorder.DisplayInfo{
		// 									ConfigurationDisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
		// 									ProductFamilyDisplayName: to.Ptr("Azure Stack Edge"),
		// 								},
		// 								HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 									ConfigurationName: to.Ptr("edgep_base"),
		// 									ProductFamilyName: to.Ptr("azurestackedge"),
		// 									ProductLineName: to.Ptr("azurestackedge"),
		// 									ProductName: to.Ptr("azurestackedgegpu"),
		// 								},
		// 								ProductDoubleEncryptionStatus: to.Ptr(armedgeorder.DoubleEncryptionStatusDisabled),
		// 							},
		// 							ReturnStatus: to.Ptr(armedgeorder.OrderItemReturnEnumNotReturnable),
		// 						},
		// 						StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-04T05:28:27.582Z"); return t}()),
		// 					},
		// 					SystemData: &armedgeorder.SystemData{
		// 						CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 						LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T00:00:00.000Z"); return t}()),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListProductFamiliesMetadataPager added in v0.4.0

NewListProductFamiliesMetadataPager - This method provides the list of product families metadata for the given subscription.

Generated from API version 2021-12-01

  • options - ManagementClientListProductFamiliesMetadataOptions contains the optional parameters for the ManagementClient.NewListProductFamiliesMetadataPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListProductFamiliesMetadata.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListProductFamiliesMetadataPager(&armedgeorder.ManagementClientListProductFamiliesMetadataOptions{SkipToken: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ProductFamiliesMetadata = armedgeorder.ProductFamiliesMetadata{
		// 	Value: []*armedgeorder.ProductFamiliesMetadataDetails{
		// 		{
		// 			Properties: &armedgeorder.ProductFamilyProperties{
		// 				Description: &armedgeorder.Description{
		// 					Attributes: []*string{
		// 					},
		// 					DescriptionType: to.Ptr(armedgeorder.DescriptionTypeBase),
		// 					Keywords: []*string{
		// 					},
		// 					Links: []*armedgeorder.Link{
		// 					},
		// 					ShortDescription: to.Ptr("Azure managed physical edge compute device"),
		// 				},
		// 				AvailabilityInformation: &armedgeorder.AvailabilityInformation{
		// 					AvailabilityStage: to.Ptr(armedgeorder.AvailabilityStageAvailable),
		// 					DisabledReason: to.Ptr(armedgeorder.DisabledReasonNone),
		// 				},
		// 				DisplayName: to.Ptr("Azure Stack Edge"),
		// 				HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 					ConfigurationName: to.Ptr(""),
		// 					ProductFamilyName: to.Ptr("azurestackedge"),
		// 					ProductLineName: to.Ptr(""),
		// 					ProductName: to.Ptr(""),
		// 				},
		// 				ImageInformation: []*armedgeorder.ImageInformation{
		// 				},
		// 				FilterableProperties: []*armedgeorder.FilterableProperty{
		// 					{
		// 						Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
		// 						SupportedValues: []*string{
		// 							to.Ptr("US")},
		// 						},
		// 						{
		// 							Type: to.Ptr(armedgeorder.SupportedFilterTypesDoubleEncryptionStatus),
		// 							SupportedValues: []*string{
		// 								to.Ptr("Enabled")},
		// 						}},
		// 						ProductLines: []*armedgeorder.ProductLine{
		// 						},
		// 						ResourceProviderDetails: []*armedgeorder.ResourceProviderDetails{
		// 							{
		// 								ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
		// 						}},
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*ManagementClient) NewListProductFamiliesPager added in v0.4.0

NewListProductFamiliesPager - This method provides the list of product families for the given subscription.

Generated from API version 2021-12-01

  • productFamiliesRequest - Filters for showing the product families.
  • options - ManagementClientListProductFamiliesOptions contains the optional parameters for the ManagementClient.NewListProductFamiliesPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ListProductFamilies.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/edgeorder/armedgeorder"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armedgeorder.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewManagementClient().NewListProductFamiliesPager(armedgeorder.ProductFamiliesRequest{
		FilterableProperties: map[string][]*armedgeorder.FilterableProperty{
			"azurestackedge": {
				{
					Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
					SupportedValues: []*string{
						to.Ptr("US")},
				}},
		},
	}, &armedgeorder.ManagementClientListProductFamiliesOptions{Expand: to.Ptr("configurations"),
		SkipToken: nil,
	})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ProductFamilies = armedgeorder.ProductFamilies{
		// 	Value: []*armedgeorder.ProductFamily{
		// 		{
		// 			Properties: &armedgeorder.ProductFamilyProperties{
		// 				Description: &armedgeorder.Description{
		// 					Attributes: []*string{
		// 					},
		// 					DescriptionType: to.Ptr(armedgeorder.DescriptionTypeBase),
		// 					Keywords: []*string{
		// 					},
		// 					Links: []*armedgeorder.Link{
		// 					},
		// 					ShortDescription: to.Ptr("Azure managed physical edge compute device"),
		// 				},
		// 				AvailabilityInformation: &armedgeorder.AvailabilityInformation{
		// 					AvailabilityStage: to.Ptr(armedgeorder.AvailabilityStageAvailable),
		// 					DisabledReason: to.Ptr(armedgeorder.DisabledReasonNone),
		// 				},
		// 				DisplayName: to.Ptr("Azure Stack Edge"),
		// 				HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 					ConfigurationName: to.Ptr(""),
		// 					ProductFamilyName: to.Ptr("azurestackedge"),
		// 					ProductLineName: to.Ptr(""),
		// 					ProductName: to.Ptr(""),
		// 				},
		// 				ImageInformation: []*armedgeorder.ImageInformation{
		// 				},
		// 				FilterableProperties: []*armedgeorder.FilterableProperty{
		// 					{
		// 						Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
		// 						SupportedValues: []*string{
		// 							to.Ptr("US")},
		// 						},
		// 						{
		// 							Type: to.Ptr(armedgeorder.SupportedFilterTypesDoubleEncryptionStatus),
		// 							SupportedValues: []*string{
		// 								to.Ptr("Enabled")},
		// 						}},
		// 						ProductLines: []*armedgeorder.ProductLine{
		// 							{
		// 								Properties: &armedgeorder.ProductLineProperties{
		// 									Description: &armedgeorder.Description{
		// 										Attributes: []*string{
		// 										},
		// 										DescriptionType: to.Ptr(armedgeorder.DescriptionTypeBase),
		// 										Keywords: []*string{
		// 										},
		// 										Links: []*armedgeorder.Link{
		// 										},
		// 									},
		// 									AvailabilityInformation: &armedgeorder.AvailabilityInformation{
		// 										AvailabilityStage: to.Ptr(armedgeorder.AvailabilityStageAvailable),
		// 										DisabledReason: to.Ptr(armedgeorder.DisabledReasonNone),
		// 									},
		// 									DisplayName: to.Ptr("Azure Stack Edge"),
		// 									HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 										ConfigurationName: to.Ptr(""),
		// 										ProductFamilyName: to.Ptr("azurestackedge"),
		// 										ProductLineName: to.Ptr("azurestackedge"),
		// 										ProductName: to.Ptr(""),
		// 									},
		// 									ImageInformation: []*armedgeorder.ImageInformation{
		// 									},
		// 									FilterableProperties: []*armedgeorder.FilterableProperty{
		// 										{
		// 											Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
		// 											SupportedValues: []*string{
		// 												to.Ptr("US")},
		// 											},
		// 											{
		// 												Type: to.Ptr(armedgeorder.SupportedFilterTypesDoubleEncryptionStatus),
		// 												SupportedValues: []*string{
		// 													to.Ptr("Enabled")},
		// 											}},
		// 											Products: []*armedgeorder.Product{
		// 												{
		// 													Properties: &armedgeorder.ProductProperties{
		// 														Description: &armedgeorder.Description{
		// 															Attributes: []*string{
		// 																to.Ptr("1U rack mount device with network data transfer capabilities"),
		// 																to.Ptr("Hardware accelerated ML using Nvidia T4 GPU"),
		// 																to.Ptr("Azure Private Edge Zones enabled")},
		// 																DescriptionType: to.Ptr(armedgeorder.DescriptionTypeBase),
		// 																Keywords: []*string{
		// 																	to.Ptr("GPU")},
		// 																	Links: []*armedgeorder.Link{
		// 																		{
		// 																			LinkType: to.Ptr(armedgeorder.LinkTypeSpecification),
		// 																			LinkURL: to.Ptr("https://aka.ms/edgeHWcenter-asepro-devicespec"),
		// 																		},
		// 																		{
		// 																			LinkType: to.Ptr(armedgeorder.LinkTypeGeneric),
		// 																			LinkURL: to.Ptr("https://aka.ms/ase-gpu-billing"),
		// 																		},
		// 																		{
		// 																			LinkType: to.Ptr(armedgeorder.LinkTypeTermsAndConditions),
		// 																			LinkURL: to.Ptr("https://aka.ms/ase-gpu-product-terms"),
		// 																		},
		// 																		{
		// 																			LinkType: to.Ptr(armedgeorder.LinkTypeKnowMore),
		// 																			LinkURL: to.Ptr("https://aka.ms/edgeHWcenter-asepro-documentation"),
		// 																	}},
		// 																	LongDescription: to.Ptr("Azure Stack Edge Pro is an AI-enabled edge computing device with network data transfer capabilities. The device is powered with NVIDIA T4 GPUs to provide accelerated AI inferencing at the edge. You can choose from the following configurations based upon your business need"),
		// 																	ShortDescription: to.Ptr("Azure managed physical edge compute device"),
		// 																},
		// 																AvailabilityInformation: &armedgeorder.AvailabilityInformation{
		// 																	AvailabilityStage: to.Ptr(armedgeorder.AvailabilityStageAvailable),
		// 																	DisabledReason: to.Ptr(armedgeorder.DisabledReasonNone),
		// 																},
		// 																DisplayName: to.Ptr("Azure Stack Edge Pro - GPU"),
		// 																HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 																	ConfigurationName: to.Ptr(""),
		// 																	ProductFamilyName: to.Ptr("azurestackedge"),
		// 																	ProductLineName: to.Ptr("azurestackedge"),
		// 																	ProductName: to.Ptr("azurestackedgegpu"),
		// 																},
		// 																ImageInformation: []*armedgeorder.ImageInformation{
		// 																},
		// 																FilterableProperties: []*armedgeorder.FilterableProperty{
		// 																	{
		// 																		Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
		// 																		SupportedValues: []*string{
		// 																			to.Ptr("US")},
		// 																	}},
		// 																	Configurations: []*armedgeorder.Configuration{
		// 																		{
		// 																			Properties: &armedgeorder.ConfigurationProperties{
		// 																				Description: &armedgeorder.Description{
		// 																					Attributes: []*string{
		// 																					},
		// 																					DescriptionType: to.Ptr(armedgeorder.DescriptionTypeBase),
		// 																					Keywords: []*string{
		// 																						to.Ptr("GPU")},
		// 																						Links: []*armedgeorder.Link{
		// 																						},
		// 																						LongDescription: to.Ptr(""),
		// 																						ShortDescription: to.Ptr(""),
		// 																					},
		// 																					AvailabilityInformation: &armedgeorder.AvailabilityInformation{
		// 																						AvailabilityStage: to.Ptr(armedgeorder.AvailabilityStageAvailable),
		// 																						DisabledReason: to.Ptr(armedgeorder.DisabledReasonNone),
		// 																					},
		// 																					CostInformation: &armedgeorder.CostInformation{
		// 																						BillingMeterDetails: []*armedgeorder.BillingMeterDetails{
		// 																						},
		// 																					},
		// 																					DisplayName: to.Ptr("Azure Stack Edge Pro - 1 GPU"),
		// 																					HierarchyInformation: &armedgeorder.HierarchyInformation{
		// 																						ConfigurationName: to.Ptr("edgep_base"),
		// 																						ProductFamilyName: to.Ptr("azurestackedge"),
		// 																						ProductLineName: to.Ptr("azurestackedge"),
		// 																						ProductName: to.Ptr("azurestackedgegpu"),
		// 																					},
		// 																					ImageInformation: []*armedgeorder.ImageInformation{
		// 																					},
		// 																					FilterableProperties: []*armedgeorder.FilterableProperty{
		// 																						{
		// 																							Type: to.Ptr(armedgeorder.SupportedFilterTypesShipToCountries),
		// 																							SupportedValues: []*string{
		// 																								to.Ptr("US")},
		// 																						}},
		// 																						Dimensions: &armedgeorder.Dimensions{
		// 																							Depth: to.Ptr[float64](2),
		// 																							Height: to.Ptr[float64](15),
		// 																							Length: to.Ptr[float64](50),
		// 																							LengthHeightUnit: to.Ptr(armedgeorder.LengthHeightUnitIN),
		// 																							Weight: to.Ptr[float64](50),
		// 																							WeightUnit: to.Ptr(armedgeorder.WeightMeasurementUnitLBS),
		// 																							Width: to.Ptr[float64](5),
		// 																						},
		// 																						Specifications: []*armedgeorder.Specification{
		// 																							{
		// 																								Name: to.Ptr("Usable compute"),
		// 																								Value: to.Ptr("40 vCPU"),
		// 																							},
		// 																							{
		// 																								Name: to.Ptr("Usable memory"),
		// 																								Value: to.Ptr("102 GB"),
		// 																							},
		// 																							{
		// 																								Name: to.Ptr("Usable storage"),
		// 																								Value: to.Ptr("4.2 TB"),
		// 																						}},
		// 																					},
		// 																			}},
		// 																		},
		// 																}},
		// 															},
		// 													}},
		// 													ResourceProviderDetails: []*armedgeorder.ResourceProviderDetails{
		// 														{
		// 															ResourceProviderNamespace: to.Ptr("Microsoft.DataBoxEdge"),
		// 													}},
		// 												},
		// 										}},
		// 									}
	}
}
Output:

type ManagementClientBeginCreateAddressOptions added in v0.2.0

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

ManagementClientBeginCreateAddressOptions contains the optional parameters for the ManagementClient.BeginCreateAddress method.

type ManagementClientBeginCreateOrderItemOptions added in v0.2.0

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

ManagementClientBeginCreateOrderItemOptions contains the optional parameters for the ManagementClient.BeginCreateOrderItem method.

type ManagementClientBeginDeleteAddressByNameOptions added in v0.2.0

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

ManagementClientBeginDeleteAddressByNameOptions contains the optional parameters for the ManagementClient.BeginDeleteAddressByName method.

type ManagementClientBeginDeleteOrderItemByNameOptions added in v0.2.0

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

ManagementClientBeginDeleteOrderItemByNameOptions contains the optional parameters for the ManagementClient.BeginDeleteOrderItemByName method.

type ManagementClientBeginReturnOrderItemOptions added in v0.2.0

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

ManagementClientBeginReturnOrderItemOptions contains the optional parameters for the ManagementClient.BeginReturnOrderItem method.

type ManagementClientBeginUpdateAddressOptions added in v0.2.0

type ManagementClientBeginUpdateAddressOptions struct {
	// Defines the If-Match condition. The patch will be performed only if the ETag of the job on the server matches this value.
	IfMatch *string

	// Resumes the LRO from the provided token.
	ResumeToken string
}

ManagementClientBeginUpdateAddressOptions contains the optional parameters for the ManagementClient.BeginUpdateAddress method.

type ManagementClientBeginUpdateOrderItemOptions added in v0.2.0

type ManagementClientBeginUpdateOrderItemOptions struct {
	// Defines the If-Match condition. The patch will be performed only if the ETag of the order on the server matches this value.
	IfMatch *string

	// Resumes the LRO from the provided token.
	ResumeToken string
}

ManagementClientBeginUpdateOrderItemOptions contains the optional parameters for the ManagementClient.BeginUpdateOrderItem method.

type ManagementClientCancelOrderItemOptions added in v0.2.0

type ManagementClientCancelOrderItemOptions struct {
}

ManagementClientCancelOrderItemOptions contains the optional parameters for the ManagementClient.CancelOrderItem method.

type ManagementClientCancelOrderItemResponse added in v0.2.0

type ManagementClientCancelOrderItemResponse struct {
}

ManagementClientCancelOrderItemResponse contains the response from method ManagementClient.CancelOrderItem.

type ManagementClientCreateAddressResponse added in v0.2.0

type ManagementClientCreateAddressResponse struct {
	// Address Resource.
	AddressResource
}

ManagementClientCreateAddressResponse contains the response from method ManagementClient.BeginCreateAddress.

type ManagementClientCreateOrderItemResponse added in v0.2.0

type ManagementClientCreateOrderItemResponse struct {
	// Represents order item contract
	OrderItemResource
}

ManagementClientCreateOrderItemResponse contains the response from method ManagementClient.BeginCreateOrderItem.

type ManagementClientDeleteAddressByNameResponse added in v0.2.0

type ManagementClientDeleteAddressByNameResponse struct {
}

ManagementClientDeleteAddressByNameResponse contains the response from method ManagementClient.BeginDeleteAddressByName.

type ManagementClientDeleteOrderItemByNameResponse added in v0.2.0

type ManagementClientDeleteOrderItemByNameResponse struct {
}

ManagementClientDeleteOrderItemByNameResponse contains the response from method ManagementClient.BeginDeleteOrderItemByName.

type ManagementClientGetAddressByNameOptions added in v0.2.0

type ManagementClientGetAddressByNameOptions struct {
}

ManagementClientGetAddressByNameOptions contains the optional parameters for the ManagementClient.GetAddressByName method.

type ManagementClientGetAddressByNameResponse added in v0.2.0

type ManagementClientGetAddressByNameResponse struct {
	// Address Resource.
	AddressResource
}

ManagementClientGetAddressByNameResponse contains the response from method ManagementClient.GetAddressByName.

type ManagementClientGetOrderByNameOptions added in v0.2.0

type ManagementClientGetOrderByNameOptions struct {
}

ManagementClientGetOrderByNameOptions contains the optional parameters for the ManagementClient.GetOrderByName method.

type ManagementClientGetOrderByNameResponse added in v0.2.0

type ManagementClientGetOrderByNameResponse struct {
	// Specifies the properties or parameters for an order. Order is a grouping of one or more order items.
	OrderResource
}

ManagementClientGetOrderByNameResponse contains the response from method ManagementClient.GetOrderByName.

type ManagementClientGetOrderItemByNameOptions added in v0.2.0

type ManagementClientGetOrderItemByNameOptions struct {
	// $expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these
	// can be provided as a comma separated list. Device Details for order item
	// provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping
	// details respectively.
	Expand *string
}

ManagementClientGetOrderItemByNameOptions contains the optional parameters for the ManagementClient.GetOrderItemByName method.

type ManagementClientGetOrderItemByNameResponse added in v0.2.0

type ManagementClientGetOrderItemByNameResponse struct {
	// Represents order item contract
	OrderItemResource
}

ManagementClientGetOrderItemByNameResponse contains the response from method ManagementClient.GetOrderItemByName.

type ManagementClientListAddressesAtResourceGroupLevelOptions added in v0.2.0

type ManagementClientListAddressesAtResourceGroupLevelOptions struct {
	// $filter is supported to filter based on shipping address properties. Filter supports only equals operation.
	Filter *string

	// $skipToken is supported on Get list of addresses, which provides the next page in the list of address.
	SkipToken *string
}

ManagementClientListAddressesAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.NewListAddressesAtResourceGroupLevelPager method.

type ManagementClientListAddressesAtResourceGroupLevelResponse added in v0.2.0

type ManagementClientListAddressesAtResourceGroupLevelResponse struct {
	// Address Resource Collection
	AddressResourceList
}

ManagementClientListAddressesAtResourceGroupLevelResponse contains the response from method ManagementClient.NewListAddressesAtResourceGroupLevelPager.

type ManagementClientListAddressesAtSubscriptionLevelOptions added in v0.2.0

type ManagementClientListAddressesAtSubscriptionLevelOptions struct {
	// $filter is supported to filter based on shipping address properties. Filter supports only equals operation.
	Filter *string

	// $skipToken is supported on Get list of addresses, which provides the next page in the list of addresses.
	SkipToken *string
}

ManagementClientListAddressesAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.NewListAddressesAtSubscriptionLevelPager method.

type ManagementClientListAddressesAtSubscriptionLevelResponse added in v0.2.0

type ManagementClientListAddressesAtSubscriptionLevelResponse struct {
	// Address Resource Collection
	AddressResourceList
}

ManagementClientListAddressesAtSubscriptionLevelResponse contains the response from method ManagementClient.NewListAddressesAtSubscriptionLevelPager.

type ManagementClientListConfigurationsOptions added in v0.2.0

type ManagementClientListConfigurationsOptions struct {
	// $skipToken is supported on list of configurations, which provides the next page in the list of configurations.
	SkipToken *string
}

ManagementClientListConfigurationsOptions contains the optional parameters for the ManagementClient.NewListConfigurationsPager method.

type ManagementClientListConfigurationsResponse added in v0.2.0

type ManagementClientListConfigurationsResponse struct {
	// The list of configurations.
	Configurations
}

ManagementClientListConfigurationsResponse contains the response from method ManagementClient.NewListConfigurationsPager.

type ManagementClientListOperationsOptions added in v0.2.0

type ManagementClientListOperationsOptions struct {
}

ManagementClientListOperationsOptions contains the optional parameters for the ManagementClient.NewListOperationsPager method.

type ManagementClientListOperationsResponse added in v0.2.0

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

ManagementClientListOperationsResponse contains the response from method ManagementClient.NewListOperationsPager.

type ManagementClientListOrderAtResourceGroupLevelOptions added in v0.2.0

type ManagementClientListOrderAtResourceGroupLevelOptions struct {
	// $skipToken is supported on Get list of order, which provides the next page in the list of order.
	SkipToken *string
}

ManagementClientListOrderAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.NewListOrderAtResourceGroupLevelPager method.

type ManagementClientListOrderAtResourceGroupLevelResponse added in v0.2.0

type ManagementClientListOrderAtResourceGroupLevelResponse struct {
	// List of orders.
	OrderResourceList
}

ManagementClientListOrderAtResourceGroupLevelResponse contains the response from method ManagementClient.NewListOrderAtResourceGroupLevelPager.

type ManagementClientListOrderAtSubscriptionLevelOptions added in v0.2.0

type ManagementClientListOrderAtSubscriptionLevelOptions struct {
	// $skipToken is supported on Get list of order, which provides the next page in the list of order.
	SkipToken *string
}

ManagementClientListOrderAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.NewListOrderAtSubscriptionLevelPager method.

type ManagementClientListOrderAtSubscriptionLevelResponse added in v0.2.0

type ManagementClientListOrderAtSubscriptionLevelResponse struct {
	// List of orders.
	OrderResourceList
}

ManagementClientListOrderAtSubscriptionLevelResponse contains the response from method ManagementClient.NewListOrderAtSubscriptionLevelPager.

type ManagementClientListOrderItemsAtResourceGroupLevelOptions added in v0.2.0

type ManagementClientListOrderItemsAtResourceGroupLevelOptions struct {
	// $expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these
	// can be provided as a comma separated list. Device Details for order item
	// provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping
	// details respectively.
	Expand *string

	// $filter is supported to filter based on order id. Filter supports only equals operation.
	Filter *string

	// $skipToken is supported on Get list of order items, which provides the next page in the list of order items.
	SkipToken *string
}

ManagementClientListOrderItemsAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.NewListOrderItemsAtResourceGroupLevelPager method.

type ManagementClientListOrderItemsAtResourceGroupLevelResponse added in v0.2.0

type ManagementClientListOrderItemsAtResourceGroupLevelResponse struct {
	// List of orderItems.
	OrderItemResourceList
}

ManagementClientListOrderItemsAtResourceGroupLevelResponse contains the response from method ManagementClient.NewListOrderItemsAtResourceGroupLevelPager.

type ManagementClientListOrderItemsAtSubscriptionLevelOptions added in v0.2.0

type ManagementClientListOrderItemsAtSubscriptionLevelOptions struct {
	// $expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these
	// can be provided as a comma separated list. Device Details for order item
	// provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping
	// details respectively.
	Expand *string

	// $filter is supported to filter based on order id. Filter supports only equals operation.
	Filter *string

	// $skipToken is supported on Get list of order items, which provides the next page in the list of order items.
	SkipToken *string
}

ManagementClientListOrderItemsAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.NewListOrderItemsAtSubscriptionLevelPager method.

type ManagementClientListOrderItemsAtSubscriptionLevelResponse added in v0.2.0

type ManagementClientListOrderItemsAtSubscriptionLevelResponse struct {
	// List of orderItems.
	OrderItemResourceList
}

ManagementClientListOrderItemsAtSubscriptionLevelResponse contains the response from method ManagementClient.NewListOrderItemsAtSubscriptionLevelPager.

type ManagementClientListProductFamiliesMetadataOptions added in v0.2.0

type ManagementClientListProductFamiliesMetadataOptions struct {
	// $skipToken is supported on list of product families metadata, which provides the next page in the list of product families
	// metadata.
	SkipToken *string
}

ManagementClientListProductFamiliesMetadataOptions contains the optional parameters for the ManagementClient.NewListProductFamiliesMetadataPager method.

type ManagementClientListProductFamiliesMetadataResponse added in v0.2.0

type ManagementClientListProductFamiliesMetadataResponse struct {
	// Holds details about product family metadata
	ProductFamiliesMetadata
}

ManagementClientListProductFamiliesMetadataResponse contains the response from method ManagementClient.NewListProductFamiliesMetadataPager.

type ManagementClientListProductFamiliesOptions added in v0.2.0

type ManagementClientListProductFamiliesOptions struct {
	// $expand is supported on configurations parameter for product, which provides details on the configurations for the product.
	Expand *string

	// $skipToken is supported on list of product families, which provides the next page in the list of product families.
	SkipToken *string
}

ManagementClientListProductFamiliesOptions contains the optional parameters for the ManagementClient.NewListProductFamiliesPager method.

type ManagementClientListProductFamiliesResponse added in v0.2.0

type ManagementClientListProductFamiliesResponse struct {
	// The list of product families.
	ProductFamilies
}

ManagementClientListProductFamiliesResponse contains the response from method ManagementClient.NewListProductFamiliesPager.

type ManagementClientReturnOrderItemResponse added in v0.2.0

type ManagementClientReturnOrderItemResponse struct {
}

ManagementClientReturnOrderItemResponse contains the response from method ManagementClient.BeginReturnOrderItem.

type ManagementClientUpdateAddressResponse added in v0.2.0

type ManagementClientUpdateAddressResponse struct {
	// Address Resource.
	AddressResource
}

ManagementClientUpdateAddressResponse contains the response from method ManagementClient.BeginUpdateAddress.

type ManagementClientUpdateOrderItemResponse added in v0.2.0

type ManagementClientUpdateOrderItemResponse struct {
	// Represents order item contract
	OrderItemResource
}

ManagementClientUpdateOrderItemResponse contains the response from method ManagementClient.BeginUpdateOrderItem.

type ManagementResourcePreferences

type ManagementResourcePreferences struct {
	// Customer preferred Management resource ARM ID
	PreferredManagementResourceID *string
}

ManagementResourcePreferences - Management resource preference to link device

func (ManagementResourcePreferences) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ManagementResourcePreferences.

func (*ManagementResourcePreferences) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ManagementResourcePreferences.

type MeterDetails

type MeterDetails struct {
	// REQUIRED; Represents billing type.
	BillingType *BillingType

	// READ-ONLY; Charging type.
	ChargingType *ChargingType

	// READ-ONLY; Billing unit applicable for Pav2 billing
	Multiplier *float64
}

MeterDetails - Holds details about billing type and its meter guids

func (*MeterDetails) GetMeterDetails

func (m *MeterDetails) GetMeterDetails() *MeterDetails

GetMeterDetails implements the MeterDetailsClassification interface for type MeterDetails.

func (MeterDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type MeterDetails.

func (*MeterDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MeterDetails.

type MeterDetailsClassification

type MeterDetailsClassification interface {
	// GetMeterDetails returns the MeterDetails content of the underlying type.
	GetMeterDetails() *MeterDetails
}

MeterDetailsClassification provides polymorphic access to related types. Call the interface's GetMeterDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MeterDetails, *Pav2MeterDetails, *PurchaseMeterDetails

type MeteringType

type MeteringType string

MeteringType - Represents Metering type (eg one-time or recurrent)

const (
	// MeteringTypeAdhoc - Adhoc billing.
	MeteringTypeAdhoc MeteringType = "Adhoc"
	// MeteringTypeOneTime - One time billing.
	MeteringTypeOneTime MeteringType = "OneTime"
	// MeteringTypeRecurring - Recurring billing.
	MeteringTypeRecurring MeteringType = "Recurring"
)

func PossibleMeteringTypeValues

func PossibleMeteringTypeValues() []MeteringType

PossibleMeteringTypeValues returns the possible values for the MeteringType const type.

type NotificationPreference

type NotificationPreference struct {
	// REQUIRED; Notification is required or not.
	SendNotification *bool

	// REQUIRED; Name of the stage.
	StageName *NotificationStageName
}

NotificationPreference - Notification preference for a job stage.

func (NotificationPreference) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type NotificationPreference.

func (*NotificationPreference) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type NotificationPreference.

type NotificationStageName

type NotificationStageName string

NotificationStageName - Name of the stage.

const (
	// NotificationStageNameDelivered - Notification at order item delivered to customer.
	NotificationStageNameDelivered NotificationStageName = "Delivered"
	// NotificationStageNameShipped - Notification at order item shipped from microsoft datacenter.
	NotificationStageNameShipped NotificationStageName = "Shipped"
)

func PossibleNotificationStageNameValues

func PossibleNotificationStageNameValues() []NotificationStageName

PossibleNotificationStageNameValues returns the possible values for the NotificationStageName const type.

type Operation

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

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

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

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

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

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

func (Operation) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON added in v1.1.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

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

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

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

OperationDisplay - Localized display information for this particular operation.

func (OperationDisplay) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON added in v1.1.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

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

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

func (OperationListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OrderItemCancellationEnum

type OrderItemCancellationEnum string

OrderItemCancellationEnum - Describes whether the order item is cancellable or not.

const (
	// OrderItemCancellationEnumCancellable - Order item can be cancelled without fee.
	OrderItemCancellationEnumCancellable OrderItemCancellationEnum = "Cancellable"
	// OrderItemCancellationEnumCancellableWithFee - Order item can be cancelled with fee.
	OrderItemCancellationEnumCancellableWithFee OrderItemCancellationEnum = "CancellableWithFee"
	// OrderItemCancellationEnumNotCancellable - Order item not cancellable.
	OrderItemCancellationEnumNotCancellable OrderItemCancellationEnum = "NotCancellable"
)

func PossibleOrderItemCancellationEnumValues

func PossibleOrderItemCancellationEnumValues() []OrderItemCancellationEnum

PossibleOrderItemCancellationEnumValues returns the possible values for the OrderItemCancellationEnum const type.

type OrderItemDetails

type OrderItemDetails struct {
	// REQUIRED; Order item type.
	OrderItemType *OrderItemType

	// REQUIRED; Unique identifier for configuration.
	ProductDetails *ProductDetails

	// Additional notification email list
	NotificationEmailList []*string

	// Customer notification Preferences
	Preferences *Preferences

	// READ-ONLY; Cancellation reason.
	CancellationReason *string

	// READ-ONLY; Describes whether the order item is cancellable or not.
	CancellationStatus *OrderItemCancellationEnum

	// READ-ONLY; Current Order item Status
	CurrentStage *StageDetails

	// READ-ONLY; Describes whether the order item is deletable or not.
	DeletionStatus *ActionStatusEnum

	// READ-ONLY; Top level error for the job.
	Error *ErrorDetail

	// READ-ONLY; Forward Package Shipping details
	ForwardShippingDetails *ForwardShippingDetails

	// READ-ONLY; Parent RP details - this returns only the first or default parent RP from the entire list
	ManagementRpDetails *ResourceProviderDetails

	// READ-ONLY; List of parent RP details supported for configuration.
	ManagementRpDetailsList []*ResourceProviderDetails

	// READ-ONLY; Order item status history
	OrderItemStageHistory []*StageDetails

	// READ-ONLY; Return reason.
	ReturnReason *string

	// READ-ONLY; Describes whether the order item is returnable or not.
	ReturnStatus *OrderItemReturnEnum

	// READ-ONLY; Reverse Package Shipping details
	ReverseShippingDetails *ReverseShippingDetails
}

OrderItemDetails - Order item details

func (OrderItemDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderItemDetails.

func (*OrderItemDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderItemDetails.

type OrderItemProperties

type OrderItemProperties struct {
	// REQUIRED; Represents shipping and return address for order item
	AddressDetails *AddressDetails

	// REQUIRED; Id of the order to which order item belongs to
	OrderID *string

	// REQUIRED; Represents order item details.
	OrderItemDetails *OrderItemDetails

	// READ-ONLY; Start time of order item
	StartTime *time.Time
}

OrderItemProperties - Represents order item details.

func (OrderItemProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderItemProperties.

func (*OrderItemProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderItemProperties.

type OrderItemResource

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

	// REQUIRED; Order item properties
	Properties *OrderItemProperties

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

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

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

	// READ-ONLY; Represents resource creation and update time
	SystemData *SystemData

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

OrderItemResource - Represents order item contract

func (OrderItemResource) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderItemResource.

func (*OrderItemResource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderItemResource.

type OrderItemResourceList

type OrderItemResourceList struct {
	// Link for the next set of order item resources.
	NextLink *string

	// READ-ONLY; List of order item resources.
	Value []*OrderItemResource
}

OrderItemResourceList - List of orderItems.

func (OrderItemResourceList) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderItemResourceList.

func (*OrderItemResourceList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderItemResourceList.

type OrderItemReturnEnum

type OrderItemReturnEnum string

OrderItemReturnEnum - Describes whether the order item is returnable or not.

const (
	// OrderItemReturnEnumNotReturnable - Order item not returnable.
	OrderItemReturnEnumNotReturnable OrderItemReturnEnum = "NotReturnable"
	// OrderItemReturnEnumReturnable - Order item can be returned without fee.
	OrderItemReturnEnumReturnable OrderItemReturnEnum = "Returnable"
	// OrderItemReturnEnumReturnableWithFee - Order item can be returned with fee.
	OrderItemReturnEnumReturnableWithFee OrderItemReturnEnum = "ReturnableWithFee"
)

func PossibleOrderItemReturnEnumValues

func PossibleOrderItemReturnEnumValues() []OrderItemReturnEnum

PossibleOrderItemReturnEnumValues returns the possible values for the OrderItemReturnEnum const type.

type OrderItemType

type OrderItemType string

OrderItemType - Order item type.

const (
	// OrderItemTypePurchase - Purchase OrderItem.
	OrderItemTypePurchase OrderItemType = "Purchase"
	// OrderItemTypeRental - Rental OrderItem.
	OrderItemTypeRental OrderItemType = "Rental"
)

func PossibleOrderItemTypeValues

func PossibleOrderItemTypeValues() []OrderItemType

PossibleOrderItemTypeValues returns the possible values for the OrderItemType const type.

type OrderItemUpdateParameter

type OrderItemUpdateParameter struct {
	// Order item update properties
	Properties *OrderItemUpdateProperties

	// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across
	// resource groups).
	Tags map[string]*string
}

OrderItemUpdateParameter - Updates order item parameters.

func (OrderItemUpdateParameter) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderItemUpdateParameter.

func (*OrderItemUpdateParameter) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderItemUpdateParameter.

type OrderItemUpdateProperties

type OrderItemUpdateProperties struct {
	// Updates forward shipping address and contact details.
	ForwardAddress *AddressProperties

	// Additional notification email list.
	NotificationEmailList []*string

	// Customer preference.
	Preferences *Preferences
}

OrderItemUpdateProperties - Order item update properties.

func (OrderItemUpdateProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderItemUpdateProperties.

func (*OrderItemUpdateProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderItemUpdateProperties.

type OrderProperties

type OrderProperties struct {
	// READ-ONLY; Order current status.
	CurrentStage *StageDetails

	// READ-ONLY; List of order item ARM Ids which are part of an order.
	OrderItemIDs []*string

	// READ-ONLY; Order status history.
	OrderStageHistory []*StageDetails
}

OrderProperties - Represents order details.

func (OrderProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderProperties.

func (*OrderProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderProperties.

type OrderResource

type OrderResource struct {
	// REQUIRED; Order properties
	Properties *OrderProperties

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

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

	// READ-ONLY; Represents resource creation and update time
	SystemData *SystemData

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

OrderResource - Specifies the properties or parameters for an order. Order is a grouping of one or more order items.

func (OrderResource) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderResource.

func (*OrderResource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderResource.

type OrderResourceList

type OrderResourceList struct {
	// Link for the next set of order resources.
	NextLink *string

	// READ-ONLY; List of order resources.
	Value []*OrderResource
}

OrderResourceList - List of orders.

func (OrderResourceList) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type OrderResourceList.

func (*OrderResourceList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type OrderResourceList.

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 Pav2MeterDetails

type Pav2MeterDetails struct {
	// REQUIRED; Represents billing type.
	BillingType *BillingType

	// READ-ONLY; Charging type.
	ChargingType *ChargingType

	// READ-ONLY; Validation status of requested data center and transport.
	MeterGUID *string

	// READ-ONLY; Billing unit applicable for Pav2 billing
	Multiplier *float64
}

Pav2MeterDetails - Billing type PAV2 meter details

func (*Pav2MeterDetails) GetMeterDetails added in v0.2.0

func (p *Pav2MeterDetails) GetMeterDetails() *MeterDetails

GetMeterDetails implements the MeterDetailsClassification interface for type Pav2MeterDetails.

func (Pav2MeterDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Pav2MeterDetails.

func (*Pav2MeterDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type Pav2MeterDetails.

type Preferences

type Preferences struct {
	// Preferences related to the Encryption.
	EncryptionPreferences *EncryptionPreferences

	// Preferences related to the Management resource.
	ManagementResourcePreferences *ManagementResourcePreferences

	// Notification preferences.
	NotificationPreferences []*NotificationPreference

	// Preferences related to the shipment logistics of the order.
	TransportPreferences *TransportPreferences
}

Preferences related to the order

func (Preferences) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Preferences.

func (*Preferences) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Preferences.

type Product

type Product struct {
	// READ-ONLY; Properties of product
	Properties *ProductProperties
}

Product - List of Products

func (Product) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Product.

func (*Product) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Product.

type ProductDetails

type ProductDetails struct {
	// REQUIRED; Hierarchy of the product which uniquely identifies the product
	HierarchyInformation *HierarchyInformation

	// Display details of the product
	DisplayInfo *DisplayInfo

	// READ-ONLY; Quantity of the product
	Count *int32

	// READ-ONLY; list of device details
	DeviceDetails []*DeviceDetails

	// READ-ONLY; Double encryption status of the configuration. Read-only field.
	ProductDoubleEncryptionStatus *DoubleEncryptionStatus
}

ProductDetails - Represents product details

func (ProductDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductDetails.

func (*ProductDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductDetails.

type ProductFamilies

type ProductFamilies struct {
	// Link for the next set of product families.
	NextLink *string

	// READ-ONLY; List of product families.
	Value []*ProductFamily
}

ProductFamilies - The list of product families.

func (ProductFamilies) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductFamilies.

func (*ProductFamilies) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductFamilies.

type ProductFamiliesMetadata

type ProductFamiliesMetadata struct {
	// READ-ONLY; Link for the next set of product families.
	NextLink *string

	// READ-ONLY; List of product family metadata details.
	Value []*ProductFamiliesMetadataDetails
}

ProductFamiliesMetadata - Holds details about product family metadata

func (ProductFamiliesMetadata) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductFamiliesMetadata.

func (*ProductFamiliesMetadata) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductFamiliesMetadata.

type ProductFamiliesMetadataDetails

type ProductFamiliesMetadataDetails struct {
	// READ-ONLY; Product family properties
	Properties *ProductFamilyProperties
}

ProductFamiliesMetadataDetails - Product families metadata details.

func (ProductFamiliesMetadataDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ProductFamiliesMetadataDetails.

func (*ProductFamiliesMetadataDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductFamiliesMetadataDetails.

type ProductFamiliesRequest

type ProductFamiliesRequest struct {
	// REQUIRED; Dictionary of filterable properties on product family.
	FilterableProperties map[string][]*FilterableProperty

	// Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing
	// subscription details
	CustomerSubscriptionDetails *CustomerSubscriptionDetails
}

ProductFamiliesRequest - The filters for showing the product families.

func (ProductFamiliesRequest) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductFamiliesRequest.

func (*ProductFamiliesRequest) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductFamiliesRequest.

type ProductFamily

type ProductFamily struct {
	// READ-ONLY; Properties of product family
	Properties *ProductFamilyProperties
}

ProductFamily - Product Family

func (ProductFamily) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ProductFamily.

func (*ProductFamily) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductFamily.

type ProductFamilyProperties

type ProductFamilyProperties struct {
	// Contains details related to resource provider
	ResourceProviderDetails []*ResourceProviderDetails

	// READ-ONLY; Availability information of the product system.
	AvailabilityInformation *AvailabilityInformation

	// READ-ONLY; Cost information for the product system.
	CostInformation *CostInformation

	// READ-ONLY; Description related to the product system.
	Description *Description

	// READ-ONLY; Display Name for the product system.
	DisplayName *string

	// READ-ONLY; list of filters supported for a product
	FilterableProperties []*FilterableProperty

	// READ-ONLY; Hierarchy information of a product.
	HierarchyInformation *HierarchyInformation

	// READ-ONLY; Image information for the product system.
	ImageInformation []*ImageInformation

	// READ-ONLY; List of product lines supported in the product family
	ProductLines []*ProductLine
}

ProductFamilyProperties - Properties of product family

func (ProductFamilyProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductFamilyProperties.

func (*ProductFamilyProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductFamilyProperties.

type ProductLine

type ProductLine struct {
	// READ-ONLY; Properties of product line
	Properties *ProductLineProperties
}

ProductLine - Product line

func (ProductLine) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ProductLine.

func (*ProductLine) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductLine.

type ProductLineProperties

type ProductLineProperties struct {
	// READ-ONLY; Availability information of the product system.
	AvailabilityInformation *AvailabilityInformation

	// READ-ONLY; Cost information for the product system.
	CostInformation *CostInformation

	// READ-ONLY; Description related to the product system.
	Description *Description

	// READ-ONLY; Display Name for the product system.
	DisplayName *string

	// READ-ONLY; list of filters supported for a product
	FilterableProperties []*FilterableProperty

	// READ-ONLY; Hierarchy information of a product.
	HierarchyInformation *HierarchyInformation

	// READ-ONLY; Image information for the product system.
	ImageInformation []*ImageInformation

	// READ-ONLY; List of products in the product line
	Products []*Product
}

ProductLineProperties - Properties of product line

func (ProductLineProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductLineProperties.

func (*ProductLineProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductLineProperties.

type ProductProperties

type ProductProperties struct {
	// READ-ONLY; Availability information of the product system.
	AvailabilityInformation *AvailabilityInformation

	// READ-ONLY; List of configurations for the product
	Configurations []*Configuration

	// READ-ONLY; Cost information for the product system.
	CostInformation *CostInformation

	// READ-ONLY; Description related to the product system.
	Description *Description

	// READ-ONLY; Display Name for the product system.
	DisplayName *string

	// READ-ONLY; list of filters supported for a product
	FilterableProperties []*FilterableProperty

	// READ-ONLY; Hierarchy information of a product.
	HierarchyInformation *HierarchyInformation

	// READ-ONLY; Image information for the product system.
	ImageInformation []*ImageInformation
}

ProductProperties - Properties of products

func (ProductProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductProperties.

func (*ProductProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductProperties.

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

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

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

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 v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.

type PurchaseMeterDetails

type PurchaseMeterDetails struct {
	// REQUIRED; Represents billing type.
	BillingType *BillingType

	// READ-ONLY; Charging type.
	ChargingType *ChargingType

	// READ-ONLY; Billing unit applicable for Pav2 billing
	Multiplier *float64

	// READ-ONLY; Product Id
	ProductID *string

	// READ-ONLY; Sku Id
	SKUID *string

	// READ-ONLY; Term Id
	TermID *string
}

PurchaseMeterDetails - Billing type Purchase meter details

func (*PurchaseMeterDetails) GetMeterDetails added in v0.2.0

func (p *PurchaseMeterDetails) GetMeterDetails() *MeterDetails

GetMeterDetails implements the MeterDetailsClassification interface for type PurchaseMeterDetails.

func (PurchaseMeterDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PurchaseMeterDetails.

func (*PurchaseMeterDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PurchaseMeterDetails.

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

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

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

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

func (Resource) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type ResourceIdentity

type ResourceIdentity struct {
	// Identity type
	Type *string

	// READ-ONLY; Service Principal Id backing the Msi
	PrincipalID *string

	// READ-ONLY; Home Tenant Id
	TenantID *string
}

ResourceIdentity - Msi identity details of the resource

func (ResourceIdentity) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ResourceIdentity.

func (*ResourceIdentity) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceIdentity.

type ResourceProviderDetails

type ResourceProviderDetails struct {
	// READ-ONLY; Resource provider namespace
	ResourceProviderNamespace *string
}

ResourceProviderDetails - Management RP details

func (ResourceProviderDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ResourceProviderDetails.

func (*ResourceProviderDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceProviderDetails.

type ReturnOrderItemDetails

type ReturnOrderItemDetails struct {
	// REQUIRED; Return Reason.
	ReturnReason *string

	// customer return address.
	ReturnAddress *AddressProperties

	// Service tag (located on the bottom-right corner of the device)
	ServiceTag *string

	// Shipping Box required
	ShippingBoxRequired *bool
}

ReturnOrderItemDetails - Return order item request body

func (ReturnOrderItemDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ReturnOrderItemDetails.

func (*ReturnOrderItemDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ReturnOrderItemDetails.

type ReverseShippingDetails

type ReverseShippingDetails struct {
	// READ-ONLY; Carrier Name for display purpose. Not to be used for any processing.
	CarrierDisplayName *string

	// READ-ONLY; Name of the carrier.
	CarrierName *string

	// READ-ONLY; SAS key to download the reverse shipment label of the package.
	SasKeyForLabel *string

	// READ-ONLY; TrackingId of the package
	TrackingID *string

	// READ-ONLY; TrackingUrl of the package.
	TrackingURL *string
}

ReverseShippingDetails - Reverse shipment details.

func (ReverseShippingDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ReverseShippingDetails.

func (*ReverseShippingDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ReverseShippingDetails.

type ShippingAddress

type ShippingAddress struct {
	// REQUIRED; Name of the Country.
	Country *string

	// REQUIRED; Street Address line 1.
	StreetAddress1 *string

	// Type of address.
	AddressType *AddressType

	// Name of the City.
	City *string

	// Name of the company.
	CompanyName *string

	// Postal code.
	PostalCode *string

	// Name of the State or Province.
	StateOrProvince *string

	// Street Address line 2.
	StreetAddress2 *string

	// Street Address line 3.
	StreetAddress3 *string

	// Extended Zip Code.
	ZipExtendedCode *string
}

ShippingAddress - Shipping address where customer wishes to receive the device.

func (ShippingAddress) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ShippingAddress.

func (*ShippingAddress) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ShippingAddress.

type ShippingDetails

type ShippingDetails struct {
	// READ-ONLY; Carrier Name for display purpose. Not to be used for any processing.
	CarrierDisplayName *string

	// READ-ONLY; Name of the carrier.
	CarrierName *string

	// READ-ONLY; TrackingId of the package
	TrackingID *string

	// READ-ONLY; TrackingUrl of the package.
	TrackingURL *string
}

ShippingDetails - Package shipping details

func (ShippingDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ShippingDetails.

func (*ShippingDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ShippingDetails.

type Specification

type Specification struct {
	// READ-ONLY; Name of the specification
	Name *string

	// READ-ONLY; Value of the specification
	Value *string
}

Specifications of the configurations

func (Specification) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Specification.

func (*Specification) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Specification.

type StageDetails

type StageDetails struct {
	// READ-ONLY; Display name of the resource stage.
	DisplayName *string

	// READ-ONLY; Stage name
	StageName *StageName

	// READ-ONLY; Stage status.
	StageStatus *StageStatus

	// READ-ONLY; Stage start time
	StartTime *time.Time
}

StageDetails - Resource stage details.

func (StageDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type StageDetails.

func (*StageDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type StageDetails.

type StageName

type StageName string

StageName - Stage name

const (
	// StageNameCancelled - Order has been cancelled.
	StageNameCancelled StageName = "Cancelled"
	// StageNameConfirmed - Order is confirmed
	StageNameConfirmed StageName = "Confirmed"
	// StageNameDelivered - Order is delivered to customer
	StageNameDelivered StageName = "Delivered"
	// StageNameInReview - Order is currently in draft mode and can still be cancelled
	StageNameInReview StageName = "InReview"
	// StageNameInUse - Order is in use at customer site
	StageNameInUse StageName = "InUse"
	// StageNamePlaced - Currently in draft mode and can still be cancelled
	StageNamePlaced StageName = "Placed"
	// StageNameReadyToShip - Order is ready to ship
	StageNameReadyToShip StageName = "ReadyToShip"
	// StageNameReturnCompleted - Return has now completed.
	StageNameReturnCompleted StageName = "ReturnCompleted"
	// StageNameReturnInitiated - Return has been initiated by customer.
	StageNameReturnInitiated StageName = "ReturnInitiated"
	// StageNameReturnPickedUp - Order is in transit from customer to microsoft.
	StageNameReturnPickedUp StageName = "ReturnPickedUp"
	// StageNameReturnedToMicrosoft - Order has been received back to microsoft.
	StageNameReturnedToMicrosoft StageName = "ReturnedToMicrosoft"
	// StageNameShipped - Order is in transit to customer
	StageNameShipped StageName = "Shipped"
)

func PossibleStageNameValues

func PossibleStageNameValues() []StageName

PossibleStageNameValues returns the possible values for the StageName const type.

type StageStatus

type StageStatus string

StageStatus - Stage status.

const (
	// StageStatusCancelled - Stage has been cancelled.
	StageStatusCancelled StageStatus = "Cancelled"
	// StageStatusCancelling - Stage is cancelling.
	StageStatusCancelling StageStatus = "Cancelling"
	// StageStatusFailed - Stage has failed.
	StageStatusFailed StageStatus = "Failed"
	// StageStatusInProgress - Stage is in progress.
	StageStatusInProgress StageStatus = "InProgress"
	// StageStatusNone - No status available yet.
	StageStatusNone StageStatus = "None"
	// StageStatusSucceeded - Stage has succeeded.
	StageStatusSucceeded StageStatus = "Succeeded"
)

func PossibleStageStatusValues

func PossibleStageStatusValues() []StageStatus

PossibleStageStatusValues returns the possible values for the StageStatus const type.

type SupportedFilterTypes

type SupportedFilterTypes string

SupportedFilterTypes - Type of product filter.

const (
	// SupportedFilterTypesDoubleEncryptionStatus - Double encryption status
	SupportedFilterTypesDoubleEncryptionStatus SupportedFilterTypes = "DoubleEncryptionStatus"
	// SupportedFilterTypesShipToCountries - Ship to country
	SupportedFilterTypesShipToCountries SupportedFilterTypes = "ShipToCountries"
)

func PossibleSupportedFilterTypesValues

func PossibleSupportedFilterTypesValues() []SupportedFilterTypes

PossibleSupportedFilterTypesValues returns the possible values for the SupportedFilterTypes const type.

type SystemData

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

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

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

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

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

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

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

func (SystemData) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type TrackedResource

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

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

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

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

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

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 v1.1.0

func (t *TrackedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.

type TransportPreferences

type TransportPreferences struct {
	// REQUIRED; Indicates Shipment Logistics type that the customer preferred.
	PreferredShipmentType *TransportShipmentTypes
}

TransportPreferences - Preferences related to the shipment logistics of the sku

func (TransportPreferences) MarshalJSON added in v1.1.0

func (t TransportPreferences) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TransportPreferences.

func (*TransportPreferences) UnmarshalJSON added in v1.1.0

func (t *TransportPreferences) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TransportPreferences.

type TransportShipmentTypes

type TransportShipmentTypes string

TransportShipmentTypes - Indicates Shipment Logistics type that the customer preferred.

const (
	// TransportShipmentTypesCustomerManaged - Shipment Logistics is handled by the customer.
	TransportShipmentTypesCustomerManaged TransportShipmentTypes = "CustomerManaged"
	// TransportShipmentTypesMicrosoftManaged - Shipment Logistics is handled by Microsoft.
	TransportShipmentTypesMicrosoftManaged TransportShipmentTypes = "MicrosoftManaged"
)

func PossibleTransportShipmentTypesValues

func PossibleTransportShipmentTypesValues() []TransportShipmentTypes

PossibleTransportShipmentTypesValues returns the possible values for the TransportShipmentTypes const type.

type WeightMeasurementUnit

type WeightMeasurementUnit string

WeightMeasurementUnit - Unit for the dimensions of weight.

const (
	// WeightMeasurementUnitKGS - Kilograms.
	WeightMeasurementUnitKGS WeightMeasurementUnit = "KGS"
	// WeightMeasurementUnitLBS - Pounds.
	WeightMeasurementUnitLBS WeightMeasurementUnit = "LBS"
)

func PossibleWeightMeasurementUnitValues

func PossibleWeightMeasurementUnitValues() []WeightMeasurementUnit

PossibleWeightMeasurementUnitValues returns the possible values for the WeightMeasurementUnit const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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