appcatalog

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

This package was generated using AutoRest 3.6.2 from https://github.com/Azure/azure-rest-api-specs.

The Swagger JSON had to be modified (see azure-rest-api-specs.patch) to workaround AutoRest bugs
(e.g. https://github.com/Azure/autorest/issues/4629).

It currently allows filtering PublisherIds only but it can be easily customized further.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	// Artifact type
	ArtifactType *ArtifactArtifactType `json:"artifactType,omitempty"`

	// Artifact name
	Name *string `json:"name,omitempty"`

	// Artifact uri
	URI *string `json:"uri,omitempty"`
}

Artifact - Plan level resources and configuration files

func (Artifact) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Artifact.

func (*Artifact) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type Artifact.

type ArtifactArtifactType

type ArtifactArtifactType string

ArtifactArtifactType - Artifact type

const (
	ArtifactArtifactTypeCustom   ArtifactArtifactType = "Custom"
	ArtifactArtifactTypeFragment ArtifactArtifactType = "Fragment"
	ArtifactArtifactTypeMetadata ArtifactArtifactType = "Metadata"
	ArtifactArtifactTypeTemplate ArtifactArtifactType = "Template"
)

func PossibleArtifactArtifactTypeValues

func PossibleArtifactArtifactTypeValues() []ArtifactArtifactType

PossibleArtifactArtifactTypeValues returns the possible values for the ArtifactArtifactType const type.

type ArtifactType

type ArtifactType string

ArtifactType - The type of the artifact

const (
	ArtifactTypeCustom   ArtifactType = "Custom"
	ArtifactTypeFragment ArtifactType = "Fragment"
	ArtifactTypeMetadata ArtifactType = "Metadata"
	ArtifactTypeTemplate ArtifactType = "Template"
)

func PossibleArtifactTypeValues

func PossibleArtifactTypeValues() []ArtifactType

PossibleArtifactTypeValues returns the possible values for the ArtifactType const type.

type AzureBenefit

type AzureBenefit string

AzureBenefit - Eligibility for Azure consumption commitment benefit (https://docs.microsoft.com/en-us/marketplace/azure-consumption-commitment-benefit), Possible values: Eligible, NotEligible, if no value selected, this filter is ignored. Default: null

const (
	AzureBenefitEligible    AzureBenefit = "Eligible"
	AzureBenefitNotEligible AzureBenefit = "NotEligible"
)

func PossibleAzureBenefitValues

func PossibleAzureBenefitValues() []AzureBenefit

PossibleAzureBenefitValues returns the possible values for the AzureBenefit const type.

type Badge

type Badge string

Badge - The badge

const (
	BadgeAdditionalPurchaseRequirement Badge = "AdditionalPurchaseRequirement"
	BadgePowerBICertified              Badge = "PowerBICertified"
	BadgePreferredSolution             Badge = "PreferredSolution"
)

func PossibleBadgeValues

func PossibleBadgeValues() []Badge

PossibleBadgeValues returns the possible values for the Badge const type.

type CspState

type CspState string

CspState - PA value showing whether the product is available for purchase through CSP channel, Possible values, OptIn, OptOut, SelectiveOptIn, for more information see, https://docs.microsoft.com/en-us/azure/marketplace/cloud-solution-providers

const (
	CspStateOptIn          CspState = "OptIn"
	CspStateOptOut         CspState = "OptOut"
	CspStateSelectiveOptIn CspState = "SelectiveOptIn"
	CspStateTerminated     CspState = "Terminated"
)

func PossibleCspStateValues

func PossibleCspStateValues() []CspState

PossibleCspStateValues returns the possible values for the CspState const type.

type ErrorResponse

type ErrorResponse struct {
	// The search error response details
	Error *ErrorResponseDetails `json:"error,omitempty"`
}

ErrorResponse - The search error response object

func (ErrorResponse) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type ErrorResponseDetails

type ErrorResponseDetails struct {
	// The error code description. Such as code=InternalError
	Code *string `json:"code,omitempty"`

	// The error message. Such as message=Internal server error
	Message *string `json:"message,omitempty"`
}

ErrorResponseDetails - The search error response details object

func (ErrorResponseDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorResponseDetails.

func (*ErrorResponseDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseDetails.

type FacetValue

type FacetValue struct {
	// The facet count
	Count *int64 `json:"count,omitempty"`
}

FacetValue - The facet value

func (FacetValue) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type FacetValue.

func (*FacetValue) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type FacetValue.

type FacetsItem

type FacetsItem struct {
	// The facet values
	FacetValues map[string]*FacetValue `json:"facetValues,omitempty"`
}

FacetsItem - The facets item

func (FacetsItem) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type FacetsItem.

func (*FacetsItem) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type FacetsItem.

type Gallery string

Gallery - Marketplace registered storefronts

const (
	GalleryAMPApps                     Gallery = "AMPApps"
	GalleryAMPConsultingServices       Gallery = "AMPConsultingServices"
	GalleryAppsourceApps               Gallery = "AppsourceApps"
	GalleryAppsourceConsultingServices Gallery = "AppsourceConsultingServices"
	GalleryAzure                       Gallery = "Azure"
)

func PossibleGalleryValues

func PossibleGalleryValues() []Gallery

PossibleGalleryValues returns the possible values for the Gallery const type.

type IndustryCloud

type IndustryCloud string

IndustryCloud - Define the search for IndustryCloud, see https://docs.microsoft.com/en-us/industry/

const (
	IndustryCloudFalse         IndustryCloud = "False"
	IndustryCloudNotApplicable IndustryCloud = "NotApplicable"
	IndustryCloudTrue          IndustryCloud = "True"
)

func PossibleIndustryCloudValues

func PossibleIndustryCloudValues() []IndustryCloud

PossibleIndustryCloudValues returns the possible values for the IndustryCloud const type.

type LeadGeneration

type LeadGeneration struct {
	// The productId
	ProductID *string `json:"productId,omitempty"`
}

LeadGeneration - Lead generation information

func (LeadGeneration) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type LeadGeneration.

func (*LeadGeneration) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type LeadGeneration.

type Link struct {
	// Display name of the link
	DisplayName *string `json:"displayName,omitempty"`

	// Id of the link
	ID *string `json:"id,omitempty"`

	// URI of the link
	URI *string `json:"uri,omitempty"`
}

Links to publisher external references documents

func (Link) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Link.

func (*Link) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type Link.

type MarketStartPrice

type MarketStartPrice struct {
	// Currency for price.
	Currency *string `json:"currency,omitempty"`

	// The market for which the starting price is calculated.
	Market *string `json:"market,omitempty"`

	// The meters pricing model units.
	MeterUnits *string `json:"meterUnits,omitempty"`

	// Starting (minimal) meters price.
	MinMeterPrice *float64 `json:"minMeterPrice,omitempty"`

	// Starting (minimal) terms price.
	MinTermPrice *float64 `json:"minTermPrice,omitempty"`

	// The terms pricing model units.
	TermUnits *string `json:"termUnits,omitempty"`
}

MarketStartPrice - The product starting price

func (MarketStartPrice) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MarketStartPrice.

func (*MarketStartPrice) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MarketStartPrice.

type PlanMetadata

type PlanMetadata struct {
	// Pointing to a planId which holds the alternative stack reference
	AltStackReference *string `json:"altStackReference,omitempty"`

	// The VM image generation, see https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2
	Generation *string `json:"generation,omitempty"`

	// Pointing to a planId that is related to this plan
	RelatedSKUs []*PlanSKURelation `json:"relatedSkus,omitempty"`
}

PlanMetadata - Additional metadata

func (PlanMetadata) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PlanMetadata.

func (*PlanMetadata) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanMetadata.

type PlanSKURelation

type PlanSKURelation struct {
	// Relation Type
	RelationType *string `json:"relationType,omitempty"`

	// The Sku
	SKU *PlanSKURelationSKU `json:"sku,omitempty"`
}

PlanSKURelation - Related plan information

func (PlanSKURelation) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PlanSKURelation.

func (*PlanSKURelation) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanSKURelation.

type PlanSKURelationSKU

type PlanSKURelationSKU struct {
	// The Generation
	Generation *string `json:"generation,omitempty"`

	// The Identity
	Identity *string `json:"identity,omitempty"`

	// The Name
	Name *string `json:"name,omitempty"`
}

PlanSKURelationSKU - The Sku

func (PlanSKURelationSKU) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PlanSKURelationSKU.

func (*PlanSKURelationSKU) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanSKURelationSKU.

type PlanSummary

type PlanSummary struct {
	// Plan level resources and configuration files
	Artifacts []*Artifact `json:"artifacts,omitempty"`

	// A value indicating whether the product is available for purchase through CSP channel
	CspState *PlanSummaryCspState `json:"cspState,omitempty"`

	// The description
	Description *string `json:"description,omitempty"`

	// Display name of the plan
	DisplayName *string `json:"displayName,omitempty"`

	// The display rank
	DisplayRank *string `json:"displayRank,omitempty"`

	// Indication that the plan is accessible to restricted audience only
	IsPrivate *bool `json:"isPrivate,omitempty"`

	// A value indicating whether the plan is quantifiable
	IsQuantifiable *bool `json:"isQuantifiable,omitempty"`

	// Lead generation information
	LeadGeneration *PlanSummaryLeadGeneration `json:"leadGeneration,omitempty"`

	// Additional metadata
	Metadata *PlanSummaryMetadata `json:"metadata,omitempty"`

	// Plan id
	PlanID *string `json:"planId,omitempty"`

	// The list of the pricing types for which this plan is designated
	PricingTypes []*PricingType `json:"pricingTypes,omitempty"`

	// The percentage discount for third party virtual machines software reservations
	PurchaseDurationDiscounts []*PurchaseDurationDiscount `json:"purchaseDurationDiscounts,omitempty"`

	// The sku id
	SKUID *string `json:"skuId,omitempty"`

	// The summary
	Summary *string `json:"summary,omitempty"`

	// The plan type, for Azure Application product type, this can be Solution Template or ManagedApp
	Type *ProductType `json:"type,omitempty"`

	// What Azure portal view to open when someone wants to create a marketplace item
	UIDefinitionURI *string `json:"uiDefinitionUri,omitempty"`

	// Unique plan Id which is obtained by combining uniqueProductId1 and PlanId with no separator in between
	UniquePlanID *string `json:"uniquePlanId,omitempty"`

	// The VM image architecture type, x64, ARM
	VMArchitectureType *string `json:"vmArchitectureType,omitempty"`

	// VM security types
	VMSecurityTypes []*VMSecurityType `json:"vmSecurityTypes,omitempty"`
}

PlanSummary - Summary description of the plan

func (PlanSummary) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PlanSummary.

func (*PlanSummary) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanSummary.

type PlanSummaryCspState

type PlanSummaryCspState string

PlanSummaryCspState - A value indicating whether the product is available for purchase through CSP channel

const (
	PlanSummaryCspStateOptIn          PlanSummaryCspState = "OptIn"
	PlanSummaryCspStateOptOut         PlanSummaryCspState = "OptOut"
	PlanSummaryCspStateSelectiveOptIn PlanSummaryCspState = "SelectiveOptIn"
	PlanSummaryCspStateTerminated     PlanSummaryCspState = "Terminated"
)

func PossiblePlanSummaryCspStateValues

func PossiblePlanSummaryCspStateValues() []PlanSummaryCspState

PossiblePlanSummaryCspStateValues returns the possible values for the PlanSummaryCspState const type.

type PlanSummaryLeadGeneration

type PlanSummaryLeadGeneration struct {
	// The productId
	ProductID *string `json:"productId,omitempty"`
}

PlanSummaryLeadGeneration - Lead generation information

func (PlanSummaryLeadGeneration) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PlanSummaryLeadGeneration.

func (*PlanSummaryLeadGeneration) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanSummaryLeadGeneration.

type PlanSummaryMetadata

type PlanSummaryMetadata struct {
	// Pointing to a planId which holds the alternative stack reference
	AltStackReference *string `json:"altStackReference,omitempty"`

	// The VM image generation, see https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2
	Generation *string `json:"generation,omitempty"`

	// Pointing to a planId that is related to this plan
	RelatedSKUs []*PlanSKURelation `json:"relatedSkus,omitempty"`
}

PlanSummaryMetadata - Additional metadata

func (PlanSummaryMetadata) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PlanSummaryMetadata.

func (*PlanSummaryMetadata) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanSummaryMetadata.

type PricingType

type PricingType string

PricingType - Pricing type

const (
	PricingTypeByol      PricingType = "Byol"
	PricingTypeFree      PricingType = "Free"
	PricingTypeFreeTrial PricingType = "FreeTrial"
	PricingTypePayg      PricingType = "Payg"
	PricingTypeRi        PricingType = "Ri"
)

func PossiblePricingTypeValues

func PossiblePricingTypeValues() []PricingType

PossiblePricingTypeValues returns the possible values for the PricingType const type.

type ProductSummary

type ProductSummary struct {
	// Eligibility for Azure consumption commitment benefit (https://docs.microsoft.com/en-us/marketplace/azure-consumption-commitment-benefit),
	// Possible values: Eligible, NotEligible, if no value selected,
	// this filter is ignored. Default: null
	AzureBenefit *ProductSummaryAzureBenefit `json:"azureBenefit,omitempty"`

	// The following product badges are available: preferredSolution, powerBICertified, AdditionalPurchaseRequirement
	Badges []*Badge `json:"badges,omitempty"`

	// Array of product categories, https://docs.microsoft.com/en-us/azure/marketplace/marketplace-categories-industries#categories.
	// Such as 'Productivity'
	CategoryIDs []*string `json:"categoryIds,omitempty"`

	// The CSP legal terms URI
	CspLegalTermsURI *string `json:"cspLegalTermsUri,omitempty"`

	// The product description text
	Description *string `json:"description,omitempty"`

	// Display name
	DisplayName *string `json:"displayName,omitempty"`

	// URI to the large product icon
	LargeIconURI *string `json:"largeIconUri,omitempty"`

	// The legal terms type
	LegalTermsType *string `json:"legalTermsType,omitempty"`

	// The legal terms uri
	LegalTermsURI *string `json:"legalTermsUri,omitempty"`

	// List of linked Add Ins supported by the product
	LinkedAddIns []*string `json:"linkedAddIns,omitempty"`

	// Links provided by the publisher
	Links []*Link `json:"links,omitempty"`

	// URI to the medium product icon
	MediumIconURI *string `json:"mediumIconUri,omitempty"`

	// Array of operating systems to search by, if none selected then filter is ignored, this is relevant for Virtual Machine
	// product type only. Such as operatingSystems=windows,linux
	OperatingSystems []*string `json:"operatingSystems,omitempty"`

	// List of plans that are available for this product
	Plans []*PlanSummary `json:"plans,omitempty"`

	// Popularity of the product
	Popularity *float64 `json:"popularity,omitempty"`

	// The list of the pricing types for which this offer is designated
	PricingTypes []*PricingType `json:"pricingTypes,omitempty"`

	// The Privacy Policy Uri
	PrivacyPolicyURI *string `json:"privacyPolicyUri,omitempty"`

	// The delivery method, deployment model
	ProductType *ProductSummaryProductType `json:"productType,omitempty"`

	// Publisher display name
	PublisherDisplayName *string `json:"publisherDisplayName,omitempty"`

	// Publisher id
	PublisherID *string `json:"publisherId,omitempty"`

	// Microsoft or third-party publisher
	PublisherType *ProductSummaryPublisherType `json:"publisherType,omitempty"`

	// Publishing Stage, can be Live or Preview
	PublishingStage *ProductSummaryPublishingStage `json:"publishingStage,omitempty"`

	// Average rating for the offer
	RatingAverage *float64 `json:"ratingAverage,omitempty"`

	// Rating buckets, Above1, Above2, Above3, Above4. Above5
	RatingBuckets []*RatingBucket `json:"ratingBuckets,omitempty"`

	// The Screenshots
	Screenshots []*string `json:"screenshots,omitempty"`

	// URI to the small product icon
	SmallIconURI *string `json:"smallIconUri,omitempty"`

	// The offer starting price
	StartingPrice *MarketStartPrice `json:"startingPrice,omitempty"`

	// Product Summary
	Summary *string `json:"summary,omitempty"`

	// The publisher support URL
	SupportURI *string `json:"supportUri,omitempty"`

	// Product unique identifier
	UniqueProductID *string `json:"uniqueProductId,omitempty"`

	// Array of Virtual Machine image architecture types to search by, 1-x64, 2-ARM. Such as '1'
	VMArchitectureTypes []*string `json:"vmArchitectureTypes,omitempty"`

	// Array of vm generations to search by, see Azure support for generation 2 VMs - Azure Virtual Machines | Microsoft Docs,
	// Possible values, 1,2. Such as '1'
	VMImageGenerations []*string `json:"vmImageGenerations,omitempty"`

	// Vm security types, Possible values, Trusted, Confidential, None.
	VMSecurityTypes []*VMSecurityType `json:"vmSecurityTypes,omitempty"`

	// The product version
	Version *string `json:"version,omitempty"`

	// URI to the wide product icon
	WideIconURI *string `json:"wideIconUri,omitempty"`
}

ProductSummary - Summary description of the product

func (ProductSummary) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ProductSummary.

func (*ProductSummary) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ProductSummary.

type ProductSummaryAzureBenefit

type ProductSummaryAzureBenefit string

ProductSummaryAzureBenefit - Eligibility for Azure consumption commitment benefit (https://docs.microsoft.com/en-us/marketplace/azure-consumption-commitment-benefit), Possible values: Eligible, NotEligible, if no value selected, this filter is ignored. Default: null

const (
	ProductSummaryAzureBenefitEligible    ProductSummaryAzureBenefit = "Eligible"
	ProductSummaryAzureBenefitNotEligible ProductSummaryAzureBenefit = "NotEligible"
)

func PossibleProductSummaryAzureBenefitValues

func PossibleProductSummaryAzureBenefitValues() []ProductSummaryAzureBenefit

PossibleProductSummaryAzureBenefitValues returns the possible values for the ProductSummaryAzureBenefit const type.

type ProductSummaryProductType

type ProductSummaryProductType string

ProductSummaryProductType - The delivery method, deployment model

const (
	ProductSummaryProductTypeAADApps               ProductSummaryProductType = "AADApps"
	ProductSummaryProductTypeAzureApplication      ProductSummaryProductType = "AzureApplication"
	ProductSummaryProductTypeAzureServices         ProductSummaryProductType = "AzureServices"
	ProductSummaryProductTypeConsultingServices    ProductSummaryProductType = "ConsultingServices"
	ProductSummaryProductTypeContainer             ProductSummaryProductType = "Container"
	ProductSummaryProductTypeContainerApps         ProductSummaryProductType = "ContainerApps"
	ProductSummaryProductTypeCoreVirtualMachine    ProductSummaryProductType = "CoreVirtualMachine"
	ProductSummaryProductTypeCosellOnly            ProductSummaryProductType = "CosellOnly"
	ProductSummaryProductTypeDevService            ProductSummaryProductType = "DevService"
	ProductSummaryProductTypeDynamicsBC            ProductSummaryProductType = "DynamicsBC"
	ProductSummaryProductTypeDynamicsCE            ProductSummaryProductType = "DynamicsCE"
	ProductSummaryProductTypeDynamicsOps           ProductSummaryProductType = "DynamicsOps"
	ProductSummaryProductTypeIotEdgeModules        ProductSummaryProductType = "IotEdgeModules"
	ProductSummaryProductTypeManagedApplication    ProductSummaryProductType = "ManagedApplication"
	ProductSummaryProductTypeManagedServices       ProductSummaryProductType = "ManagedServices"
	ProductSummaryProductTypeNone                  ProductSummaryProductType = "None"
	ProductSummaryProductTypeOffice365             ProductSummaryProductType = "Office365"
	ProductSummaryProductTypePowerBI               ProductSummaryProductType = "PowerBI"
	ProductSummaryProductTypePowerBIVisuals        ProductSummaryProductType = "PowerBIVisuals"
	ProductSummaryProductTypeSaaS                  ProductSummaryProductType = "SaaS"
	ProductSummaryProductTypeSolutionTemplate      ProductSummaryProductType = "SolutionTemplate"
	ProductSummaryProductTypeVirtualMachine        ProductSummaryProductType = "VirtualMachine"
	ProductSummaryProductTypeVisualStudioExtension ProductSummaryProductType = "VisualStudioExtension"
)

func PossibleProductSummaryProductTypeValues

func PossibleProductSummaryProductTypeValues() []ProductSummaryProductType

PossibleProductSummaryProductTypeValues returns the possible values for the ProductSummaryProductType const type.

type ProductSummaryPublisherType

type ProductSummaryPublisherType string

ProductSummaryPublisherType - Microsoft or third-party publisher

const (
	ProductSummaryPublisherTypeMicrosoft  ProductSummaryPublisherType = "Microsoft"
	ProductSummaryPublisherTypeThirdParty ProductSummaryPublisherType = "ThirdParty"
)

func PossibleProductSummaryPublisherTypeValues

func PossibleProductSummaryPublisherTypeValues() []ProductSummaryPublisherType

PossibleProductSummaryPublisherTypeValues returns the possible values for the ProductSummaryPublisherType const type.

type ProductSummaryPublishingStage

type ProductSummaryPublishingStage string

ProductSummaryPublishingStage - Publishing Stage, can be Live or Preview

const (
	ProductSummaryPublishingStagePreview ProductSummaryPublishingStage = "Preview"
	ProductSummaryPublishingStagePublic  ProductSummaryPublishingStage = "Public"
)

func PossibleProductSummaryPublishingStageValues

func PossibleProductSummaryPublishingStageValues() []ProductSummaryPublishingStage

PossibleProductSummaryPublishingStageValues returns the possible values for the ProductSummaryPublishingStage const type.

type ProductType

type ProductType string

ProductType - The delivery method, deployment model

const (
	ProductTypeAADApps               ProductType = "AADApps"
	ProductTypeAzureApplication      ProductType = "AzureApplication"
	ProductTypeAzureServices         ProductType = "AzureServices"
	ProductTypeConsultingServices    ProductType = "ConsultingServices"
	ProductTypeContainer             ProductType = "Container"
	ProductTypeContainerApps         ProductType = "ContainerApps"
	ProductTypeCoreVirtualMachine    ProductType = "CoreVirtualMachine"
	ProductTypeCosellOnly            ProductType = "CosellOnly"
	ProductTypeDevService            ProductType = "DevService"
	ProductTypeDynamicsBC            ProductType = "DynamicsBC"
	ProductTypeDynamicsCE            ProductType = "DynamicsCE"
	ProductTypeDynamicsOps           ProductType = "DynamicsOps"
	ProductTypeIotEdgeModules        ProductType = "IotEdgeModules"
	ProductTypeManagedApplication    ProductType = "ManagedApplication"
	ProductTypeManagedServices       ProductType = "ManagedServices"
	ProductTypeNone                  ProductType = "None"
	ProductTypeOffice365             ProductType = "Office365"
	ProductTypePowerBI               ProductType = "PowerBI"
	ProductTypePowerBIVisuals        ProductType = "PowerBIVisuals"
	ProductTypeSaaS                  ProductType = "SaaS"
	ProductTypeSolutionTemplate      ProductType = "SolutionTemplate"
	ProductTypeVirtualMachine        ProductType = "VirtualMachine"
	ProductTypeVisualStudioExtension ProductType = "VisualStudioExtension"
)

func PossibleProductTypeValues

func PossibleProductTypeValues() []ProductType

PossibleProductTypeValues returns the possible values for the ProductType const type.

type PublisherType

type PublisherType string

PublisherType - The publisher type

const (
	PublisherTypeMicrosoft  PublisherType = "Microsoft"
	PublisherTypeThirdParty PublisherType = "ThirdParty"
)

func PossiblePublisherTypeValues

func PossiblePublisherTypeValues() []PublisherType

PossiblePublisherTypeValues returns the possible values for the PublisherType const type.

type PublishingStage

type PublishingStage string

PublishingStage - The product publishing stage

const (
	PublishingStagePreview PublishingStage = "Preview"
	PublishingStagePublic  PublishingStage = "Public"
)

func PossiblePublishingStageValues

func PossiblePublishingStageValues() []PublishingStage

PossiblePublishingStageValues returns the possible values for the PublishingStage const type.

type PurchaseDurationDiscount

type PurchaseDurationDiscount struct {
	// The discountPercentage
	DiscountPercentage *float64 `json:"discountPercentage,omitempty"`

	// The duration
	Duration *string `json:"duration,omitempty"`
}

PurchaseDurationDiscount - The percentage discount for 3rd party virtual machines software reservations

func (PurchaseDurationDiscount) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PurchaseDurationDiscount.

func (*PurchaseDurationDiscount) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type PurchaseDurationDiscount.

type RatingBucket

type RatingBucket string

RatingBucket - Azure portal rating bucket to search by. Such as 'Above1'

const (
	RatingBucketAboveFour  RatingBucket = "AboveFour"
	RatingBucketAboveOne   RatingBucket = "AboveOne"
	RatingBucketAboveThree RatingBucket = "AboveThree"
	RatingBucketAboveTwo   RatingBucket = "AboveTwo"
)

func PossibleRatingBucketValues

func PossibleRatingBucketValues() []RatingBucket

PossibleRatingBucketValues returns the possible values for the RatingBucket const type.

type RelatedSKU

type RelatedSKU struct {
	// The Generation
	Generation *string `json:"generation,omitempty"`

	// The Identity
	Identity *string `json:"identity,omitempty"`

	// The Name
	Name *string `json:"name,omitempty"`
}

RelatedSKU - Pointing to a planId that is related to this plan

func (RelatedSKU) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RelatedSKU.

func (*RelatedSKU) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type RelatedSKU.

type SearchClient

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

func NewSearchClient

func NewSearchClient() *SearchClient

func (*SearchClient) Get

func (client *SearchClient) Get(ctx context.Context, language string, market string, xmsApp string, selectParam []SearchV2FieldName, publisherIds []string) (SearchClientGetResponse, error)

type SearchClientGetResponse

type SearchClientGetResponse struct {
	SearchResponse
}

SearchClientGetResponse contains the response from method searchClient.Get.

type SearchFieldName

type SearchFieldName string

SearchFieldName - The search field name

const (
	SearchFieldNameAll                  SearchFieldName = "All"
	SearchFieldNameApplicableProducts   SearchFieldName = "ApplicableProducts"
	SearchFieldNameAzureBenefit         SearchFieldName = "AzureBenefit"
	SearchFieldNameBadges               SearchFieldName = "Badges"
	SearchFieldNameCategoryIDs          SearchFieldName = "CategoryIds"
	SearchFieldNameCspStates            SearchFieldName = "CspStates"
	SearchFieldNameDescription          SearchFieldName = "Description"
	SearchFieldNameDisplayName          SearchFieldName = "DisplayName"
	SearchFieldNameHideKeys             SearchFieldName = "HideKeys"
	SearchFieldNameIndustryCloud        SearchFieldName = "IndustryCloud"
	SearchFieldNameLanguage             SearchFieldName = "Language"
	SearchFieldNameLargeIconURI         SearchFieldName = "LargeIconUri"
	SearchFieldNameLinkedAddIns         SearchFieldName = "LinkedAddIns"
	SearchFieldNameMarket               SearchFieldName = "Market"
	SearchFieldNameMediumIconURI        SearchFieldName = "MediumIconUri"
	SearchFieldNameOperatingSystems     SearchFieldName = "OperatingSystems"
	SearchFieldNamePlans                SearchFieldName = "Plans"
	SearchFieldNamePopularity           SearchFieldName = "Popularity"
	SearchFieldNamePricingTypes         SearchFieldName = "PricingTypes"
	SearchFieldNameProductType          SearchFieldName = "ProductType"
	SearchFieldNamePublisherDisplayName SearchFieldName = "PublisherDisplayName"
	SearchFieldNamePublisherID          SearchFieldName = "PublisherId"
	SearchFieldNamePublisherType        SearchFieldName = "PublisherType"
	SearchFieldNamePublishingState      SearchFieldName = "PublishingState"
	SearchFieldNameRatingAverage        SearchFieldName = "RatingAverage"
	SearchFieldNameRatingBuckets        SearchFieldName = "RatingBuckets"
	SearchFieldNameSmallIconURI         SearchFieldName = "SmallIconUri"
	SearchFieldNameSummary              SearchFieldName = "Summary"
	SearchFieldNameSupportedProducts    SearchFieldName = "SupportedProducts"
	SearchFieldNameUniqueProductID      SearchFieldName = "UniqueProductId"
	SearchFieldNameVMArchitectureTypes  SearchFieldName = "VmArchitectureTypes"
	SearchFieldNameVMImageGenerations   SearchFieldName = "VmImageGenerations"
	SearchFieldNameVMSecurityTypes      SearchFieldName = "VmSecurityTypes"
	SearchFieldNameWideIconURI          SearchFieldName = "WideIconUri"
)

func PossibleSearchFieldNameValues

func PossibleSearchFieldNameValues() []SearchFieldName

PossibleSearchFieldNameValues returns the possible values for the SearchFieldName const type.

type SearchResponse

type SearchResponse struct {
	// The search facets
	Facets map[string]*FacetsItem `json:"facets,omitempty"`

	// URL to get the next page of API search
	NextLink *string `json:"nextLink,omitempty"`

	// The results
	Results []*ProductSummary `json:"results,omitempty"`

	// The showing results for
	ShowingResultsFor *string `json:"showingResultsFor,omitempty"`

	// The total count
	TotalCount *int64 `json:"totalCount,omitempty"`
}

SearchResponse - Search response object

func (SearchResponse) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SearchResponse.

func (*SearchResponse) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type SearchResponse.

type SearchV2FieldName

type SearchV2FieldName string
const (
	SearchV2FieldNameAll                  SearchV2FieldName = "All"
	SearchV2FieldNameApplicableProducts   SearchV2FieldName = "ApplicableProducts"
	SearchV2FieldNameAzureBenefit         SearchV2FieldName = "AzureBenefit"
	SearchV2FieldNameBadges               SearchV2FieldName = "Badges"
	SearchV2FieldNameCategoryIDs          SearchV2FieldName = "CategoryIds"
	SearchV2FieldNameCspStates            SearchV2FieldName = "CspStates"
	SearchV2FieldNameDescription          SearchV2FieldName = "Description"
	SearchV2FieldNameDisplayName          SearchV2FieldName = "DisplayName"
	SearchV2FieldNameHideKeys             SearchV2FieldName = "HideKeys"
	SearchV2FieldNameIndustryCloud        SearchV2FieldName = "IndustryCloud"
	SearchV2FieldNameLanguage             SearchV2FieldName = "Language"
	SearchV2FieldNameLargeIconURI         SearchV2FieldName = "LargeIconUri"
	SearchV2FieldNameLinkedAddIns         SearchV2FieldName = "LinkedAddIns"
	SearchV2FieldNameMarket               SearchV2FieldName = "Market"
	SearchV2FieldNameMediumIconURI        SearchV2FieldName = "MediumIconUri"
	SearchV2FieldNameOperatingSystems     SearchV2FieldName = "OperatingSystems"
	SearchV2FieldNamePlans                SearchV2FieldName = "Plans"
	SearchV2FieldNamePopularity           SearchV2FieldName = "Popularity"
	SearchV2FieldNamePricingTypes         SearchV2FieldName = "PricingTypes"
	SearchV2FieldNameProductType          SearchV2FieldName = "ProductType"
	SearchV2FieldNamePublisherDisplayName SearchV2FieldName = "PublisherDisplayName"
	SearchV2FieldNamePublisherID          SearchV2FieldName = "PublisherId"
	SearchV2FieldNamePublisherType        SearchV2FieldName = "PublisherType"
	SearchV2FieldNamePublishingState      SearchV2FieldName = "PublishingState"
	SearchV2FieldNameRatingAverage        SearchV2FieldName = "RatingAverage"
	SearchV2FieldNameRatingBuckets        SearchV2FieldName = "RatingBuckets"
	SearchV2FieldNameSmallIconURI         SearchV2FieldName = "SmallIconUri"
	SearchV2FieldNameSummary              SearchV2FieldName = "Summary"
	SearchV2FieldNameSupportedProducts    SearchV2FieldName = "SupportedProducts"
	SearchV2FieldNameUniqueProductID      SearchV2FieldName = "UniqueProductId"
	SearchV2FieldNameVMArchitectureTypes  SearchV2FieldName = "VmArchitectureTypes"
	SearchV2FieldNameVMImageGenerations   SearchV2FieldName = "VmImageGenerations"
	SearchV2FieldNameVMSecurityTypes      SearchV2FieldName = "VmSecurityTypes"
	SearchV2FieldNameWideIconURI          SearchV2FieldName = "WideIconUri"
)

func PossibleSearchV2FieldNameValues

func PossibleSearchV2FieldNameValues() []SearchV2FieldName

PossibleSearchV2FieldNameValues returns the possible values for the SearchV2FieldName const type.

type VMSecurityType

type VMSecurityType string

VMSecurityType - Vm security type, Possible values: Trusted, Confidential, None.

const (
	VMSecurityTypeConfidential VMSecurityType = "Confidential"
	VMSecurityTypeNone         VMSecurityType = "None"
	VMSecurityTypeTrusted      VMSecurityType = "Trusted"
)

func PossibleVMSecurityTypeValues

func PossibleVMSecurityTypeValues() []VMSecurityType

PossibleVMSecurityTypeValues returns the possible values for the VMSecurityType const type.

Jump to

Keyboard shortcuts

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