availableskus

package
v0.20240903.1131440 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/availableskus Documentation

The availableskus SDK allows for interaction with the Azure Resource Manager Service databoxedge (API Version 2022-03-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/availableskus"

Client Initialization

client := availableskus.NewAvailableSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AvailableSkusClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForShipmentType

func PossibleValuesForShipmentType() []string

func PossibleValuesForSkuAvailability

func PossibleValuesForSkuAvailability() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForSkuSignupOption

func PossibleValuesForSkuSignupOption() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

func PossibleValuesForSkuVersion

func PossibleValuesForSkuVersion() []string

Types

type AvailableSkusClient

type AvailableSkusClient struct {
	Client *resourcemanager.Client
}

func NewAvailableSkusClientWithBaseURI

func NewAvailableSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*AvailableSkusClient, error)

func (AvailableSkusClient) List

List ...

func (AvailableSkusClient) ListComplete

ListComplete retrieves all the results into a single object

func (AvailableSkusClient) ListCompleteMatchingPredicate

func (c AvailableSkusClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DataBoxEdgeSkuOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DataBoxEdgeSku

type DataBoxEdgeSku struct {
	ApiVersions   *[]string          `json:"apiVersions,omitempty"`
	Availability  *SkuAvailability   `json:"availability,omitempty"`
	Capabilities  *[]SkuCapability   `json:"capabilities,omitempty"`
	Costs         *[]SkuCost         `json:"costs,omitempty"`
	Family        *string            `json:"family,omitempty"`
	Kind          *string            `json:"kind,omitempty"`
	LocationInfo  *[]SkuLocationInfo `json:"locationInfo,omitempty"`
	Locations     *[]string          `json:"locations,omitempty"`
	Name          *SkuName           `json:"name,omitempty"`
	ResourceType  *string            `json:"resourceType,omitempty"`
	ShipmentTypes *[]ShipmentType    `json:"shipmentTypes,omitempty"`
	SignupOption  *SkuSignupOption   `json:"signupOption,omitempty"`
	Size          *string            `json:"size,omitempty"`
	Tier          *SkuTier           `json:"tier,omitempty"`
	Version       *SkuVersion        `json:"version,omitempty"`
}

type DataBoxEdgeSkuOperationPredicate

type DataBoxEdgeSkuOperationPredicate struct {
	Family       *string
	Kind         *string
	ResourceType *string
	Size         *string
}

func (DataBoxEdgeSkuOperationPredicate) Matches

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DataBoxEdgeSku
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DataBoxEdgeSku
}

type ShipmentType

type ShipmentType string
const (
	ShipmentTypeNotApplicable     ShipmentType = "NotApplicable"
	ShipmentTypeSelfPickup        ShipmentType = "SelfPickup"
	ShipmentTypeShippedToCustomer ShipmentType = "ShippedToCustomer"
)

func (*ShipmentType) UnmarshalJSON

func (s *ShipmentType) UnmarshalJSON(bytes []byte) error

type SkuAvailability

type SkuAvailability string
const (
	SkuAvailabilityAvailable   SkuAvailability = "Available"
	SkuAvailabilityUnavailable SkuAvailability = "Unavailable"
)

func (*SkuAvailability) UnmarshalJSON

func (s *SkuAvailability) UnmarshalJSON(bytes []byte) error

type SkuCapability

type SkuCapability struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type SkuCost

type SkuCost struct {
	ExtendedUnit *string `json:"extendedUnit,omitempty"`
	MeterId      *string `json:"meterId,omitempty"`
	Quantity     *int64  `json:"quantity,omitempty"`
}

type SkuLocationInfo

type SkuLocationInfo struct {
	Location *string       `json:"location,omitempty"`
	Sites    *[]string     `json:"sites,omitempty"`
	Zones    *zones.Schema `json:"zones,omitempty"`
}

type SkuName

type SkuName string
const (
	SkuNameEPTwoOneTwoEightGPUOneMxOneW   SkuName = "EP2_128_GPU1_Mx1_W"
	SkuNameEPTwoOneTwoEightOneTFourMxOneW SkuName = "EP2_128_1T4_Mx1_W"
	SkuNameEPTwoSixFourMxOneW             SkuName = "EP2_64_Mx1_W"
	SkuNameEPTwoSixFourOneVPUW            SkuName = "EP2_64_1VPU_W"
	SkuNameEPTwoTwoFiveSixGPUTwoMxOne     SkuName = "EP2_256_GPU2_Mx1"
	SkuNameEPTwoTwoFiveSixTwoTFourW       SkuName = "EP2_256_2T4_W"
	SkuNameEdge                           SkuName = "Edge"
	SkuNameEdgeMRMini                     SkuName = "EdgeMR_Mini"
	SkuNameEdgeMRTCP                      SkuName = "EdgeMR_TCP"
	SkuNameEdgePBase                      SkuName = "EdgeP_Base"
	SkuNameEdgePHigh                      SkuName = "EdgeP_High"
	SkuNameEdgePRBase                     SkuName = "EdgePR_Base"
	SkuNameEdgePRBaseUPS                  SkuName = "EdgePR_Base_UPS"
	SkuNameGPU                            SkuName = "GPU"
	SkuNameGateway                        SkuName = "Gateway"
	SkuNameManagement                     SkuName = "Management"
	SkuNameRCALarge                       SkuName = "RCA_Large"
	SkuNameRCASmall                       SkuName = "RCA_Small"
	SkuNameRDC                            SkuName = "RDC"
	SkuNameTCALarge                       SkuName = "TCA_Large"
	SkuNameTCASmall                       SkuName = "TCA_Small"
	SkuNameTDC                            SkuName = "TDC"
	SkuNameTEAFourNodeHeater              SkuName = "TEA_4Node_Heater"
	SkuNameTEAFourNodeUPSHeater           SkuName = "TEA_4Node_UPS_Heater"
	SkuNameTEAOneNode                     SkuName = "TEA_1Node"
	SkuNameTEAOneNodeHeater               SkuName = "TEA_1Node_Heater"
	SkuNameTEAOneNodeUPS                  SkuName = "TEA_1Node_UPS"
	SkuNameTEAOneNodeUPSHeater            SkuName = "TEA_1Node_UPS_Heater"
	SkuNameTMA                            SkuName = "TMA"
)

func (*SkuName) UnmarshalJSON

func (s *SkuName) UnmarshalJSON(bytes []byte) error

type SkuSignupOption

type SkuSignupOption string
const (
	SkuSignupOptionAvailable SkuSignupOption = "Available"
	SkuSignupOptionNone      SkuSignupOption = "None"
)

func (*SkuSignupOption) UnmarshalJSON

func (s *SkuSignupOption) UnmarshalJSON(bytes []byte) error

type SkuTier

type SkuTier string
const (
	SkuTierStandard SkuTier = "Standard"
)

func (*SkuTier) UnmarshalJSON

func (s *SkuTier) UnmarshalJSON(bytes []byte) error

type SkuVersion

type SkuVersion string
const (
	SkuVersionPreview SkuVersion = "Preview"
	SkuVersionStable  SkuVersion = "Stable"
)

func (*SkuVersion) UnmarshalJSON

func (s *SkuVersion) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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