Documentation ¶
Index ¶
- func PossibleValuesForOrderState() []string
- func PossibleValuesForShipmentType() []string
- func ValidateDataBoxEdgeDeviceID(input interface{}, key string) (warnings []string, errors []error)
- type Address
- type ContactDetails
- type CreateOrUpdateOperationResponse
- type DCAccessCode
- type DCAccessCodeProperties
- type DataBoxEdgeDeviceId
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByDataBoxEdgeDeviceCompleteResult
- type ListByDataBoxEdgeDeviceOperationResponse
- type ListDCAccessCodeOperationResponse
- type Order
- type OrderOperationPredicate
- type OrderProperties
- type OrderState
- type OrderStatus
- type OrdersClient
- func (c OrdersClient) CreateOrUpdate(ctx context.Context, id DataBoxEdgeDeviceId, input Order) (result CreateOrUpdateOperationResponse, err error)
- func (c OrdersClient) CreateOrUpdateThenPoll(ctx context.Context, id DataBoxEdgeDeviceId, input Order) error
- func (c OrdersClient) Delete(ctx context.Context, id DataBoxEdgeDeviceId) (result DeleteOperationResponse, err error)
- func (c OrdersClient) DeleteThenPoll(ctx context.Context, id DataBoxEdgeDeviceId) error
- func (c OrdersClient) Get(ctx context.Context, id DataBoxEdgeDeviceId) (result GetOperationResponse, err error)
- func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error)
- func (c OrdersClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, id DataBoxEdgeDeviceId) (ListByDataBoxEdgeDeviceCompleteResult, error)
- func (c OrdersClient) ListByDataBoxEdgeDeviceCompleteMatchingPredicate(ctx context.Context, id DataBoxEdgeDeviceId, predicate OrderOperationPredicate) (result ListByDataBoxEdgeDeviceCompleteResult, err error)
- func (c OrdersClient) ListDCAccessCode(ctx context.Context, id DataBoxEdgeDeviceId) (result ListDCAccessCodeOperationResponse, err error)
- type ShipmentType
- type TrackingInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForOrderState ¶
func PossibleValuesForOrderState() []string
func PossibleValuesForShipmentType ¶
func PossibleValuesForShipmentType() []string
func ValidateDataBoxEdgeDeviceID ¶
ValidateDataBoxEdgeDeviceID checks that 'input' can be parsed as a Data Box Edge Device ID
Types ¶
type Address ¶
type Address struct { AddressLine1 *string `json:"addressLine1,omitempty"` AddressLine2 *string `json:"addressLine2,omitempty"` AddressLine3 *string `json:"addressLine3,omitempty"` City *string `json:"city,omitempty"` Country string `json:"country"` PostalCode *string `json:"postalCode,omitempty"` State *string `json:"state,omitempty"` }
type ContactDetails ¶
type DCAccessCode ¶
type DCAccessCode struct {
Properties *DCAccessCodeProperties `json:"properties,omitempty"`
}
type DCAccessCodeProperties ¶
type DCAccessCodeProperties struct {
AuthCode *string `json:"authCode,omitempty"`
}
type DataBoxEdgeDeviceId ¶
type DataBoxEdgeDeviceId struct { SubscriptionId string ResourceGroupName string DataBoxEdgeDeviceName string }
DataBoxEdgeDeviceId is a struct representing the Resource ID for a Data Box Edge Device
func NewDataBoxEdgeDeviceID ¶
func NewDataBoxEdgeDeviceID(subscriptionId string, resourceGroupName string, dataBoxEdgeDeviceName string) DataBoxEdgeDeviceId
NewDataBoxEdgeDeviceID returns a new DataBoxEdgeDeviceId struct
func ParseDataBoxEdgeDeviceID ¶
func ParseDataBoxEdgeDeviceID(input string) (*DataBoxEdgeDeviceId, error)
ParseDataBoxEdgeDeviceID parses 'input' into a DataBoxEdgeDeviceId
func ParseDataBoxEdgeDeviceIDInsensitively ¶
func ParseDataBoxEdgeDeviceIDInsensitively(input string) (*DataBoxEdgeDeviceId, error)
ParseDataBoxEdgeDeviceIDInsensitively parses 'input' case-insensitively into a DataBoxEdgeDeviceId note: this method should only be used for API response data and not user input
func (*DataBoxEdgeDeviceId) FromParseResult ¶ added in v0.20231127.1171502
func (id *DataBoxEdgeDeviceId) FromParseResult(input resourceids.ParseResult) error
func (DataBoxEdgeDeviceId) ID ¶
func (id DataBoxEdgeDeviceId) ID() string
ID returns the formatted Data Box Edge Device ID
func (DataBoxEdgeDeviceId) Segments ¶
func (id DataBoxEdgeDeviceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data Box Edge Device ID
func (DataBoxEdgeDeviceId) String ¶
func (id DataBoxEdgeDeviceId) String() string
String returns a human-readable description of this Data Box Edge Device ID
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListDCAccessCodeOperationResponse ¶
type ListDCAccessCodeOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DCAccessCode }
type Order ¶
type Order struct { Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Name *string `json:"name,omitempty"` Properties *OrderProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type OrderOperationPredicate ¶
func (OrderOperationPredicate) Matches ¶
func (p OrderOperationPredicate) Matches(input Order) bool
type OrderProperties ¶
type OrderProperties struct { ContactInformation ContactDetails `json:"contactInformation"` CurrentStatus *OrderStatus `json:"currentStatus,omitempty"` DeliveryTrackingInfo *[]TrackingInfo `json:"deliveryTrackingInfo,omitempty"` OrderHistory *[]OrderStatus `json:"orderHistory,omitempty"` OrderId *string `json:"orderId,omitempty"` ReturnTrackingInfo *[]TrackingInfo `json:"returnTrackingInfo,omitempty"` SerialNumber *string `json:"serialNumber,omitempty"` ShipmentType *ShipmentType `json:"shipmentType,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` }
type OrderState ¶
type OrderState string
const ( OrderStateArriving OrderState = "Arriving" OrderStateAwaitingDrop OrderState = "AwaitingDrop" OrderStateAwaitingFulfillment OrderState = "AwaitingFulfillment" OrderStateAwaitingPickup OrderState = "AwaitingPickup" OrderStateAwaitingPreparation OrderState = "AwaitingPreparation" OrderStateAwaitingReturnShipment OrderState = "AwaitingReturnShipment" OrderStateAwaitingShipment OrderState = "AwaitingShipment" OrderStateCollectedAtMicrosoft OrderState = "CollectedAtMicrosoft" OrderStateDeclined OrderState = "Declined" OrderStateDelivered OrderState = "Delivered" OrderStateLostDevice OrderState = "LostDevice" OrderStatePickupCompleted OrderState = "PickupCompleted" OrderStateReplacementRequested OrderState = "ReplacementRequested" OrderStateReturnInitiated OrderState = "ReturnInitiated" OrderStateShipped OrderState = "Shipped" OrderStateShippedBack OrderState = "ShippedBack" OrderStateUntracked OrderState = "Untracked" )
func (*OrderState) UnmarshalJSON ¶ added in v0.20230420.1093529
func (s *OrderState) UnmarshalJSON(bytes []byte) error
type OrderStatus ¶
type OrderStatus struct { AdditionalOrderDetails *map[string]string `json:"additionalOrderDetails,omitempty"` Comments *string `json:"comments,omitempty"` Status OrderState `json:"status"` TrackingInformation *TrackingInfo `json:"trackingInformation,omitempty"` UpdateDateTime *string `json:"updateDateTime,omitempty"` }
func (*OrderStatus) GetUpdateDateTimeAsTime ¶
func (o *OrderStatus) GetUpdateDateTimeAsTime() (*time.Time, error)
func (*OrderStatus) SetUpdateDateTimeAsTime ¶
func (o *OrderStatus) SetUpdateDateTimeAsTime(input time.Time)
type OrdersClient ¶
type OrdersClient struct {
Client *resourcemanager.Client
}
func NewOrdersClientWithBaseURI ¶
func NewOrdersClientWithBaseURI(sdkApi sdkEnv.Api) (*OrdersClient, error)
func (OrdersClient) CreateOrUpdate ¶
func (c OrdersClient) CreateOrUpdate(ctx context.Context, id DataBoxEdgeDeviceId, input Order) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (OrdersClient) CreateOrUpdateThenPoll ¶
func (c OrdersClient) CreateOrUpdateThenPoll(ctx context.Context, id DataBoxEdgeDeviceId, input Order) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (OrdersClient) Delete ¶
func (c OrdersClient) Delete(ctx context.Context, id DataBoxEdgeDeviceId) (result DeleteOperationResponse, err error)
Delete ...
func (OrdersClient) DeleteThenPoll ¶
func (c OrdersClient) DeleteThenPoll(ctx context.Context, id DataBoxEdgeDeviceId) error
DeleteThenPoll performs Delete then polls until it's completed
func (OrdersClient) Get ¶
func (c OrdersClient) Get(ctx context.Context, id DataBoxEdgeDeviceId) (result GetOperationResponse, err error)
Get ...
func (OrdersClient) ListByDataBoxEdgeDevice ¶
func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error)
ListByDataBoxEdgeDevice ...
func (OrdersClient) ListByDataBoxEdgeDeviceComplete ¶
func (c OrdersClient) ListByDataBoxEdgeDeviceComplete(ctx context.Context, id DataBoxEdgeDeviceId) (ListByDataBoxEdgeDeviceCompleteResult, error)
ListByDataBoxEdgeDeviceComplete retrieves all the results into a single object
func (OrdersClient) ListByDataBoxEdgeDeviceCompleteMatchingPredicate ¶
func (c OrdersClient) ListByDataBoxEdgeDeviceCompleteMatchingPredicate(ctx context.Context, id DataBoxEdgeDeviceId, predicate OrderOperationPredicate) (result ListByDataBoxEdgeDeviceCompleteResult, err error)
ListByDataBoxEdgeDeviceCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (OrdersClient) ListDCAccessCode ¶
func (c OrdersClient) ListDCAccessCode(ctx context.Context, id DataBoxEdgeDeviceId) (result ListDCAccessCodeOperationResponse, err error)
ListDCAccessCode ...
type ShipmentType ¶
type ShipmentType string
const ( ShipmentTypeNotApplicable ShipmentType = "NotApplicable" ShipmentTypeSelfPickup ShipmentType = "SelfPickup" ShipmentTypeShippedToCustomer ShipmentType = "ShippedToCustomer" )
func (*ShipmentType) UnmarshalJSON ¶ added in v0.20230420.1093529
func (s *ShipmentType) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_databoxedgedevice.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbydataboxedgedevice.go
- method_listdcaccesscode.go
- model_address.go
- model_contactdetails.go
- model_dcaccesscode.go
- model_dcaccesscodeproperties.go
- model_order.go
- model_orderproperties.go
- model_orderstatus.go
- model_trackinginfo.go
- predicates.go
- version.go