offers

package
v0.20230524.1231843 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-03-01/offers Documentation

The offers SDK allows for interaction with the Azure Resource Manager Service azurestackhci (API Version 2023-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-sdk/resource-manager/azurestackhci/2023-03-01/offers"

Client Initialization

client := offers.NewOffersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: OffersClient.OffersGet

ctx := context.TODO()
id := offers.NewOfferID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue", "offerValue")

read, err := client.OffersGet(ctx, id, offers.DefaultOffersGetOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OffersClient.OffersListByCluster

ctx := context.TODO()
id := offers.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

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

Example Usage: OffersClient.OffersListByPublisher

ctx := context.TODO()
id := offers.NewPublisherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue")

// alternatively `client.OffersListByPublisher(ctx, id, offers.DefaultOffersListByPublisherOperationOptions())` can be used to do batched pagination
items, err := client.OffersListByPublisherComplete(ctx, id, offers.DefaultOffersListByPublisherOperationOptions())
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 ValidateClusterID

func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)

ValidateClusterID checks that 'input' can be parsed as a Cluster ID

func ValidateOfferID

func ValidateOfferID(input interface{}, key string) (warnings []string, errors []error)

ValidateOfferID checks that 'input' can be parsed as a Offer ID

func ValidatePublisherID

func ValidatePublisherID(input interface{}, key string) (warnings []string, errors []error)

ValidatePublisherID checks that 'input' can be parsed as a Publisher ID

Types

type ClusterId

type ClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ClusterId is a struct representing the Resource ID for a Cluster

func NewClusterID

func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId

NewClusterID returns a new ClusterId struct

func ParseClusterID

func ParseClusterID(input string) (*ClusterId, error)

ParseClusterID parses 'input' into a ClusterId

func ParseClusterIDInsensitively

func ParseClusterIDInsensitively(input string) (*ClusterId, error)

ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId note: this method should only be used for API response data and not user input

func (ClusterId) ID

func (id ClusterId) ID() string

ID returns the formatted Cluster ID

func (ClusterId) Segments

func (id ClusterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Cluster ID

func (ClusterId) String

func (id ClusterId) String() string

String returns a human-readable description of this Cluster ID

type Offer

type Offer struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *OfferProperties       `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type OfferId

type OfferId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
	PublisherName     string
	OfferName         string
}

OfferId is a struct representing the Resource ID for a Offer

func NewOfferID

func NewOfferID(subscriptionId string, resourceGroupName string, clusterName string, publisherName string, offerName string) OfferId

NewOfferID returns a new OfferId struct

func ParseOfferID

func ParseOfferID(input string) (*OfferId, error)

ParseOfferID parses 'input' into a OfferId

func ParseOfferIDInsensitively

func ParseOfferIDInsensitively(input string) (*OfferId, error)

ParseOfferIDInsensitively parses 'input' case-insensitively into a OfferId note: this method should only be used for API response data and not user input

func (OfferId) ID

func (id OfferId) ID() string

ID returns the formatted Offer ID

func (OfferId) Segments

func (id OfferId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Offer ID

func (OfferId) String

func (id OfferId) String() string

String returns a human-readable description of this Offer ID

type OfferOperationPredicate

type OfferOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (OfferOperationPredicate) Matches

func (p OfferOperationPredicate) Matches(input Offer) bool

type OfferProperties

type OfferProperties struct {
	Content           *string        `json:"content,omitempty"`
	ContentVersion    *string        `json:"contentVersion,omitempty"`
	ProvisioningState *string        `json:"provisioningState,omitempty"`
	PublisherId       *string        `json:"publisherId,omitempty"`
	SkuMappings       *[]SkuMappings `json:"skuMappings,omitempty"`
}

type OffersClient

type OffersClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewOffersClientWithBaseURI

func NewOffersClientWithBaseURI(endpoint string) OffersClient

func (OffersClient) OffersGet

OffersGet ...

func (OffersClient) OffersListByCluster

OffersListByCluster ...

func (OffersClient) OffersListByClusterComplete

OffersListByClusterComplete retrieves all of the results into a single object

func (OffersClient) OffersListByClusterCompleteMatchingPredicate

func (c OffersClient) OffersListByClusterCompleteMatchingPredicate(ctx context.Context, id ClusterId, options OffersListByClusterOperationOptions, predicate OfferOperationPredicate) (resp OffersListByClusterCompleteResult, err error)

OffersListByClusterCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (OffersClient) OffersListByPublisher

OffersListByPublisher ...

func (OffersClient) OffersListByPublisherComplete

OffersListByPublisherComplete retrieves all of the results into a single object

func (OffersClient) OffersListByPublisherCompleteMatchingPredicate

func (c OffersClient) OffersListByPublisherCompleteMatchingPredicate(ctx context.Context, id PublisherId, options OffersListByPublisherOperationOptions, predicate OfferOperationPredicate) (resp OffersListByPublisherCompleteResult, err error)

OffersListByPublisherCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type OffersGetOperationOptions

type OffersGetOperationOptions struct {
	Expand *string
}

func DefaultOffersGetOperationOptions

func DefaultOffersGetOperationOptions() OffersGetOperationOptions

type OffersGetOperationResponse

type OffersGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Offer
}

type OffersListByClusterCompleteResult

type OffersListByClusterCompleteResult struct {
	Items []Offer
}

type OffersListByClusterOperationOptions

type OffersListByClusterOperationOptions struct {
	Expand *string
}

func DefaultOffersListByClusterOperationOptions

func DefaultOffersListByClusterOperationOptions() OffersListByClusterOperationOptions

type OffersListByClusterOperationResponse

type OffersListByClusterOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Offer
	// contains filtered or unexported fields
}

func (OffersListByClusterOperationResponse) HasMore

func (OffersListByClusterOperationResponse) LoadMore

type OffersListByPublisherCompleteResult

type OffersListByPublisherCompleteResult struct {
	Items []Offer
}

type OffersListByPublisherOperationOptions

type OffersListByPublisherOperationOptions struct {
	Expand *string
}

func DefaultOffersListByPublisherOperationOptions

func DefaultOffersListByPublisherOperationOptions() OffersListByPublisherOperationOptions

type OffersListByPublisherOperationResponse

type OffersListByPublisherOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Offer
	// contains filtered or unexported fields
}

func (OffersListByPublisherOperationResponse) HasMore

func (OffersListByPublisherOperationResponse) LoadMore

type PublisherId

type PublisherId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
	PublisherName     string
}

PublisherId is a struct representing the Resource ID for a Publisher

func NewPublisherID

func NewPublisherID(subscriptionId string, resourceGroupName string, clusterName string, publisherName string) PublisherId

NewPublisherID returns a new PublisherId struct

func ParsePublisherID

func ParsePublisherID(input string) (*PublisherId, error)

ParsePublisherID parses 'input' into a PublisherId

func ParsePublisherIDInsensitively

func ParsePublisherIDInsensitively(input string) (*PublisherId, error)

ParsePublisherIDInsensitively parses 'input' case-insensitively into a PublisherId note: this method should only be used for API response data and not user input

func (PublisherId) ID

func (id PublisherId) ID() string

ID returns the formatted Publisher ID

func (PublisherId) Segments

func (id PublisherId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Publisher ID

func (PublisherId) String

func (id PublisherId) String() string

String returns a human-readable description of this Publisher ID

type SkuMappings

type SkuMappings struct {
	CatalogPlanId          *string   `json:"catalogPlanId,omitempty"`
	MarketplaceSkuId       *string   `json:"marketplaceSkuId,omitempty"`
	MarketplaceSkuVersions *[]string `json:"marketplaceSkuVersions,omitempty"`
}

Jump to

Keyboard shortcuts

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