Documentation
¶
Index ¶
- type ActionStatusEnum
- type ActionType
- type AddressDetails
- type AddressProperties
- type AddressResource
- type AddressResourceList
- type AddressType
- type AddressUpdateParameter
- type AddressUpdateProperties
- type AddressValidationStatus
- type AvailabilityInformation
- type AvailabilityStage
- type BasicInformation
- type BillingMeterDetails
- type BillingType
- type CancellationReason
- type ChargingType
- type CommonProperties
- type Configuration
- type ConfigurationFilters
- type ConfigurationProperties
- type Configurations
- type ConfigurationsRequest
- type ContactDetails
- type CostInformation
- type CreatedByType
- type CustomerSubscriptionDetails
- type CustomerSubscriptionRegisteredFeatures
- type Description
- type DescriptionType
- type DeviceDetails
- type Dimensions
- type DisabledReason
- type DisplayInfo
- type DoubleEncryptionStatus
- type EncryptionPreferences
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type FilterableProperty
- type ForwardShippingDetails
- type HierarchyInformation
- type ImageInformation
- type ImageType
- type LengthHeightUnit
- type Link
- type LinkType
- type ManagementClient
- func (client *ManagementClient) BeginCreateAddress(ctx context.Context, addressName string, resourceGroupName string, ...) (ManagementClientCreateAddressPollerResponse, error)
- func (client *ManagementClient) BeginCreateOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, ...) (ManagementClientCreateOrderItemPollerResponse, error)
- func (client *ManagementClient) BeginDeleteAddressByName(ctx context.Context, addressName string, resourceGroupName string, ...) (ManagementClientDeleteAddressByNamePollerResponse, error)
- func (client *ManagementClient) BeginDeleteOrderItemByName(ctx context.Context, orderItemName string, resourceGroupName string, ...) (ManagementClientDeleteOrderItemByNamePollerResponse, error)
- func (client *ManagementClient) BeginReturnOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, ...) (ManagementClientReturnOrderItemPollerResponse, error)
- func (client *ManagementClient) BeginUpdateAddress(ctx context.Context, addressName string, resourceGroupName string, ...) (ManagementClientUpdateAddressPollerResponse, error)
- func (client *ManagementClient) BeginUpdateOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, ...) (ManagementClientUpdateOrderItemPollerResponse, error)
- func (client *ManagementClient) CancelOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, ...) (ManagementClientCancelOrderItemResponse, error)
- func (client *ManagementClient) GetAddressByName(ctx context.Context, addressName string, resourceGroupName string, ...) (ManagementClientGetAddressByNameResponse, error)
- func (client *ManagementClient) GetOrderByName(ctx context.Context, orderName string, resourceGroupName string, ...) (ManagementClientGetOrderByNameResponse, error)
- func (client *ManagementClient) GetOrderItemByName(ctx context.Context, orderItemName string, resourceGroupName string, ...) (ManagementClientGetOrderItemByNameResponse, error)
- func (client *ManagementClient) ListAddressesAtResourceGroupLevel(resourceGroupName string, ...) *ManagementClientListAddressesAtResourceGroupLevelPager
- func (client *ManagementClient) ListAddressesAtSubscriptionLevel(options *ManagementClientListAddressesAtSubscriptionLevelOptions) *ManagementClientListAddressesAtSubscriptionLevelPager
- func (client *ManagementClient) ListConfigurations(configurationsRequest ConfigurationsRequest, ...) *ManagementClientListConfigurationsPager
- func (client *ManagementClient) ListOperations(options *ManagementClientListOperationsOptions) *ManagementClientListOperationsPager
- func (client *ManagementClient) ListOrderAtResourceGroupLevel(resourceGroupName string, ...) *ManagementClientListOrderAtResourceGroupLevelPager
- func (client *ManagementClient) ListOrderAtSubscriptionLevel(options *ManagementClientListOrderAtSubscriptionLevelOptions) *ManagementClientListOrderAtSubscriptionLevelPager
- func (client *ManagementClient) ListOrderItemsAtResourceGroupLevel(resourceGroupName string, ...) *ManagementClientListOrderItemsAtResourceGroupLevelPager
- func (client *ManagementClient) ListOrderItemsAtSubscriptionLevel(options *ManagementClientListOrderItemsAtSubscriptionLevelOptions) *ManagementClientListOrderItemsAtSubscriptionLevelPager
- func (client *ManagementClient) ListProductFamilies(productFamiliesRequest ProductFamiliesRequest, ...) *ManagementClientListProductFamiliesPager
- func (client *ManagementClient) ListProductFamiliesMetadata(options *ManagementClientListProductFamiliesMetadataOptions) *ManagementClientListProductFamiliesMetadataPager
- type ManagementClientBeginCreateAddressOptions
- type ManagementClientBeginCreateOrderItemOptions
- type ManagementClientBeginDeleteAddressByNameOptions
- type ManagementClientBeginDeleteOrderItemByNameOptions
- type ManagementClientBeginReturnOrderItemOptions
- type ManagementClientBeginUpdateAddressOptions
- type ManagementClientBeginUpdateOrderItemOptions
- type ManagementClientCancelOrderItemOptions
- type ManagementClientCancelOrderItemResponse
- type ManagementClientCreateAddressPoller
- func (p *ManagementClientCreateAddressPoller) Done() bool
- func (p *ManagementClientCreateAddressPoller) FinalResponse(ctx context.Context) (ManagementClientCreateAddressResponse, error)
- func (p *ManagementClientCreateAddressPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ManagementClientCreateAddressPoller) ResumeToken() (string, error)
- type ManagementClientCreateAddressPollerResponse
- type ManagementClientCreateAddressResponse
- type ManagementClientCreateAddressResult
- type ManagementClientCreateOrderItemPoller
- func (p *ManagementClientCreateOrderItemPoller) Done() bool
- func (p *ManagementClientCreateOrderItemPoller) FinalResponse(ctx context.Context) (ManagementClientCreateOrderItemResponse, error)
- func (p *ManagementClientCreateOrderItemPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ManagementClientCreateOrderItemPoller) ResumeToken() (string, error)
- type ManagementClientCreateOrderItemPollerResponse
- type ManagementClientCreateOrderItemResponse
- type ManagementClientCreateOrderItemResult
- type ManagementClientDeleteAddressByNamePoller
- func (p *ManagementClientDeleteAddressByNamePoller) Done() bool
- func (p *ManagementClientDeleteAddressByNamePoller) FinalResponse(ctx context.Context) (ManagementClientDeleteAddressByNameResponse, error)
- func (p *ManagementClientDeleteAddressByNamePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ManagementClientDeleteAddressByNamePoller) ResumeToken() (string, error)
- type ManagementClientDeleteAddressByNamePollerResponse
- func (l ManagementClientDeleteAddressByNamePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientDeleteAddressByNameResponse, error)
- func (l *ManagementClientDeleteAddressByNamePollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
- type ManagementClientDeleteAddressByNameResponse
- type ManagementClientDeleteOrderItemByNamePoller
- func (p *ManagementClientDeleteOrderItemByNamePoller) Done() bool
- func (p *ManagementClientDeleteOrderItemByNamePoller) FinalResponse(ctx context.Context) (ManagementClientDeleteOrderItemByNameResponse, error)
- func (p *ManagementClientDeleteOrderItemByNamePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ManagementClientDeleteOrderItemByNamePoller) ResumeToken() (string, error)
- type ManagementClientDeleteOrderItemByNamePollerResponse
- func (l ManagementClientDeleteOrderItemByNamePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientDeleteOrderItemByNameResponse, error)
- func (l *ManagementClientDeleteOrderItemByNamePollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
- type ManagementClientDeleteOrderItemByNameResponse
- type ManagementClientGetAddressByNameOptions
- type ManagementClientGetAddressByNameResponse
- type ManagementClientGetAddressByNameResult
- type ManagementClientGetOrderByNameOptions
- type ManagementClientGetOrderByNameResponse
- type ManagementClientGetOrderByNameResult
- type ManagementClientGetOrderItemByNameOptions
- type ManagementClientGetOrderItemByNameResponse
- type ManagementClientGetOrderItemByNameResult
- type ManagementClientListAddressesAtResourceGroupLevelOptions
- type ManagementClientListAddressesAtResourceGroupLevelPager
- func (p *ManagementClientListAddressesAtResourceGroupLevelPager) Err() error
- func (p *ManagementClientListAddressesAtResourceGroupLevelPager) NextPage(ctx context.Context) bool
- func (p *ManagementClientListAddressesAtResourceGroupLevelPager) PageResponse() ManagementClientListAddressesAtResourceGroupLevelResponse
- type ManagementClientListAddressesAtResourceGroupLevelResponse
- type ManagementClientListAddressesAtResourceGroupLevelResult
- type ManagementClientListAddressesAtSubscriptionLevelOptions
- type ManagementClientListAddressesAtSubscriptionLevelPager
- func (p *ManagementClientListAddressesAtSubscriptionLevelPager) Err() error
- func (p *ManagementClientListAddressesAtSubscriptionLevelPager) NextPage(ctx context.Context) bool
- func (p *ManagementClientListAddressesAtSubscriptionLevelPager) PageResponse() ManagementClientListAddressesAtSubscriptionLevelResponse
- type ManagementClientListAddressesAtSubscriptionLevelResponse
- type ManagementClientListAddressesAtSubscriptionLevelResult
- type ManagementClientListConfigurationsOptions
- type ManagementClientListConfigurationsPager
- type ManagementClientListConfigurationsResponse
- type ManagementClientListConfigurationsResult
- type ManagementClientListOperationsOptions
- type ManagementClientListOperationsPager
- type ManagementClientListOperationsResponse
- type ManagementClientListOperationsResult
- type ManagementClientListOrderAtResourceGroupLevelOptions
- type ManagementClientListOrderAtResourceGroupLevelPager
- type ManagementClientListOrderAtResourceGroupLevelResponse
- type ManagementClientListOrderAtResourceGroupLevelResult
- type ManagementClientListOrderAtSubscriptionLevelOptions
- type ManagementClientListOrderAtSubscriptionLevelPager
- type ManagementClientListOrderAtSubscriptionLevelResponse
- type ManagementClientListOrderAtSubscriptionLevelResult
- type ManagementClientListOrderItemsAtResourceGroupLevelOptions
- type ManagementClientListOrderItemsAtResourceGroupLevelPager
- func (p *ManagementClientListOrderItemsAtResourceGroupLevelPager) Err() error
- func (p *ManagementClientListOrderItemsAtResourceGroupLevelPager) NextPage(ctx context.Context) bool
- func (p *ManagementClientListOrderItemsAtResourceGroupLevelPager) PageResponse() ManagementClientListOrderItemsAtResourceGroupLevelResponse
- type ManagementClientListOrderItemsAtResourceGroupLevelResponse
- type ManagementClientListOrderItemsAtResourceGroupLevelResult
- type ManagementClientListOrderItemsAtSubscriptionLevelOptions
- type ManagementClientListOrderItemsAtSubscriptionLevelPager
- func (p *ManagementClientListOrderItemsAtSubscriptionLevelPager) Err() error
- func (p *ManagementClientListOrderItemsAtSubscriptionLevelPager) NextPage(ctx context.Context) bool
- func (p *ManagementClientListOrderItemsAtSubscriptionLevelPager) PageResponse() ManagementClientListOrderItemsAtSubscriptionLevelResponse
- type ManagementClientListOrderItemsAtSubscriptionLevelResponse
- type ManagementClientListOrderItemsAtSubscriptionLevelResult
- type ManagementClientListProductFamiliesMetadataOptions
- type ManagementClientListProductFamiliesMetadataPager
- type ManagementClientListProductFamiliesMetadataResponse
- type ManagementClientListProductFamiliesMetadataResult
- type ManagementClientListProductFamiliesOptions
- type ManagementClientListProductFamiliesPager
- type ManagementClientListProductFamiliesResponse
- type ManagementClientListProductFamiliesResult
- type ManagementClientReturnOrderItemPoller
- func (p *ManagementClientReturnOrderItemPoller) Done() bool
- func (p *ManagementClientReturnOrderItemPoller) FinalResponse(ctx context.Context) (ManagementClientReturnOrderItemResponse, error)
- func (p *ManagementClientReturnOrderItemPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ManagementClientReturnOrderItemPoller) ResumeToken() (string, error)
- type ManagementClientReturnOrderItemPollerResponse
- type ManagementClientReturnOrderItemResponse
- type ManagementClientUpdateAddressPoller
- func (p *ManagementClientUpdateAddressPoller) Done() bool
- func (p *ManagementClientUpdateAddressPoller) FinalResponse(ctx context.Context) (ManagementClientUpdateAddressResponse, error)
- func (p *ManagementClientUpdateAddressPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ManagementClientUpdateAddressPoller) ResumeToken() (string, error)
- type ManagementClientUpdateAddressPollerResponse
- type ManagementClientUpdateAddressResponse
- type ManagementClientUpdateAddressResult
- type ManagementClientUpdateOrderItemPoller
- func (p *ManagementClientUpdateOrderItemPoller) Done() bool
- func (p *ManagementClientUpdateOrderItemPoller) FinalResponse(ctx context.Context) (ManagementClientUpdateOrderItemResponse, error)
- func (p *ManagementClientUpdateOrderItemPoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *ManagementClientUpdateOrderItemPoller) ResumeToken() (string, error)
- type ManagementClientUpdateOrderItemPollerResponse
- type ManagementClientUpdateOrderItemResponse
- type ManagementClientUpdateOrderItemResult
- type ManagementResourcePreferences
- type MeterDetails
- type MeterDetailsClassification
- type MeteringType
- type NotificationPreference
- type NotificationStageName
- type Operation
- type OperationDisplay
- type OperationListResult
- type OrderItemCancellationEnum
- type OrderItemDetails
- type OrderItemProperties
- type OrderItemResource
- type OrderItemResourceList
- type OrderItemReturnEnum
- type OrderItemType
- type OrderItemUpdateParameter
- type OrderItemUpdateProperties
- type OrderProperties
- type OrderResource
- type OrderResourceList
- type Origin
- type Pav2MeterDetails
- type Preferences
- type Product
- type ProductDetails
- type ProductFamilies
- type ProductFamiliesMetadata
- type ProductFamiliesMetadataDetails
- type ProductFamiliesRequest
- type ProductFamily
- type ProductFamilyProperties
- type ProductLine
- type ProductLineProperties
- type ProductProperties
- type ProxyResource
- type PurchaseMeterDetails
- type Resource
- type ResourceIdentity
- type ResourceProviderDetails
- type ReturnOrderItemDetails
- type ReverseShippingDetails
- type ShippingAddress
- type ShippingDetails
- type Specification
- type StageDetails
- type StageName
- type StageStatus
- type SupportedFilterTypes
- type SystemData
- type TrackedResource
- type TransportPreferences
- type TransportShipmentTypes
- type WeightMeasurementUnit
Examples ¶
- ManagementClient.BeginCreateAddress
- ManagementClient.BeginCreateOrderItem
- ManagementClient.BeginDeleteAddressByName
- ManagementClient.BeginDeleteOrderItemByName
- ManagementClient.BeginReturnOrderItem
- ManagementClient.BeginUpdateAddress
- ManagementClient.BeginUpdateOrderItem
- ManagementClient.CancelOrderItem
- ManagementClient.GetAddressByName
- ManagementClient.GetOrderByName
- ManagementClient.GetOrderItemByName
- ManagementClient.ListAddressesAtResourceGroupLevel
- ManagementClient.ListAddressesAtSubscriptionLevel
- ManagementClient.ListConfigurations
- ManagementClient.ListOperations
- ManagementClient.ListOrderAtResourceGroupLevel
- ManagementClient.ListOrderAtSubscriptionLevel
- ManagementClient.ListOrderItemsAtResourceGroupLevel
- ManagementClient.ListOrderItemsAtSubscriptionLevel
- ManagementClient.ListProductFamilies
- ManagementClient.ListProductFamiliesMetadata
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.
func (ActionStatusEnum) ToPtr ¶
func (c ActionStatusEnum) ToPtr() *ActionStatusEnum
ToPtr returns a *ActionStatusEnum pointing to the current value.
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.
func (ActionType) ToPtr ¶
func (c ActionType) ToPtr() *ActionType
ToPtr returns a *ActionType pointing to the current value.
type AddressDetails ¶
type AddressDetails struct { // REQUIRED; Customer address and contact details. It should be address resource ForwardAddress *AddressProperties `json:"forwardAddress,omitempty"` // READ-ONLY; Return shipping address ReturnAddress *AddressProperties `json:"returnAddress,omitempty" azure:"ro"` }
AddressDetails - Address details for an order item.
type AddressProperties ¶
type AddressProperties struct { // REQUIRED; Contact details for the address ContactDetails *ContactDetails `json:"contactDetails,omitempty"` // Shipping details for the address ShippingAddress *ShippingAddress `json:"shippingAddress,omitempty"` // READ-ONLY; Status of address validation AddressValidationStatus *AddressValidationStatus `json:"addressValidationStatus,omitempty" azure:"ro"` }
AddressProperties - Address Properties
type AddressResource ¶
type AddressResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // REQUIRED; Properties of an address. Properties *AddressProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Represents resource creation and update time SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
AddressResource - Address Resource.
func (AddressResource) MarshalJSON ¶
func (a AddressResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AddressResource.
type AddressResourceList ¶
type AddressResourceList struct { // Link for the next set of job resources. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; List of address resources. Value []*AddressResource `json:"value,omitempty" azure:"ro"` }
AddressResourceList - Address Resource Collection
func (AddressResourceList) MarshalJSON ¶
func (a AddressResourceList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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.
func (AddressType) ToPtr ¶
func (c AddressType) ToPtr() *AddressType
ToPtr returns a *AddressType pointing to the current value.
type AddressUpdateParameter ¶
type AddressUpdateParameter struct { // Properties of a address to be updated. Properties *AddressUpdateProperties `json:"properties,omitempty"` // 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 `json:"tags,omitempty"` }
AddressUpdateParameter - The Address update parameters
func (AddressUpdateParameter) MarshalJSON ¶
func (a AddressUpdateParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AddressUpdateParameter.
type AddressUpdateProperties ¶
type AddressUpdateProperties struct { // Contact details for the address ContactDetails *ContactDetails `json:"contactDetails,omitempty"` // Shipping details for the address ShippingAddress *ShippingAddress `json:"shippingAddress,omitempty"` }
AddressUpdateProperties - Address Properties
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.
func (AddressValidationStatus) ToPtr ¶
func (c AddressValidationStatus) ToPtr() *AddressValidationStatus
ToPtr returns a *AddressValidationStatus pointing to the current value.
type AvailabilityInformation ¶
type AvailabilityInformation struct { // READ-ONLY; Current availability stage of the product. Availability stage AvailabilityStage *AvailabilityStage `json:"availabilityStage,omitempty" azure:"ro"` // READ-ONLY; Reason why the product is disabled. DisabledReason *DisabledReason `json:"disabledReason,omitempty" azure:"ro"` // READ-ONLY; Message for why the product is disabled. DisabledReasonMessage *string `json:"disabledReasonMessage,omitempty" azure:"ro"` }
AvailabilityInformation - Availability information of a product system.
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 AvailabilityStage = "Unavailable" )
func PossibleAvailabilityStageValues ¶
func PossibleAvailabilityStageValues() []AvailabilityStage
PossibleAvailabilityStageValues returns the possible values for the AvailabilityStage const type.
func (AvailabilityStage) ToPtr ¶
func (c AvailabilityStage) ToPtr() *AvailabilityStage
ToPtr returns a *AvailabilityStage pointing to the current value.
type BasicInformation ¶
type BasicInformation struct { // READ-ONLY; Availability information of the product system. AvailabilityInformation *AvailabilityInformation `json:"availabilityInformation,omitempty" azure:"ro"` // READ-ONLY; Cost information for the product system. CostInformation *CostInformation `json:"costInformation,omitempty" azure:"ro"` // READ-ONLY; Description related to the product system. Description *Description `json:"description,omitempty" azure:"ro"` // READ-ONLY; Display Name for the product system. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Hierarchy information of a product. HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty" azure:"ro"` // READ-ONLY; Image information for the product system. ImageInformation []*ImageInformation `json:"imageInformation,omitempty" azure:"ro"` }
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.
type BillingMeterDetails ¶
type BillingMeterDetails struct { // READ-ONLY; Frequency of recurrence Frequency *string `json:"frequency,omitempty" azure:"ro"` // READ-ONLY; Represents MeterDetails MeterDetails MeterDetailsClassification `json:"meterDetails,omitempty" azure:"ro"` // READ-ONLY; Represents Metering type (eg one-time or recurrent) MeteringType *MeteringType `json:"meteringType,omitempty" azure:"ro"` // READ-ONLY; Represents Billing type name Name *string `json:"name,omitempty" azure:"ro"` }
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.
func (BillingType) ToPtr ¶
func (c BillingType) ToPtr() *BillingType
ToPtr returns a *BillingType pointing to the current value.
type CancellationReason ¶
type CancellationReason struct { // REQUIRED; Reason for cancellation. Reason *string `json:"reason,omitempty"` }
CancellationReason - Reason for cancellation.
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.
func (ChargingType) ToPtr ¶
func (c ChargingType) ToPtr() *ChargingType
ToPtr returns a *ChargingType pointing to the current value.
type CommonProperties ¶
type CommonProperties struct { // READ-ONLY; Availability information of the product system. AvailabilityInformation *AvailabilityInformation `json:"availabilityInformation,omitempty" azure:"ro"` // READ-ONLY; Cost information for the product system. CostInformation *CostInformation `json:"costInformation,omitempty" azure:"ro"` // READ-ONLY; Description related to the product system. Description *Description `json:"description,omitempty" azure:"ro"` // READ-ONLY; Display Name for the product system. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; list of filters supported for a product FilterableProperties []*FilterableProperty `json:"filterableProperties,omitempty" azure:"ro"` // READ-ONLY; Hierarchy information of a product. HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty" azure:"ro"` // READ-ONLY; Image information for the product system. ImageInformation []*ImageInformation `json:"imageInformation,omitempty" azure:"ro"` }
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.
type Configuration ¶
type Configuration struct { // READ-ONLY; Properties of configuration Properties *ConfigurationProperties `json:"properties,omitempty" azure:"ro"` }
Configuration object.
type ConfigurationFilters ¶
type ConfigurationFilters struct { // REQUIRED; Product hierarchy information HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty"` // Filters specific to product FilterableProperty []*FilterableProperty `json:"filterableProperty,omitempty"` }
ConfigurationFilters - Configuration filters
func (ConfigurationFilters) MarshalJSON ¶
func (c ConfigurationFilters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationFilters.
type ConfigurationProperties ¶
type ConfigurationProperties struct { // READ-ONLY; Availability information of the product system. AvailabilityInformation *AvailabilityInformation `json:"availabilityInformation,omitempty" azure:"ro"` // READ-ONLY; Cost information for the product system. CostInformation *CostInformation `json:"costInformation,omitempty" azure:"ro"` // READ-ONLY; Description related to the product system. Description *Description `json:"description,omitempty" azure:"ro"` // READ-ONLY; Dimensions of the configuration Dimensions *Dimensions `json:"dimensions,omitempty" azure:"ro"` // READ-ONLY; Display Name for the product system. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; list of filters supported for a product FilterableProperties []*FilterableProperty `json:"filterableProperties,omitempty" azure:"ro"` // READ-ONLY; Hierarchy information of a product. HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty" azure:"ro"` // READ-ONLY; Image information for the product system. ImageInformation []*ImageInformation `json:"imageInformation,omitempty" azure:"ro"` // READ-ONLY; Specifications of the configuration Specifications []*Specification `json:"specifications,omitempty" azure:"ro"` }
ConfigurationProperties - Properties of configuration
func (ConfigurationProperties) MarshalJSON ¶
func (c ConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProperties.
type Configurations ¶
type Configurations struct { // Link for the next set of configurations. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; List of configurations. Value []*Configuration `json:"value,omitempty" azure:"ro"` }
Configurations - The list of configurations.
func (Configurations) MarshalJSON ¶
func (c Configurations) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Configurations.
type ConfigurationsRequest ¶
type ConfigurationsRequest struct { // REQUIRED; Holds details about product hierarchy information and filterable property. ConfigurationFilters []*ConfigurationFilters `json:"configurationFilters,omitempty"` // Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing // subscription details CustomerSubscriptionDetails *CustomerSubscriptionDetails `json:"customerSubscriptionDetails,omitempty"` }
ConfigurationsRequest - Configuration request object.
func (ConfigurationsRequest) MarshalJSON ¶
func (c ConfigurationsRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationsRequest.
type ContactDetails ¶
type ContactDetails struct { // REQUIRED; Contact name of the person. ContactName *string `json:"contactName,omitempty"` // REQUIRED; List of Email-ids to be notified about job progress. EmailList []*string `json:"emailList,omitempty"` // REQUIRED; Phone number of the contact person. Phone *string `json:"phone,omitempty"` // Mobile number of the contact person. Mobile *string `json:"mobile,omitempty"` // Phone extension number of the contact person. PhoneExtension *string `json:"phoneExtension,omitempty"` }
ContactDetails - Contact Details.
func (ContactDetails) MarshalJSON ¶
func (c ContactDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContactDetails.
type CostInformation ¶
type CostInformation struct { // READ-ONLY; Default url to display billing information BillingInfoURL *string `json:"billingInfoUrl,omitempty" azure:"ro"` // READ-ONLY; Details on the various billing aspects for the product system. BillingMeterDetails []*BillingMeterDetails `json:"billingMeterDetails,omitempty" azure:"ro"` }
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.
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.
func (CreatedByType) ToPtr ¶
func (c CreatedByType) ToPtr() *CreatedByType
ToPtr returns a *CreatedByType pointing to the current value.
type CustomerSubscriptionDetails ¶
type CustomerSubscriptionDetails struct { // REQUIRED; Quota ID of a subscription QuotaID *string `json:"quotaId,omitempty"` // Location placement Id of a subscription LocationPlacementID *string `json:"locationPlacementId,omitempty"` // List of registered feature flags for subscription RegisteredFeatures []*CustomerSubscriptionRegisteredFeatures `json:"registeredFeatures,omitempty"` }
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.
type CustomerSubscriptionRegisteredFeatures ¶
type CustomerSubscriptionRegisteredFeatures struct { // Name of subscription registered feature Name *string `json:"name,omitempty"` // State of subscription registered feature State *string `json:"state,omitempty"` }
CustomerSubscriptionRegisteredFeatures - Represents subscription registered features
type Description ¶
type Description struct { // READ-ONLY; Attributes for the product system. Attributes []*string `json:"attributes,omitempty" azure:"ro"` // READ-ONLY; Type of description. DescriptionType *DescriptionType `json:"descriptionType,omitempty" azure:"ro"` // READ-ONLY; Keywords for the product system. Keywords []*string `json:"keywords,omitempty" azure:"ro"` // READ-ONLY; Links for the product system. Links []*Link `json:"links,omitempty" azure:"ro"` // READ-ONLY; Long description of the product system. LongDescription *string `json:"longDescription,omitempty" azure:"ro"` // READ-ONLY; Short description of the product system. ShortDescription *string `json:"shortDescription,omitempty" azure:"ro"` }
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.
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.
func (DescriptionType) ToPtr ¶
func (c DescriptionType) ToPtr() *DescriptionType
ToPtr returns a *DescriptionType pointing to the current value.
type DeviceDetails ¶
type DeviceDetails struct { // READ-ONLY; Management Resource Id ManagementResourceID *string `json:"managementResourceId,omitempty" azure:"ro"` // READ-ONLY; Management Resource Tenant ID ManagementResourceTenantID *string `json:"managementResourceTenantId,omitempty" azure:"ro"` // READ-ONLY; device serial number SerialNumber *string `json:"serialNumber,omitempty" azure:"ro"` }
DeviceDetails - Device details.
type Dimensions ¶
type Dimensions struct { // READ-ONLY; Depth of the device. Depth *float64 `json:"depth,omitempty" azure:"ro"` // READ-ONLY; Height of the device. Height *float64 `json:"height,omitempty" azure:"ro"` // READ-ONLY; Length of the device. Length *float64 `json:"length,omitempty" azure:"ro"` // READ-ONLY; Unit for the dimensions of length, height and width. LengthHeightUnit *LengthHeightUnit `json:"lengthHeightUnit,omitempty" azure:"ro"` // READ-ONLY; Weight of the device. Weight *float64 `json:"weight,omitempty" azure:"ro"` // READ-ONLY; Unit for the dimensions of weight. WeightUnit *WeightMeasurementUnit `json:"weightUnit,omitempty" azure:"ro"` // READ-ONLY; Width of the device. Width *float64 `json:"width,omitempty" azure:"ro"` }
Dimensions of a configuration.
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.
func (DisabledReason) ToPtr ¶
func (c DisabledReason) ToPtr() *DisabledReason
ToPtr returns a *DisabledReason pointing to the current value.
type DisplayInfo ¶
type DisplayInfo struct { // READ-ONLY; Configuration display name ConfigurationDisplayName *string `json:"configurationDisplayName,omitempty" azure:"ro"` // READ-ONLY; Product family display name ProductFamilyDisplayName *string `json:"productFamilyDisplayName,omitempty" azure:"ro"` }
DisplayInfo - Describes product display information
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.
func (DoubleEncryptionStatus) ToPtr ¶
func (c DoubleEncryptionStatus) ToPtr() *DoubleEncryptionStatus
ToPtr returns a *DoubleEncryptionStatus pointing to the current value.
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 `json:"doubleEncryptionStatus,omitempty"` }
EncryptionPreferences - Preferences related to the double encryption
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info map[string]interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
type ErrorDetail ¶
type ErrorDetail struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type FilterableProperty ¶
type FilterableProperty struct { // REQUIRED; Values to be filtered. SupportedValues []*string `json:"supportedValues,omitempty"` // REQUIRED; Type of product filter. Type *SupportedFilterTypes `json:"type,omitempty"` }
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.
type ForwardShippingDetails ¶
type ForwardShippingDetails struct { // READ-ONLY; Carrier Name for display purpose. Not to be used for any processing. CarrierDisplayName *string `json:"carrierDisplayName,omitempty" azure:"ro"` // READ-ONLY; Name of the carrier. CarrierName *string `json:"carrierName,omitempty" azure:"ro"` // READ-ONLY; TrackingId of the package TrackingID *string `json:"trackingId,omitempty" azure:"ro"` // READ-ONLY; TrackingUrl of the package. TrackingURL *string `json:"trackingUrl,omitempty" azure:"ro"` }
ForwardShippingDetails - Forward shipment details.
type HierarchyInformation ¶
type HierarchyInformation struct { // Represents configuration name that uniquely identifies configuration ConfigurationName *string `json:"configurationName,omitempty"` // Represents product family name that uniquely identifies product family ProductFamilyName *string `json:"productFamilyName,omitempty"` // Represents product line name that uniquely identifies product line ProductLineName *string `json:"productLineName,omitempty"` // Represents product name that uniquely identifies product ProductName *string `json:"productName,omitempty"` }
HierarchyInformation - Holds details about product hierarchy information
type ImageInformation ¶
type ImageInformation struct { // READ-ONLY; Type of the image ImageType *ImageType `json:"imageType,omitempty" azure:"ro"` // READ-ONLY; Url of the image ImageURL *string `json:"imageUrl,omitempty" azure:"ro"` }
ImageInformation - Image for the product
type ImageType ¶
type ImageType string
ImageType - Type of the image
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.
func (LengthHeightUnit) ToPtr ¶
func (c LengthHeightUnit) ToPtr() *LengthHeightUnit
ToPtr returns a *LengthHeightUnit pointing to the current value.
type Link ¶
type Link struct { // READ-ONLY; Type of link LinkType *LinkType `json:"linkType,omitempty" azure:"ro"` // READ-ONLY; Url of the link LinkURL *string `json:"linkUrl,omitempty" azure:"ro"` }
Link - Returns link related to the product
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
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) (ManagementClientCreateAddressPollerResponse, 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. 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 ¶
x-ms-original-file: specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/CreateAddress.json
package main import ( "context" "log" "time" "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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateAddress(ctx, "<address-name>", "<resource-group-name>", armedgeorder.AddressResource{ Location: to.StringPtr("<location>"), Properties: &armedgeorder.AddressProperties{ ContactDetails: &armedgeorder.ContactDetails{ ContactName: to.StringPtr("<contact-name>"), EmailList: []*string{ to.StringPtr("testemail@microsoft.com")}, Phone: to.StringPtr("<phone>"), PhoneExtension: to.StringPtr("<phone-extension>"), }, ShippingAddress: &armedgeorder.ShippingAddress{ AddressType: armedgeorder.AddressType("None").ToPtr(), City: to.StringPtr("<city>"), CompanyName: to.StringPtr("<company-name>"), Country: to.StringPtr("<country>"), PostalCode: to.StringPtr("<postal-code>"), StateOrProvince: to.StringPtr("<state-or-province>"), StreetAddress1: to.StringPtr("<street-address1>"), StreetAddress2: to.StringPtr("<street-address2>"), }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ManagementClientCreateAddressResult) }
Output:
func (*ManagementClient) BeginCreateOrderItem ¶ added in v0.2.0
func (client *ManagementClient) BeginCreateOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, orderItemResource OrderItemResource, options *ManagementClientBeginCreateOrderItemOptions) (ManagementClientCreateOrderItemPollerResponse, 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. 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 ¶
x-ms-original-file: specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/CreateOrderItem.json
package main import ( "context" "log" "time" "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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) poller, err := client.BeginCreateOrderItem(ctx, "<order-item-name>", "<resource-group-name>", armedgeorder.OrderItemResource{ Location: to.StringPtr("<location>"), Tags: map[string]*string{ "carrot": to.StringPtr("vegetable"), "mango": to.StringPtr("fruit"), }, Properties: &armedgeorder.OrderItemProperties{ AddressDetails: &armedgeorder.AddressDetails{ ForwardAddress: &armedgeorder.AddressProperties{ ContactDetails: &armedgeorder.ContactDetails{ ContactName: to.StringPtr("<contact-name>"), EmailList: []*string{ to.StringPtr("ssemmail@microsoft.com"), to.StringPtr("vishwamdir@microsoft.com")}, Phone: to.StringPtr("<phone>"), }, ShippingAddress: &armedgeorder.ShippingAddress{ AddressType: armedgeorder.AddressType("Residential").ToPtr(), City: to.StringPtr("<city>"), CompanyName: to.StringPtr("<company-name>"), Country: to.StringPtr("<country>"), PostalCode: to.StringPtr("<postal-code>"), StateOrProvince: to.StringPtr("<state-or-province>"), StreetAddress1: to.StringPtr("<street-address1>"), StreetAddress2: to.StringPtr("<street-address2>"), ZipExtendedCode: to.StringPtr("<zip-extended-code>"), }, }, }, OrderID: to.StringPtr("<order-id>"), OrderItemDetails: &armedgeorder.OrderItemDetails{ OrderItemType: armedgeorder.OrderItemType("Purchase").ToPtr(), Preferences: &armedgeorder.Preferences{ TransportPreferences: &armedgeorder.TransportPreferences{ PreferredShipmentType: armedgeorder.TransportShipmentTypes("MicrosoftManaged").ToPtr(), }, }, ProductDetails: &armedgeorder.ProductDetails{ HierarchyInformation: &armedgeorder.HierarchyInformation{ ConfigurationName: to.StringPtr("<configuration-name>"), ProductFamilyName: to.StringPtr("<product-family-name>"), ProductLineName: to.StringPtr("<product-line-name>"), ProductName: to.StringPtr("<product-name>"), }, }, }, }, }, nil) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ManagementClientCreateOrderItemResult) }
Output:
func (*ManagementClient) BeginDeleteAddressByName ¶ added in v0.2.0
func (client *ManagementClient) BeginDeleteAddressByName(ctx context.Context, addressName string, resourceGroupName string, options *ManagementClientBeginDeleteAddressByNameOptions) (ManagementClientDeleteAddressByNamePollerResponse, error)
BeginDeleteAddressByName - Deletes an address. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/DeleteAddressByName.json
package main import ( "context" "log" "time" "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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) poller, err := client.BeginDeleteAddressByName(ctx, "<address-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*ManagementClient) BeginDeleteOrderItemByName ¶ added in v0.2.0
func (client *ManagementClient) BeginDeleteOrderItemByName(ctx context.Context, orderItemName string, resourceGroupName string, options *ManagementClientBeginDeleteOrderItemByNameOptions) (ManagementClientDeleteOrderItemByNamePollerResponse, error)
BeginDeleteOrderItemByName - Deletes an order item. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/DeleteOrderItemByName.json
package main import ( "context" "log" "time" "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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) poller, err := client.BeginDeleteOrderItemByName(ctx, "<order-item-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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) (ManagementClientReturnOrderItemPollerResponse, error)
BeginReturnOrderItem - Return order item. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/ReturnOrderItem.json
package main import ( "context" "log" "time" "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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) poller, err := client.BeginReturnOrderItem(ctx, "<order-item-name>", "<resource-group-name>", armedgeorder.ReturnOrderItemDetails{ ReturnReason: to.StringPtr("<return-reason>"), }, nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(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) (ManagementClientUpdateAddressPollerResponse, error)
BeginUpdateAddress - Updates the properties of an existing address. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/UpdateAddress.json
package main import ( "context" "log" "time" "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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdateAddress(ctx, "<address-name>", "<resource-group-name>", armedgeorder.AddressUpdateParameter{ Properties: &armedgeorder.AddressUpdateProperties{ ContactDetails: &armedgeorder.ContactDetails{ ContactName: to.StringPtr("<contact-name>"), EmailList: []*string{ to.StringPtr("ssemcr@microsoft.com")}, Phone: to.StringPtr("<phone>"), PhoneExtension: to.StringPtr("<phone-extension>"), }, ShippingAddress: &armedgeorder.ShippingAddress{ AddressType: armedgeorder.AddressType("None").ToPtr(), City: to.StringPtr("<city>"), CompanyName: to.StringPtr("<company-name>"), Country: to.StringPtr("<country>"), PostalCode: to.StringPtr("<postal-code>"), StateOrProvince: to.StringPtr("<state-or-province>"), StreetAddress1: to.StringPtr("<street-address1>"), StreetAddress2: to.StringPtr("<street-address2>"), }, }, Tags: map[string]*string{ "Hobby": to.StringPtr("Web Series Added"), "Name": to.StringPtr("Smile-Updated"), "WhatElse": to.StringPtr("Web Series Added"), "Work": to.StringPtr("Engineering"), }, }, &armedgeorder.ManagementClientBeginUpdateAddressOptions{IfMatch: nil}) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ManagementClientUpdateAddressResult) }
Output:
func (*ManagementClient) BeginUpdateOrderItem ¶ added in v0.2.0
func (client *ManagementClient) BeginUpdateOrderItem(ctx context.Context, orderItemName string, resourceGroupName string, orderItemUpdateParameter OrderItemUpdateParameter, options *ManagementClientBeginUpdateOrderItemOptions) (ManagementClientUpdateOrderItemPollerResponse, error)
BeginUpdateOrderItem - Updates the properties of an existing order item. If the operation fails it returns an *azcore.ResponseError type. 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 ¶
x-ms-original-file: specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/examples/UpdateOrderItem.json
package main import ( "context" "log" "time" "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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) poller, err := client.BeginUpdateOrderItem(ctx, "<order-item-name>", "<resource-group-name>", armedgeorder.OrderItemUpdateParameter{ Properties: &armedgeorder.OrderItemUpdateProperties{ ForwardAddress: &armedgeorder.AddressProperties{ ContactDetails: &armedgeorder.ContactDetails{ ContactName: to.StringPtr("<contact-name>"), EmailList: []*string{ to.StringPtr("testemail@microsoft.com")}, Phone: to.StringPtr("<phone>"), }, }, Preferences: &armedgeorder.Preferences{ TransportPreferences: &armedgeorder.TransportPreferences{ PreferredShipmentType: armedgeorder.TransportShipmentTypes("CustomerManaged").ToPtr(), }, }, }, Tags: map[string]*string{ "ant": to.StringPtr("insect"), "pigeon": to.StringPtr("bird"), "tiger": to.StringPtr("animal"), }, }, &armedgeorder.ManagementClientBeginUpdateOrderItemOptions{IfMatch: nil}) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ManagementClientUpdateOrderItemResult) }
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. 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 ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) _, err = client.CancelOrderItem(ctx, "<order-item-name>", "<resource-group-name>", armedgeorder.CancellationReason{ Reason: to.StringPtr("<reason>"), }, nil) if err != nil { log.Fatal(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. 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 ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) res, err := client.GetAddressByName(ctx, "<address-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ManagementClientGetAddressByNameResult) }
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. 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 ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) res, err := client.GetOrderByName(ctx, "<order-name>", "<resource-group-name>", "<location>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ManagementClientGetOrderByNameResult) }
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. 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 ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) res, err := client.GetOrderItemByName(ctx, "<order-item-name>", "<resource-group-name>", &armedgeorder.ManagementClientGetOrderItemByNameOptions{Expand: nil}) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.ManagementClientGetOrderItemByNameResult) }
Output:
func (*ManagementClient) ListAddressesAtResourceGroupLevel ¶ added in v0.2.0
func (client *ManagementClient) ListAddressesAtResourceGroupLevel(resourceGroupName string, options *ManagementClientListAddressesAtResourceGroupLevelOptions) *ManagementClientListAddressesAtResourceGroupLevelPager
ListAddressesAtResourceGroupLevel - Lists all the addresses available under the given resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ManagementClientListAddressesAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.ListAddressesAtResourceGroupLevel method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListAddressesAtResourceGroupLevel("<resource-group-name>", &armedgeorder.ManagementClientListAddressesAtResourceGroupLevelOptions{Filter: nil, SkipToken: nil, }) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListAddressesAtSubscriptionLevel ¶ added in v0.2.0
func (client *ManagementClient) ListAddressesAtSubscriptionLevel(options *ManagementClientListAddressesAtSubscriptionLevelOptions) *ManagementClientListAddressesAtSubscriptionLevelPager
ListAddressesAtSubscriptionLevel - Lists all the addresses available under the subscription. If the operation fails it returns an *azcore.ResponseError type. options - ManagementClientListAddressesAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.ListAddressesAtSubscriptionLevel method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListAddressesAtSubscriptionLevel(&armedgeorder.ManagementClientListAddressesAtSubscriptionLevelOptions{Filter: nil, SkipToken: nil, }) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListConfigurations ¶ added in v0.2.0
func (client *ManagementClient) ListConfigurations(configurationsRequest ConfigurationsRequest, options *ManagementClientListConfigurationsOptions) *ManagementClientListConfigurationsPager
ListConfigurations - This method provides the list of configurations for the given product family, product line and product under subscription. If the operation fails it returns an *azcore.ResponseError type. configurationsRequest - Filters for showing the configurations. options - ManagementClientListConfigurationsOptions contains the optional parameters for the ManagementClient.ListConfigurations method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListConfigurations(armedgeorder.ConfigurationsRequest{ ConfigurationFilters: []*armedgeorder.ConfigurationFilters{ { FilterableProperty: []*armedgeorder.FilterableProperty{ { Type: armedgeorder.SupportedFilterTypes("ShipToCountries").ToPtr(), SupportedValues: []*string{ to.StringPtr("US")}, }}, HierarchyInformation: &armedgeorder.HierarchyInformation{ ProductFamilyName: to.StringPtr("<product-family-name>"), ProductLineName: to.StringPtr("<product-line-name>"), ProductName: to.StringPtr("<product-name>"), }, }}, }, &armedgeorder.ManagementClientListConfigurationsOptions{SkipToken: nil}) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListOperations ¶ added in v0.2.0
func (client *ManagementClient) ListOperations(options *ManagementClientListOperationsOptions) *ManagementClientListOperationsPager
ListOperations - This method gets all the operations that are exposed for customer. If the operation fails it returns an *azcore.ResponseError type. options - ManagementClientListOperationsOptions contains the optional parameters for the ManagementClient.ListOperations method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListOperations(nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListOrderAtResourceGroupLevel ¶ added in v0.2.0
func (client *ManagementClient) ListOrderAtResourceGroupLevel(resourceGroupName string, options *ManagementClientListOrderAtResourceGroupLevelOptions) *ManagementClientListOrderAtResourceGroupLevelPager
ListOrderAtResourceGroupLevel - Lists order at resource group level. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ManagementClientListOrderAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.ListOrderAtResourceGroupLevel method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListOrderAtResourceGroupLevel("<resource-group-name>", &armedgeorder.ManagementClientListOrderAtResourceGroupLevelOptions{SkipToken: nil}) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListOrderAtSubscriptionLevel ¶ added in v0.2.0
func (client *ManagementClient) ListOrderAtSubscriptionLevel(options *ManagementClientListOrderAtSubscriptionLevelOptions) *ManagementClientListOrderAtSubscriptionLevelPager
ListOrderAtSubscriptionLevel - Lists order at subscription level. If the operation fails it returns an *azcore.ResponseError type. options - ManagementClientListOrderAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.ListOrderAtSubscriptionLevel method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListOrderAtSubscriptionLevel(&armedgeorder.ManagementClientListOrderAtSubscriptionLevelOptions{SkipToken: nil}) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListOrderItemsAtResourceGroupLevel ¶ added in v0.2.0
func (client *ManagementClient) ListOrderItemsAtResourceGroupLevel(resourceGroupName string, options *ManagementClientListOrderItemsAtResourceGroupLevelOptions) *ManagementClientListOrderItemsAtResourceGroupLevelPager
ListOrderItemsAtResourceGroupLevel - Lists order item at resource group level. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - ManagementClientListOrderItemsAtResourceGroupLevelOptions contains the optional parameters for the ManagementClient.ListOrderItemsAtResourceGroupLevel method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListOrderItemsAtResourceGroupLevel("<resource-group-name>", &armedgeorder.ManagementClientListOrderItemsAtResourceGroupLevelOptions{Filter: nil, Expand: nil, SkipToken: nil, }) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListOrderItemsAtSubscriptionLevel ¶ added in v0.2.0
func (client *ManagementClient) ListOrderItemsAtSubscriptionLevel(options *ManagementClientListOrderItemsAtSubscriptionLevelOptions) *ManagementClientListOrderItemsAtSubscriptionLevelPager
ListOrderItemsAtSubscriptionLevel - Lists order item at subscription level. If the operation fails it returns an *azcore.ResponseError type. options - ManagementClientListOrderItemsAtSubscriptionLevelOptions contains the optional parameters for the ManagementClient.ListOrderItemsAtSubscriptionLevel method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListOrderItemsAtSubscriptionLevel(&armedgeorder.ManagementClientListOrderItemsAtSubscriptionLevelOptions{Filter: nil, Expand: nil, SkipToken: nil, }) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListProductFamilies ¶ added in v0.2.0
func (client *ManagementClient) ListProductFamilies(productFamiliesRequest ProductFamiliesRequest, options *ManagementClientListProductFamiliesOptions) *ManagementClientListProductFamiliesPager
ListProductFamilies - This method provides the list of product families for the given subscription. If the operation fails it returns an *azcore.ResponseError type. productFamiliesRequest - Filters for showing the product families. options - ManagementClientListProductFamiliesOptions contains the optional parameters for the ManagementClient.ListProductFamilies method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListProductFamilies(armedgeorder.ProductFamiliesRequest{ FilterableProperties: map[string][]*armedgeorder.FilterableProperty{ "azurestackedge": { { Type: armedgeorder.SupportedFilterTypes("ShipToCountries").ToPtr(), SupportedValues: []*string{ to.StringPtr("US")}, }}, }, }, &armedgeorder.ManagementClientListProductFamiliesOptions{Expand: nil, SkipToken: nil, }) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*ManagementClient) ListProductFamiliesMetadata ¶ added in v0.2.0
func (client *ManagementClient) ListProductFamiliesMetadata(options *ManagementClientListProductFamiliesMetadataOptions) *ManagementClientListProductFamiliesMetadataPager
ListProductFamiliesMetadata - This method provides the list of product families metadata for the given subscription. If the operation fails it returns an *azcore.ResponseError type. options - ManagementClientListProductFamiliesMetadataOptions contains the optional parameters for the ManagementClient.ListProductFamiliesMetadata method.
Example ¶
x-ms-original-file: 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() client := armedgeorder.NewManagementClient("<subscription-id>", cred, nil) pager := client.ListProductFamiliesMetadata(&armedgeorder.ManagementClientListProductFamiliesMetadataOptions{SkipToken: nil}) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type ManagementClientBeginCreateAddressOptions ¶ added in v0.2.0
type ManagementClientBeginCreateAddressOptions struct { }
ManagementClientBeginCreateAddressOptions contains the optional parameters for the ManagementClient.BeginCreateAddress method.
type ManagementClientBeginCreateOrderItemOptions ¶ added in v0.2.0
type ManagementClientBeginCreateOrderItemOptions struct { }
ManagementClientBeginCreateOrderItemOptions contains the optional parameters for the ManagementClient.BeginCreateOrderItem method.
type ManagementClientBeginDeleteAddressByNameOptions ¶ added in v0.2.0
type ManagementClientBeginDeleteAddressByNameOptions struct { }
ManagementClientBeginDeleteAddressByNameOptions contains the optional parameters for the ManagementClient.BeginDeleteAddressByName method.
type ManagementClientBeginDeleteOrderItemByNameOptions ¶ added in v0.2.0
type ManagementClientBeginDeleteOrderItemByNameOptions struct { }
ManagementClientBeginDeleteOrderItemByNameOptions contains the optional parameters for the ManagementClient.BeginDeleteOrderItemByName method.
type ManagementClientBeginReturnOrderItemOptions ¶ added in v0.2.0
type ManagementClientBeginReturnOrderItemOptions struct { }
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 }
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 }
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 { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientCancelOrderItemResponse contains the response from method ManagementClient.CancelOrderItem.
type ManagementClientCreateAddressPoller ¶ added in v0.2.0
type ManagementClientCreateAddressPoller struct {
// contains filtered or unexported fields
}
ManagementClientCreateAddressPoller provides polling facilities until the operation reaches a terminal state.
func (*ManagementClientCreateAddressPoller) Done ¶ added in v0.2.0
func (p *ManagementClientCreateAddressPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ManagementClientCreateAddressPoller) FinalResponse ¶ added in v0.2.0
func (p *ManagementClientCreateAddressPoller) FinalResponse(ctx context.Context) (ManagementClientCreateAddressResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ManagementClientCreateAddressResponse will be returned.
func (*ManagementClientCreateAddressPoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ManagementClientCreateAddressPoller) ResumeToken ¶ added in v0.2.0
func (p *ManagementClientCreateAddressPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ManagementClientCreateAddressPollerResponse ¶ added in v0.2.0
type ManagementClientCreateAddressPollerResponse struct { // Poller contains an initialized poller. Poller *ManagementClientCreateAddressPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientCreateAddressPollerResponse contains the response from method ManagementClient.CreateAddress.
func (ManagementClientCreateAddressPollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ManagementClientCreateAddressPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientCreateAddressResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ManagementClientCreateAddressPollerResponse) Resume ¶ added in v0.2.0
func (l *ManagementClientCreateAddressPollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
Resume rehydrates a ManagementClientCreateAddressPollerResponse from the provided client and resume token.
type ManagementClientCreateAddressResponse ¶ added in v0.2.0
type ManagementClientCreateAddressResponse struct { ManagementClientCreateAddressResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientCreateAddressResponse contains the response from method ManagementClient.CreateAddress.
type ManagementClientCreateAddressResult ¶ added in v0.2.0
type ManagementClientCreateAddressResult struct {
AddressResource
}
ManagementClientCreateAddressResult contains the result from method ManagementClient.CreateAddress.
type ManagementClientCreateOrderItemPoller ¶ added in v0.2.0
type ManagementClientCreateOrderItemPoller struct {
// contains filtered or unexported fields
}
ManagementClientCreateOrderItemPoller provides polling facilities until the operation reaches a terminal state.
func (*ManagementClientCreateOrderItemPoller) Done ¶ added in v0.2.0
func (p *ManagementClientCreateOrderItemPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ManagementClientCreateOrderItemPoller) FinalResponse ¶ added in v0.2.0
func (p *ManagementClientCreateOrderItemPoller) FinalResponse(ctx context.Context) (ManagementClientCreateOrderItemResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ManagementClientCreateOrderItemResponse will be returned.
func (*ManagementClientCreateOrderItemPoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ManagementClientCreateOrderItemPoller) ResumeToken ¶ added in v0.2.0
func (p *ManagementClientCreateOrderItemPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ManagementClientCreateOrderItemPollerResponse ¶ added in v0.2.0
type ManagementClientCreateOrderItemPollerResponse struct { // Poller contains an initialized poller. Poller *ManagementClientCreateOrderItemPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientCreateOrderItemPollerResponse contains the response from method ManagementClient.CreateOrderItem.
func (ManagementClientCreateOrderItemPollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ManagementClientCreateOrderItemPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientCreateOrderItemResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ManagementClientCreateOrderItemPollerResponse) Resume ¶ added in v0.2.0
func (l *ManagementClientCreateOrderItemPollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
Resume rehydrates a ManagementClientCreateOrderItemPollerResponse from the provided client and resume token.
type ManagementClientCreateOrderItemResponse ¶ added in v0.2.0
type ManagementClientCreateOrderItemResponse struct { ManagementClientCreateOrderItemResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientCreateOrderItemResponse contains the response from method ManagementClient.CreateOrderItem.
type ManagementClientCreateOrderItemResult ¶ added in v0.2.0
type ManagementClientCreateOrderItemResult struct {
OrderItemResource
}
ManagementClientCreateOrderItemResult contains the result from method ManagementClient.CreateOrderItem.
type ManagementClientDeleteAddressByNamePoller ¶ added in v0.2.0
type ManagementClientDeleteAddressByNamePoller struct {
// contains filtered or unexported fields
}
ManagementClientDeleteAddressByNamePoller provides polling facilities until the operation reaches a terminal state.
func (*ManagementClientDeleteAddressByNamePoller) Done ¶ added in v0.2.0
func (p *ManagementClientDeleteAddressByNamePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ManagementClientDeleteAddressByNamePoller) FinalResponse ¶ added in v0.2.0
func (p *ManagementClientDeleteAddressByNamePoller) FinalResponse(ctx context.Context) (ManagementClientDeleteAddressByNameResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ManagementClientDeleteAddressByNameResponse will be returned.
func (*ManagementClientDeleteAddressByNamePoller) Poll ¶ added in v0.2.0
func (p *ManagementClientDeleteAddressByNamePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ManagementClientDeleteAddressByNamePoller) ResumeToken ¶ added in v0.2.0
func (p *ManagementClientDeleteAddressByNamePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ManagementClientDeleteAddressByNamePollerResponse ¶ added in v0.2.0
type ManagementClientDeleteAddressByNamePollerResponse struct { // Poller contains an initialized poller. Poller *ManagementClientDeleteAddressByNamePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientDeleteAddressByNamePollerResponse contains the response from method ManagementClient.DeleteAddressByName.
func (ManagementClientDeleteAddressByNamePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ManagementClientDeleteAddressByNamePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientDeleteAddressByNameResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ManagementClientDeleteAddressByNamePollerResponse) Resume ¶ added in v0.2.0
func (l *ManagementClientDeleteAddressByNamePollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
Resume rehydrates a ManagementClientDeleteAddressByNamePollerResponse from the provided client and resume token.
type ManagementClientDeleteAddressByNameResponse ¶ added in v0.2.0
type ManagementClientDeleteAddressByNameResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientDeleteAddressByNameResponse contains the response from method ManagementClient.DeleteAddressByName.
type ManagementClientDeleteOrderItemByNamePoller ¶ added in v0.2.0
type ManagementClientDeleteOrderItemByNamePoller struct {
// contains filtered or unexported fields
}
ManagementClientDeleteOrderItemByNamePoller provides polling facilities until the operation reaches a terminal state.
func (*ManagementClientDeleteOrderItemByNamePoller) Done ¶ added in v0.2.0
func (p *ManagementClientDeleteOrderItemByNamePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ManagementClientDeleteOrderItemByNamePoller) FinalResponse ¶ added in v0.2.0
func (p *ManagementClientDeleteOrderItemByNamePoller) FinalResponse(ctx context.Context) (ManagementClientDeleteOrderItemByNameResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ManagementClientDeleteOrderItemByNameResponse will be returned.
func (*ManagementClientDeleteOrderItemByNamePoller) Poll ¶ added in v0.2.0
func (p *ManagementClientDeleteOrderItemByNamePoller) Poll(ctx context.Context) (*http.Response, error)
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ManagementClientDeleteOrderItemByNamePoller) ResumeToken ¶ added in v0.2.0
func (p *ManagementClientDeleteOrderItemByNamePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ManagementClientDeleteOrderItemByNamePollerResponse ¶ added in v0.2.0
type ManagementClientDeleteOrderItemByNamePollerResponse struct { // Poller contains an initialized poller. Poller *ManagementClientDeleteOrderItemByNamePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientDeleteOrderItemByNamePollerResponse contains the response from method ManagementClient.DeleteOrderItemByName.
func (ManagementClientDeleteOrderItemByNamePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ManagementClientDeleteOrderItemByNamePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientDeleteOrderItemByNameResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ManagementClientDeleteOrderItemByNamePollerResponse) Resume ¶ added in v0.2.0
func (l *ManagementClientDeleteOrderItemByNamePollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
Resume rehydrates a ManagementClientDeleteOrderItemByNamePollerResponse from the provided client and resume token.
type ManagementClientDeleteOrderItemByNameResponse ¶ added in v0.2.0
type ManagementClientDeleteOrderItemByNameResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientDeleteOrderItemByNameResponse contains the response from method ManagementClient.DeleteOrderItemByName.
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 { ManagementClientGetAddressByNameResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientGetAddressByNameResponse contains the response from method ManagementClient.GetAddressByName.
type ManagementClientGetAddressByNameResult ¶ added in v0.2.0
type ManagementClientGetAddressByNameResult struct {
AddressResource
}
ManagementClientGetAddressByNameResult contains the result 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 { ManagementClientGetOrderByNameResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientGetOrderByNameResponse contains the response from method ManagementClient.GetOrderByName.
type ManagementClientGetOrderByNameResult ¶ added in v0.2.0
type ManagementClientGetOrderByNameResult struct {
OrderResource
}
ManagementClientGetOrderByNameResult contains the result 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 { ManagementClientGetOrderItemByNameResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientGetOrderItemByNameResponse contains the response from method ManagementClient.GetOrderItemByName.
type ManagementClientGetOrderItemByNameResult ¶ added in v0.2.0
type ManagementClientGetOrderItemByNameResult struct {
OrderItemResource
}
ManagementClientGetOrderItemByNameResult contains the result 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.ListAddressesAtResourceGroupLevel method.
type ManagementClientListAddressesAtResourceGroupLevelPager ¶ added in v0.2.0
type ManagementClientListAddressesAtResourceGroupLevelPager struct {
// contains filtered or unexported fields
}
ManagementClientListAddressesAtResourceGroupLevelPager provides operations for iterating over paged responses.
func (*ManagementClientListAddressesAtResourceGroupLevelPager) Err ¶ added in v0.2.0
func (p *ManagementClientListAddressesAtResourceGroupLevelPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListAddressesAtResourceGroupLevelPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListAddressesAtResourceGroupLevelPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListAddressesAtResourceGroupLevelPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListAddressesAtResourceGroupLevelPager) PageResponse() ManagementClientListAddressesAtResourceGroupLevelResponse
PageResponse returns the current ManagementClientListAddressesAtResourceGroupLevelResponse page.
type ManagementClientListAddressesAtResourceGroupLevelResponse ¶ added in v0.2.0
type ManagementClientListAddressesAtResourceGroupLevelResponse struct { ManagementClientListAddressesAtResourceGroupLevelResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListAddressesAtResourceGroupLevelResponse contains the response from method ManagementClient.ListAddressesAtResourceGroupLevel.
type ManagementClientListAddressesAtResourceGroupLevelResult ¶ added in v0.2.0
type ManagementClientListAddressesAtResourceGroupLevelResult struct {
AddressResourceList
}
ManagementClientListAddressesAtResourceGroupLevelResult contains the result from method ManagementClient.ListAddressesAtResourceGroupLevel.
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.ListAddressesAtSubscriptionLevel method.
type ManagementClientListAddressesAtSubscriptionLevelPager ¶ added in v0.2.0
type ManagementClientListAddressesAtSubscriptionLevelPager struct {
// contains filtered or unexported fields
}
ManagementClientListAddressesAtSubscriptionLevelPager provides operations for iterating over paged responses.
func (*ManagementClientListAddressesAtSubscriptionLevelPager) Err ¶ added in v0.2.0
func (p *ManagementClientListAddressesAtSubscriptionLevelPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListAddressesAtSubscriptionLevelPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListAddressesAtSubscriptionLevelPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListAddressesAtSubscriptionLevelPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListAddressesAtSubscriptionLevelPager) PageResponse() ManagementClientListAddressesAtSubscriptionLevelResponse
PageResponse returns the current ManagementClientListAddressesAtSubscriptionLevelResponse page.
type ManagementClientListAddressesAtSubscriptionLevelResponse ¶ added in v0.2.0
type ManagementClientListAddressesAtSubscriptionLevelResponse struct { ManagementClientListAddressesAtSubscriptionLevelResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListAddressesAtSubscriptionLevelResponse contains the response from method ManagementClient.ListAddressesAtSubscriptionLevel.
type ManagementClientListAddressesAtSubscriptionLevelResult ¶ added in v0.2.0
type ManagementClientListAddressesAtSubscriptionLevelResult struct {
AddressResourceList
}
ManagementClientListAddressesAtSubscriptionLevelResult contains the result from method ManagementClient.ListAddressesAtSubscriptionLevel.
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.ListConfigurations method.
type ManagementClientListConfigurationsPager ¶ added in v0.2.0
type ManagementClientListConfigurationsPager struct {
// contains filtered or unexported fields
}
ManagementClientListConfigurationsPager provides operations for iterating over paged responses.
func (*ManagementClientListConfigurationsPager) Err ¶ added in v0.2.0
func (p *ManagementClientListConfigurationsPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListConfigurationsPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListConfigurationsPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListConfigurationsPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListConfigurationsPager) PageResponse() ManagementClientListConfigurationsResponse
PageResponse returns the current ManagementClientListConfigurationsResponse page.
type ManagementClientListConfigurationsResponse ¶ added in v0.2.0
type ManagementClientListConfigurationsResponse struct { ManagementClientListConfigurationsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListConfigurationsResponse contains the response from method ManagementClient.ListConfigurations.
type ManagementClientListConfigurationsResult ¶ added in v0.2.0
type ManagementClientListConfigurationsResult struct {
Configurations
}
ManagementClientListConfigurationsResult contains the result from method ManagementClient.ListConfigurations.
type ManagementClientListOperationsOptions ¶ added in v0.2.0
type ManagementClientListOperationsOptions struct { }
ManagementClientListOperationsOptions contains the optional parameters for the ManagementClient.ListOperations method.
type ManagementClientListOperationsPager ¶ added in v0.2.0
type ManagementClientListOperationsPager struct {
// contains filtered or unexported fields
}
ManagementClientListOperationsPager provides operations for iterating over paged responses.
func (*ManagementClientListOperationsPager) Err ¶ added in v0.2.0
func (p *ManagementClientListOperationsPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListOperationsPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListOperationsPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListOperationsPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListOperationsPager) PageResponse() ManagementClientListOperationsResponse
PageResponse returns the current ManagementClientListOperationsResponse page.
type ManagementClientListOperationsResponse ¶ added in v0.2.0
type ManagementClientListOperationsResponse struct { ManagementClientListOperationsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListOperationsResponse contains the response from method ManagementClient.ListOperations.
type ManagementClientListOperationsResult ¶ added in v0.2.0
type ManagementClientListOperationsResult struct {
OperationListResult
}
ManagementClientListOperationsResult contains the result from method ManagementClient.ListOperations.
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.ListOrderAtResourceGroupLevel method.
type ManagementClientListOrderAtResourceGroupLevelPager ¶ added in v0.2.0
type ManagementClientListOrderAtResourceGroupLevelPager struct {
// contains filtered or unexported fields
}
ManagementClientListOrderAtResourceGroupLevelPager provides operations for iterating over paged responses.
func (*ManagementClientListOrderAtResourceGroupLevelPager) Err ¶ added in v0.2.0
func (p *ManagementClientListOrderAtResourceGroupLevelPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListOrderAtResourceGroupLevelPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListOrderAtResourceGroupLevelPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListOrderAtResourceGroupLevelPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListOrderAtResourceGroupLevelPager) PageResponse() ManagementClientListOrderAtResourceGroupLevelResponse
PageResponse returns the current ManagementClientListOrderAtResourceGroupLevelResponse page.
type ManagementClientListOrderAtResourceGroupLevelResponse ¶ added in v0.2.0
type ManagementClientListOrderAtResourceGroupLevelResponse struct { ManagementClientListOrderAtResourceGroupLevelResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListOrderAtResourceGroupLevelResponse contains the response from method ManagementClient.ListOrderAtResourceGroupLevel.
type ManagementClientListOrderAtResourceGroupLevelResult ¶ added in v0.2.0
type ManagementClientListOrderAtResourceGroupLevelResult struct {
OrderResourceList
}
ManagementClientListOrderAtResourceGroupLevelResult contains the result from method ManagementClient.ListOrderAtResourceGroupLevel.
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.ListOrderAtSubscriptionLevel method.
type ManagementClientListOrderAtSubscriptionLevelPager ¶ added in v0.2.0
type ManagementClientListOrderAtSubscriptionLevelPager struct {
// contains filtered or unexported fields
}
ManagementClientListOrderAtSubscriptionLevelPager provides operations for iterating over paged responses.
func (*ManagementClientListOrderAtSubscriptionLevelPager) Err ¶ added in v0.2.0
func (p *ManagementClientListOrderAtSubscriptionLevelPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListOrderAtSubscriptionLevelPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListOrderAtSubscriptionLevelPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListOrderAtSubscriptionLevelPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListOrderAtSubscriptionLevelPager) PageResponse() ManagementClientListOrderAtSubscriptionLevelResponse
PageResponse returns the current ManagementClientListOrderAtSubscriptionLevelResponse page.
type ManagementClientListOrderAtSubscriptionLevelResponse ¶ added in v0.2.0
type ManagementClientListOrderAtSubscriptionLevelResponse struct { ManagementClientListOrderAtSubscriptionLevelResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListOrderAtSubscriptionLevelResponse contains the response from method ManagementClient.ListOrderAtSubscriptionLevel.
type ManagementClientListOrderAtSubscriptionLevelResult ¶ added in v0.2.0
type ManagementClientListOrderAtSubscriptionLevelResult struct {
OrderResourceList
}
ManagementClientListOrderAtSubscriptionLevelResult contains the result from method ManagementClient.ListOrderAtSubscriptionLevel.
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.ListOrderItemsAtResourceGroupLevel method.
type ManagementClientListOrderItemsAtResourceGroupLevelPager ¶ added in v0.2.0
type ManagementClientListOrderItemsAtResourceGroupLevelPager struct {
// contains filtered or unexported fields
}
ManagementClientListOrderItemsAtResourceGroupLevelPager provides operations for iterating over paged responses.
func (*ManagementClientListOrderItemsAtResourceGroupLevelPager) Err ¶ added in v0.2.0
func (p *ManagementClientListOrderItemsAtResourceGroupLevelPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListOrderItemsAtResourceGroupLevelPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListOrderItemsAtResourceGroupLevelPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListOrderItemsAtResourceGroupLevelPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListOrderItemsAtResourceGroupLevelPager) PageResponse() ManagementClientListOrderItemsAtResourceGroupLevelResponse
PageResponse returns the current ManagementClientListOrderItemsAtResourceGroupLevelResponse page.
type ManagementClientListOrderItemsAtResourceGroupLevelResponse ¶ added in v0.2.0
type ManagementClientListOrderItemsAtResourceGroupLevelResponse struct { ManagementClientListOrderItemsAtResourceGroupLevelResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListOrderItemsAtResourceGroupLevelResponse contains the response from method ManagementClient.ListOrderItemsAtResourceGroupLevel.
type ManagementClientListOrderItemsAtResourceGroupLevelResult ¶ added in v0.2.0
type ManagementClientListOrderItemsAtResourceGroupLevelResult struct {
OrderItemResourceList
}
ManagementClientListOrderItemsAtResourceGroupLevelResult contains the result from method ManagementClient.ListOrderItemsAtResourceGroupLevel.
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.ListOrderItemsAtSubscriptionLevel method.
type ManagementClientListOrderItemsAtSubscriptionLevelPager ¶ added in v0.2.0
type ManagementClientListOrderItemsAtSubscriptionLevelPager struct {
// contains filtered or unexported fields
}
ManagementClientListOrderItemsAtSubscriptionLevelPager provides operations for iterating over paged responses.
func (*ManagementClientListOrderItemsAtSubscriptionLevelPager) Err ¶ added in v0.2.0
func (p *ManagementClientListOrderItemsAtSubscriptionLevelPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListOrderItemsAtSubscriptionLevelPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListOrderItemsAtSubscriptionLevelPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListOrderItemsAtSubscriptionLevelPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListOrderItemsAtSubscriptionLevelPager) PageResponse() ManagementClientListOrderItemsAtSubscriptionLevelResponse
PageResponse returns the current ManagementClientListOrderItemsAtSubscriptionLevelResponse page.
type ManagementClientListOrderItemsAtSubscriptionLevelResponse ¶ added in v0.2.0
type ManagementClientListOrderItemsAtSubscriptionLevelResponse struct { ManagementClientListOrderItemsAtSubscriptionLevelResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListOrderItemsAtSubscriptionLevelResponse contains the response from method ManagementClient.ListOrderItemsAtSubscriptionLevel.
type ManagementClientListOrderItemsAtSubscriptionLevelResult ¶ added in v0.2.0
type ManagementClientListOrderItemsAtSubscriptionLevelResult struct {
OrderItemResourceList
}
ManagementClientListOrderItemsAtSubscriptionLevelResult contains the result from method ManagementClient.ListOrderItemsAtSubscriptionLevel.
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.ListProductFamiliesMetadata method.
type ManagementClientListProductFamiliesMetadataPager ¶ added in v0.2.0
type ManagementClientListProductFamiliesMetadataPager struct {
// contains filtered or unexported fields
}
ManagementClientListProductFamiliesMetadataPager provides operations for iterating over paged responses.
func (*ManagementClientListProductFamiliesMetadataPager) Err ¶ added in v0.2.0
func (p *ManagementClientListProductFamiliesMetadataPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListProductFamiliesMetadataPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListProductFamiliesMetadataPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListProductFamiliesMetadataPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListProductFamiliesMetadataPager) PageResponse() ManagementClientListProductFamiliesMetadataResponse
PageResponse returns the current ManagementClientListProductFamiliesMetadataResponse page.
type ManagementClientListProductFamiliesMetadataResponse ¶ added in v0.2.0
type ManagementClientListProductFamiliesMetadataResponse struct { ManagementClientListProductFamiliesMetadataResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListProductFamiliesMetadataResponse contains the response from method ManagementClient.ListProductFamiliesMetadata.
type ManagementClientListProductFamiliesMetadataResult ¶ added in v0.2.0
type ManagementClientListProductFamiliesMetadataResult struct {
ProductFamiliesMetadata
}
ManagementClientListProductFamiliesMetadataResult contains the result from method ManagementClient.ListProductFamiliesMetadata.
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.ListProductFamilies method.
type ManagementClientListProductFamiliesPager ¶ added in v0.2.0
type ManagementClientListProductFamiliesPager struct {
// contains filtered or unexported fields
}
ManagementClientListProductFamiliesPager provides operations for iterating over paged responses.
func (*ManagementClientListProductFamiliesPager) Err ¶ added in v0.2.0
func (p *ManagementClientListProductFamiliesPager) Err() error
Err returns the last error encountered while paging.
func (*ManagementClientListProductFamiliesPager) NextPage ¶ added in v0.2.0
func (p *ManagementClientListProductFamiliesPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*ManagementClientListProductFamiliesPager) PageResponse ¶ added in v0.2.0
func (p *ManagementClientListProductFamiliesPager) PageResponse() ManagementClientListProductFamiliesResponse
PageResponse returns the current ManagementClientListProductFamiliesResponse page.
type ManagementClientListProductFamiliesResponse ¶ added in v0.2.0
type ManagementClientListProductFamiliesResponse struct { ManagementClientListProductFamiliesResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientListProductFamiliesResponse contains the response from method ManagementClient.ListProductFamilies.
type ManagementClientListProductFamiliesResult ¶ added in v0.2.0
type ManagementClientListProductFamiliesResult struct {
ProductFamilies
}
ManagementClientListProductFamiliesResult contains the result from method ManagementClient.ListProductFamilies.
type ManagementClientReturnOrderItemPoller ¶ added in v0.2.0
type ManagementClientReturnOrderItemPoller struct {
// contains filtered or unexported fields
}
ManagementClientReturnOrderItemPoller provides polling facilities until the operation reaches a terminal state.
func (*ManagementClientReturnOrderItemPoller) Done ¶ added in v0.2.0
func (p *ManagementClientReturnOrderItemPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ManagementClientReturnOrderItemPoller) FinalResponse ¶ added in v0.2.0
func (p *ManagementClientReturnOrderItemPoller) FinalResponse(ctx context.Context) (ManagementClientReturnOrderItemResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ManagementClientReturnOrderItemResponse will be returned.
func (*ManagementClientReturnOrderItemPoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ManagementClientReturnOrderItemPoller) ResumeToken ¶ added in v0.2.0
func (p *ManagementClientReturnOrderItemPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ManagementClientReturnOrderItemPollerResponse ¶ added in v0.2.0
type ManagementClientReturnOrderItemPollerResponse struct { // Poller contains an initialized poller. Poller *ManagementClientReturnOrderItemPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientReturnOrderItemPollerResponse contains the response from method ManagementClient.ReturnOrderItem.
func (ManagementClientReturnOrderItemPollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ManagementClientReturnOrderItemPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientReturnOrderItemResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ManagementClientReturnOrderItemPollerResponse) Resume ¶ added in v0.2.0
func (l *ManagementClientReturnOrderItemPollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
Resume rehydrates a ManagementClientReturnOrderItemPollerResponse from the provided client and resume token.
type ManagementClientReturnOrderItemResponse ¶ added in v0.2.0
type ManagementClientReturnOrderItemResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientReturnOrderItemResponse contains the response from method ManagementClient.ReturnOrderItem.
type ManagementClientUpdateAddressPoller ¶ added in v0.2.0
type ManagementClientUpdateAddressPoller struct {
// contains filtered or unexported fields
}
ManagementClientUpdateAddressPoller provides polling facilities until the operation reaches a terminal state.
func (*ManagementClientUpdateAddressPoller) Done ¶ added in v0.2.0
func (p *ManagementClientUpdateAddressPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ManagementClientUpdateAddressPoller) FinalResponse ¶ added in v0.2.0
func (p *ManagementClientUpdateAddressPoller) FinalResponse(ctx context.Context) (ManagementClientUpdateAddressResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ManagementClientUpdateAddressResponse will be returned.
func (*ManagementClientUpdateAddressPoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ManagementClientUpdateAddressPoller) ResumeToken ¶ added in v0.2.0
func (p *ManagementClientUpdateAddressPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ManagementClientUpdateAddressPollerResponse ¶ added in v0.2.0
type ManagementClientUpdateAddressPollerResponse struct { // Poller contains an initialized poller. Poller *ManagementClientUpdateAddressPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientUpdateAddressPollerResponse contains the response from method ManagementClient.UpdateAddress.
func (ManagementClientUpdateAddressPollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ManagementClientUpdateAddressPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientUpdateAddressResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ManagementClientUpdateAddressPollerResponse) Resume ¶ added in v0.2.0
func (l *ManagementClientUpdateAddressPollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
Resume rehydrates a ManagementClientUpdateAddressPollerResponse from the provided client and resume token.
type ManagementClientUpdateAddressResponse ¶ added in v0.2.0
type ManagementClientUpdateAddressResponse struct { ManagementClientUpdateAddressResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientUpdateAddressResponse contains the response from method ManagementClient.UpdateAddress.
type ManagementClientUpdateAddressResult ¶ added in v0.2.0
type ManagementClientUpdateAddressResult struct {
AddressResource
}
ManagementClientUpdateAddressResult contains the result from method ManagementClient.UpdateAddress.
type ManagementClientUpdateOrderItemPoller ¶ added in v0.2.0
type ManagementClientUpdateOrderItemPoller struct {
// contains filtered or unexported fields
}
ManagementClientUpdateOrderItemPoller provides polling facilities until the operation reaches a terminal state.
func (*ManagementClientUpdateOrderItemPoller) Done ¶ added in v0.2.0
func (p *ManagementClientUpdateOrderItemPoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*ManagementClientUpdateOrderItemPoller) FinalResponse ¶ added in v0.2.0
func (p *ManagementClientUpdateOrderItemPoller) FinalResponse(ctx context.Context) (ManagementClientUpdateOrderItemResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final ManagementClientUpdateOrderItemResponse will be returned.
func (*ManagementClientUpdateOrderItemPoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*ManagementClientUpdateOrderItemPoller) ResumeToken ¶ added in v0.2.0
func (p *ManagementClientUpdateOrderItemPoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type ManagementClientUpdateOrderItemPollerResponse ¶ added in v0.2.0
type ManagementClientUpdateOrderItemPollerResponse struct { // Poller contains an initialized poller. Poller *ManagementClientUpdateOrderItemPoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientUpdateOrderItemPollerResponse contains the response from method ManagementClient.UpdateOrderItem.
func (ManagementClientUpdateOrderItemPollerResponse) PollUntilDone ¶ added in v0.2.0
func (l ManagementClientUpdateOrderItemPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagementClientUpdateOrderItemResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*ManagementClientUpdateOrderItemPollerResponse) Resume ¶ added in v0.2.0
func (l *ManagementClientUpdateOrderItemPollerResponse) Resume(ctx context.Context, client *ManagementClient, token string) error
Resume rehydrates a ManagementClientUpdateOrderItemPollerResponse from the provided client and resume token.
type ManagementClientUpdateOrderItemResponse ¶ added in v0.2.0
type ManagementClientUpdateOrderItemResponse struct { ManagementClientUpdateOrderItemResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ManagementClientUpdateOrderItemResponse contains the response from method ManagementClient.UpdateOrderItem.
type ManagementClientUpdateOrderItemResult ¶ added in v0.2.0
type ManagementClientUpdateOrderItemResult struct {
OrderItemResource
}
ManagementClientUpdateOrderItemResult contains the result from method ManagementClient.UpdateOrderItem.
type ManagementResourcePreferences ¶
type ManagementResourcePreferences struct { // Customer preferred Management resource ARM ID PreferredManagementResourceID *string `json:"preferredManagementResourceId,omitempty"` }
ManagementResourcePreferences - Management resource preference to link device
type MeterDetails ¶
type MeterDetails struct { // REQUIRED; Represents billing type. BillingType *BillingType `json:"billingType,omitempty"` // READ-ONLY; Charging type. ChargingType *ChargingType `json:"chargingType,omitempty" azure:"ro"` // READ-ONLY; Billing unit applicable for Pav2 billing Multiplier *float64 `json:"multiplier,omitempty" azure:"ro"` }
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.
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.
func (MeteringType) ToPtr ¶
func (c MeteringType) ToPtr() *MeteringType
ToPtr returns a *MeteringType pointing to the current value.
type NotificationPreference ¶
type NotificationPreference struct { // REQUIRED; Notification is required or not. SendNotification *bool `json:"sendNotification,omitempty"` // REQUIRED; Name of the stage. StageName *NotificationStageName `json:"stageName,omitempty"` }
NotificationPreference - Notification preference for a job stage.
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.
func (NotificationStageName) ToPtr ¶
func (c NotificationStageName) ToPtr() *NotificationStageName
ToPtr returns a *NotificationStageName pointing to the current value.
type Operation ¶
type Operation struct { // Localized display information for this particular operation. Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" Origin *Origin `json:"origin,omitempty" azure:"ro"` }
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". Operation *string `json:"operation,omitempty" azure:"ro"` // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". Resource *string `json:"resource,omitempty" azure:"ro"` }
OperationDisplay - Localized display information for this particular operation.
type OperationListResult ¶
type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of operations supported by the resource provider Value []*Operation `json:"value,omitempty" azure:"ro"` }
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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.
func (OrderItemCancellationEnum) ToPtr ¶
func (c OrderItemCancellationEnum) ToPtr() *OrderItemCancellationEnum
ToPtr returns a *OrderItemCancellationEnum pointing to the current value.
type OrderItemDetails ¶
type OrderItemDetails struct { // REQUIRED; Order item type. OrderItemType *OrderItemType `json:"orderItemType,omitempty"` // REQUIRED; Unique identifier for configuration. ProductDetails *ProductDetails `json:"productDetails,omitempty"` // Additional notification email list NotificationEmailList []*string `json:"notificationEmailList,omitempty"` // Customer notification Preferences Preferences *Preferences `json:"preferences,omitempty"` // READ-ONLY; Cancellation reason. CancellationReason *string `json:"cancellationReason,omitempty" azure:"ro"` // READ-ONLY; Describes whether the order item is cancellable or not. CancellationStatus *OrderItemCancellationEnum `json:"cancellationStatus,omitempty" azure:"ro"` // READ-ONLY; Current Order item Status CurrentStage *StageDetails `json:"currentStage,omitempty" azure:"ro"` // READ-ONLY; Describes whether the order item is deletable or not. DeletionStatus *ActionStatusEnum `json:"deletionStatus,omitempty" azure:"ro"` // READ-ONLY; Top level error for the job. Error *ErrorDetail `json:"error,omitempty" azure:"ro"` // READ-ONLY; Forward Package Shipping details ForwardShippingDetails *ForwardShippingDetails `json:"forwardShippingDetails,omitempty" azure:"ro"` // READ-ONLY; Parent RP details - this returns only the first or default parent RP from the entire list ManagementRpDetails *ResourceProviderDetails `json:"managementRpDetails,omitempty" azure:"ro"` // READ-ONLY; List of parent RP details supported for configuration. ManagementRpDetailsList []*ResourceProviderDetails `json:"managementRpDetailsList,omitempty" azure:"ro"` // READ-ONLY; Order item status history OrderItemStageHistory []*StageDetails `json:"orderItemStageHistory,omitempty" azure:"ro"` // READ-ONLY; Return reason. ReturnReason *string `json:"returnReason,omitempty" azure:"ro"` // READ-ONLY; Describes whether the order item is returnable or not. ReturnStatus *OrderItemReturnEnum `json:"returnStatus,omitempty" azure:"ro"` // READ-ONLY; Reverse Package Shipping details ReverseShippingDetails *ReverseShippingDetails `json:"reverseShippingDetails,omitempty" azure:"ro"` }
OrderItemDetails - Order item details
func (OrderItemDetails) MarshalJSON ¶
func (o OrderItemDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrderItemDetails.
type OrderItemProperties ¶
type OrderItemProperties struct { // REQUIRED; Represents shipping and return address for order item AddressDetails *AddressDetails `json:"addressDetails,omitempty"` // REQUIRED; Id of the order to which order item belongs to OrderID *string `json:"orderId,omitempty"` // REQUIRED; Represents order item details. OrderItemDetails *OrderItemDetails `json:"orderItemDetails,omitempty"` // READ-ONLY; Start time of order item StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` }
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 `json:"location,omitempty"` // REQUIRED; Order item properties Properties *OrderItemProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Represents resource creation and update time SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
OrderItemResource - Represents order item contract
func (OrderItemResource) MarshalJSON ¶
func (o OrderItemResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrderItemResource.
type OrderItemResourceList ¶
type OrderItemResourceList struct { // Link for the next set of order item resources. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; List of order item resources. Value []*OrderItemResource `json:"value,omitempty" azure:"ro"` }
OrderItemResourceList - List of orderItems.
func (OrderItemResourceList) MarshalJSON ¶
func (o OrderItemResourceList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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.
func (OrderItemReturnEnum) ToPtr ¶
func (c OrderItemReturnEnum) ToPtr() *OrderItemReturnEnum
ToPtr returns a *OrderItemReturnEnum pointing to the current value.
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.
func (OrderItemType) ToPtr ¶
func (c OrderItemType) ToPtr() *OrderItemType
ToPtr returns a *OrderItemType pointing to the current value.
type OrderItemUpdateParameter ¶
type OrderItemUpdateParameter struct { // Order item update properties Properties *OrderItemUpdateProperties `json:"properties,omitempty"` // 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 `json:"tags,omitempty"` }
OrderItemUpdateParameter - Updates order item parameters.
func (OrderItemUpdateParameter) MarshalJSON ¶
func (o OrderItemUpdateParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrderItemUpdateParameter.
type OrderItemUpdateProperties ¶
type OrderItemUpdateProperties struct { // Updates forward shipping address and contact details. ForwardAddress *AddressProperties `json:"forwardAddress,omitempty"` // Additional notification email list. NotificationEmailList []*string `json:"notificationEmailList,omitempty"` // Customer preference. Preferences *Preferences `json:"preferences,omitempty"` }
OrderItemUpdateProperties - Order item update properties.
func (OrderItemUpdateProperties) MarshalJSON ¶
func (o OrderItemUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrderItemUpdateProperties.
type OrderProperties ¶
type OrderProperties struct { // READ-ONLY; Order current status. CurrentStage *StageDetails `json:"currentStage,omitempty" azure:"ro"` // READ-ONLY; List of order item ARM Ids which are part of an order. OrderItemIDs []*string `json:"orderItemIds,omitempty" azure:"ro"` // READ-ONLY; Order status history. OrderStageHistory []*StageDetails `json:"orderStageHistory,omitempty" azure:"ro"` }
OrderProperties - Represents order details.
func (OrderProperties) MarshalJSON ¶
func (o OrderProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrderProperties.
type OrderResource ¶
type OrderResource struct { // REQUIRED; Order properties Properties *OrderProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Represents resource creation and update time SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
OrderResource - Specifies the properties or parameters for an order. Order is a grouping of one or more order items.
type OrderResourceList ¶
type OrderResourceList struct { // Link for the next set of order resources. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; List of order resources. Value []*OrderResource `json:"value,omitempty" azure:"ro"` }
OrderResourceList - List of orders.
func (OrderResourceList) MarshalJSON ¶
func (o OrderResourceList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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"
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 `json:"billingType,omitempty"` // READ-ONLY; Charging type. ChargingType *ChargingType `json:"chargingType,omitempty" azure:"ro"` // READ-ONLY; Validation status of requested data center and transport. MeterGUID *string `json:"meterGuid,omitempty" azure:"ro"` // READ-ONLY; Billing unit applicable for Pav2 billing Multiplier *float64 `json:"multiplier,omitempty" azure:"ro"` }
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 `json:"encryptionPreferences,omitempty"` // Preferences related to the Management resource. ManagementResourcePreferences *ManagementResourcePreferences `json:"managementResourcePreferences,omitempty"` // Notification preferences. NotificationPreferences []*NotificationPreference `json:"notificationPreferences,omitempty"` // Preferences related to the shipment logistics of the order. TransportPreferences *TransportPreferences `json:"transportPreferences,omitempty"` }
Preferences related to the order
func (Preferences) MarshalJSON ¶
func (p Preferences) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Preferences.
type Product ¶
type Product struct { // READ-ONLY; Properties of product Properties *ProductProperties `json:"properties,omitempty" azure:"ro"` }
Product - List of Products
type ProductDetails ¶
type ProductDetails struct { // REQUIRED; Hierarchy of the product which uniquely identifies the product HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty"` // Display details of the product DisplayInfo *DisplayInfo `json:"displayInfo,omitempty"` // READ-ONLY; Quantity of the product Count *int32 `json:"count,omitempty" azure:"ro"` // READ-ONLY; list of device details DeviceDetails []*DeviceDetails `json:"deviceDetails,omitempty" azure:"ro"` // READ-ONLY; Double encryption status of the configuration. Read-only field. ProductDoubleEncryptionStatus *DoubleEncryptionStatus `json:"productDoubleEncryptionStatus,omitempty" azure:"ro"` }
ProductDetails - Represents product details
func (ProductDetails) MarshalJSON ¶
func (p ProductDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProductDetails.
type ProductFamilies ¶
type ProductFamilies struct { // Link for the next set of product families. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; List of product families. Value []*ProductFamily `json:"value,omitempty" azure:"ro"` }
ProductFamilies - The list of product families.
func (ProductFamilies) MarshalJSON ¶
func (p ProductFamilies) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProductFamilies.
type ProductFamiliesMetadata ¶
type ProductFamiliesMetadata struct { // READ-ONLY; Link for the next set of product families. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of product family metadata details. Value []*ProductFamiliesMetadataDetails `json:"value,omitempty" azure:"ro"` }
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.
type ProductFamiliesMetadataDetails ¶
type ProductFamiliesMetadataDetails struct { // READ-ONLY; Product family properties Properties *ProductFamilyProperties `json:"properties,omitempty" azure:"ro"` }
ProductFamiliesMetadataDetails - Product families metadata details.
type ProductFamiliesRequest ¶
type ProductFamiliesRequest struct { // REQUIRED; Dictionary of filterable properties on product family. FilterableProperties map[string][]*FilterableProperty `json:"filterableProperties,omitempty"` // Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing // subscription details CustomerSubscriptionDetails *CustomerSubscriptionDetails `json:"customerSubscriptionDetails,omitempty"` }
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.
type ProductFamily ¶
type ProductFamily struct { // READ-ONLY; Properties of product family Properties *ProductFamilyProperties `json:"properties,omitempty" azure:"ro"` }
ProductFamily - Product Family
type ProductFamilyProperties ¶
type ProductFamilyProperties struct { // Contains details related to resource provider ResourceProviderDetails []*ResourceProviderDetails `json:"resourceProviderDetails,omitempty"` // READ-ONLY; Availability information of the product system. AvailabilityInformation *AvailabilityInformation `json:"availabilityInformation,omitempty" azure:"ro"` // READ-ONLY; Cost information for the product system. CostInformation *CostInformation `json:"costInformation,omitempty" azure:"ro"` // READ-ONLY; Description related to the product system. Description *Description `json:"description,omitempty" azure:"ro"` // READ-ONLY; Display Name for the product system. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; list of filters supported for a product FilterableProperties []*FilterableProperty `json:"filterableProperties,omitempty" azure:"ro"` // READ-ONLY; Hierarchy information of a product. HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty" azure:"ro"` // READ-ONLY; Image information for the product system. ImageInformation []*ImageInformation `json:"imageInformation,omitempty" azure:"ro"` // READ-ONLY; List of product lines supported in the product family ProductLines []*ProductLine `json:"productLines,omitempty" azure:"ro"` }
ProductFamilyProperties - Properties of product family
func (ProductFamilyProperties) MarshalJSON ¶
func (p ProductFamilyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProductFamilyProperties.
type ProductLine ¶
type ProductLine struct { // READ-ONLY; Properties of product line Properties *ProductLineProperties `json:"properties,omitempty" azure:"ro"` }
ProductLine - Product line
type ProductLineProperties ¶
type ProductLineProperties struct { // READ-ONLY; Availability information of the product system. AvailabilityInformation *AvailabilityInformation `json:"availabilityInformation,omitempty" azure:"ro"` // READ-ONLY; Cost information for the product system. CostInformation *CostInformation `json:"costInformation,omitempty" azure:"ro"` // READ-ONLY; Description related to the product system. Description *Description `json:"description,omitempty" azure:"ro"` // READ-ONLY; Display Name for the product system. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; list of filters supported for a product FilterableProperties []*FilterableProperty `json:"filterableProperties,omitempty" azure:"ro"` // READ-ONLY; Hierarchy information of a product. HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty" azure:"ro"` // READ-ONLY; Image information for the product system. ImageInformation []*ImageInformation `json:"imageInformation,omitempty" azure:"ro"` // READ-ONLY; List of products in the product line Products []*Product `json:"products,omitempty" azure:"ro"` }
ProductLineProperties - Properties of product line
func (ProductLineProperties) MarshalJSON ¶
func (p ProductLineProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProductLineProperties.
type ProductProperties ¶
type ProductProperties struct { // READ-ONLY; Availability information of the product system. AvailabilityInformation *AvailabilityInformation `json:"availabilityInformation,omitempty" azure:"ro"` // READ-ONLY; List of configurations for the product Configurations []*Configuration `json:"configurations,omitempty" azure:"ro"` // READ-ONLY; Cost information for the product system. CostInformation *CostInformation `json:"costInformation,omitempty" azure:"ro"` // READ-ONLY; Description related to the product system. Description *Description `json:"description,omitempty" azure:"ro"` // READ-ONLY; Display Name for the product system. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; list of filters supported for a product FilterableProperties []*FilterableProperty `json:"filterableProperties,omitempty" azure:"ro"` // READ-ONLY; Hierarchy information of a product. HierarchyInformation *HierarchyInformation `json:"hierarchyInformation,omitempty" azure:"ro"` // READ-ONLY; Image information for the product system. ImageInformation []*ImageInformation `json:"imageInformation,omitempty" azure:"ro"` }
ProductProperties - Properties of products
func (ProductProperties) MarshalJSON ¶
func (p ProductProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller 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 `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type PurchaseMeterDetails ¶
type PurchaseMeterDetails struct { // REQUIRED; Represents billing type. BillingType *BillingType `json:"billingType,omitempty"` // READ-ONLY; Charging type. ChargingType *ChargingType `json:"chargingType,omitempty" azure:"ro"` // READ-ONLY; Billing unit applicable for Pav2 billing Multiplier *float64 `json:"multiplier,omitempty" azure:"ro"` // READ-ONLY; Product Id ProductID *string `json:"productId,omitempty" azure:"ro"` // READ-ONLY; Sku Id SKUID *string `json:"skuId,omitempty" azure:"ro"` // READ-ONLY; Term Id TermID *string `json:"termId,omitempty" azure:"ro"` }
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 `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type ResourceIdentity ¶
type ResourceIdentity struct { // Identity type Type *string `json:"type,omitempty"` // READ-ONLY; Service Principal Id backing the Msi PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; Home Tenant Id TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ResourceIdentity - Msi identity details of the resource
type ResourceProviderDetails ¶
type ResourceProviderDetails struct { // READ-ONLY; Resource provider namespace ResourceProviderNamespace *string `json:"resourceProviderNamespace,omitempty" azure:"ro"` }
ResourceProviderDetails - Management RP details
type ReturnOrderItemDetails ¶
type ReturnOrderItemDetails struct { // REQUIRED; Return Reason. ReturnReason *string `json:"returnReason,omitempty"` // customer return address. ReturnAddress *AddressProperties `json:"returnAddress,omitempty"` // Service tag (located on the bottom-right corner of the device) ServiceTag *string `json:"serviceTag,omitempty"` // Shipping Box required ShippingBoxRequired *bool `json:"shippingBoxRequired,omitempty"` }
ReturnOrderItemDetails - Return order item request body
type ReverseShippingDetails ¶
type ReverseShippingDetails struct { // READ-ONLY; Carrier Name for display purpose. Not to be used for any processing. CarrierDisplayName *string `json:"carrierDisplayName,omitempty" azure:"ro"` // READ-ONLY; Name of the carrier. CarrierName *string `json:"carrierName,omitempty" azure:"ro"` // READ-ONLY; SAS key to download the reverse shipment label of the package. SasKeyForLabel *string `json:"sasKeyForLabel,omitempty" azure:"ro"` // READ-ONLY; TrackingId of the package TrackingID *string `json:"trackingId,omitempty" azure:"ro"` // READ-ONLY; TrackingUrl of the package. TrackingURL *string `json:"trackingUrl,omitempty" azure:"ro"` }
ReverseShippingDetails - Reverse shipment details.
type ShippingAddress ¶
type ShippingAddress struct { // REQUIRED; Name of the Country. Country *string `json:"country,omitempty"` // REQUIRED; Street Address line 1. StreetAddress1 *string `json:"streetAddress1,omitempty"` // Type of address. AddressType *AddressType `json:"addressType,omitempty"` // Name of the City. City *string `json:"city,omitempty"` // Name of the company. CompanyName *string `json:"companyName,omitempty"` // Postal code. PostalCode *string `json:"postalCode,omitempty"` // Name of the State or Province. StateOrProvince *string `json:"stateOrProvince,omitempty"` // Street Address line 2. StreetAddress2 *string `json:"streetAddress2,omitempty"` // Street Address line 3. StreetAddress3 *string `json:"streetAddress3,omitempty"` // Extended Zip Code. ZipExtendedCode *string `json:"zipExtendedCode,omitempty"` }
ShippingAddress - Shipping address where customer wishes to receive the device.
type ShippingDetails ¶
type ShippingDetails struct { // READ-ONLY; Carrier Name for display purpose. Not to be used for any processing. CarrierDisplayName *string `json:"carrierDisplayName,omitempty" azure:"ro"` // READ-ONLY; Name of the carrier. CarrierName *string `json:"carrierName,omitempty" azure:"ro"` // READ-ONLY; TrackingId of the package TrackingID *string `json:"trackingId,omitempty" azure:"ro"` // READ-ONLY; TrackingUrl of the package. TrackingURL *string `json:"trackingUrl,omitempty" azure:"ro"` }
ShippingDetails - Package shipping details
type Specification ¶
type Specification struct { // READ-ONLY; Name of the specification Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Value of the specification Value *string `json:"value,omitempty" azure:"ro"` }
Specifications of the configurations
type StageDetails ¶
type StageDetails struct { // READ-ONLY; Display name of the resource stage. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Stage name StageName *StageName `json:"stageName,omitempty" azure:"ro"` // READ-ONLY; Stage status. StageStatus *StageStatus `json:"stageStatus,omitempty" azure:"ro"` // READ-ONLY; Stage start time StartTime *time.Time `json:"startTime,omitempty" azure:"ro"` }
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.
func (StageStatus) ToPtr ¶
func (c StageStatus) ToPtr() *StageStatus
ToPtr returns a *StageStatus pointing to the current value.
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.
func (SupportedFilterTypes) ToPtr ¶
func (c SupportedFilterTypes) ToPtr() *SupportedFilterTypes
ToPtr returns a *SupportedFilterTypes pointing to the current value.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type TransportPreferences ¶
type TransportPreferences struct { // REQUIRED; Indicates Shipment Logistics type that the customer preferred. PreferredShipmentType *TransportShipmentTypes `json:"preferredShipmentType,omitempty"` }
TransportPreferences - Preferences related to the shipment logistics of the sku
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.
func (TransportShipmentTypes) ToPtr ¶
func (c TransportShipmentTypes) ToPtr() *TransportShipmentTypes
ToPtr returns a *TransportShipmentTypes pointing to the current value.
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.
func (WeightMeasurementUnit) ToPtr ¶
func (c WeightMeasurementUnit) ToPtr() *WeightMeasurementUnit
ToPtr returns a *WeightMeasurementUnit pointing to the current value.