armmarketplace

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 14 Imported by: 3

README

Azure Marketplace Module for Go

PkgGoDev

The armmarketplace module provides operations for working with Azure Marketplace.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Marketplace module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Marketplace. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Marketplace module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armmarketplace.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armmarketplace.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewPrivateStoreClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Marketplace label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessibility

type Accessibility string

Accessibility - Plan accessibility

const (
	AccessibilityPrivateSubscriptionOnLevel Accessibility = "PrivateSubscriptionOnLevel"
	AccessibilityPrivateTenantOnLevel       Accessibility = "PrivateTenantOnLevel"
	AccessibilityPublic                     Accessibility = "Public"
	AccessibilityUnknown                    Accessibility = "Unknown"
)

func PossibleAccessibilityValues

func PossibleAccessibilityValues() []Accessibility

PossibleAccessibilityValues returns the possible values for the Accessibility const type.

type AcknowledgeOfferNotificationDetails

type AcknowledgeOfferNotificationDetails struct {
	// Gets or sets a value indicating whether acknowledge action flag is enabled
	Acknowledge *bool

	// Gets or sets added plans
	AddPlans []*string

	// Gets or sets a value indicating whether dismiss action flag is enabled
	Dismiss *bool

	// Gets or sets a value indicating whether remove offer action flag is enabled
	RemoveOffer *bool

	// Gets or sets remove plans
	RemovePlans []*string
}

AcknowledgeOfferNotificationDetails - Notification update request payload details

func (AcknowledgeOfferNotificationDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AcknowledgeOfferNotificationDetails.

func (*AcknowledgeOfferNotificationDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AcknowledgeOfferNotificationDetails.

type AcknowledgeOfferNotificationProperties

type AcknowledgeOfferNotificationProperties struct {
	// Notification update request payload details
	Properties *AcknowledgeOfferNotificationDetails
}

AcknowledgeOfferNotificationProperties - Notification update request payload

func (AcknowledgeOfferNotificationProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AcknowledgeOfferNotificationProperties.

func (*AcknowledgeOfferNotificationProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AcknowledgeOfferNotificationProperties.

type AdminAction

type AdminAction string

AdminAction - Gets or sets admin action

const (
	AdminActionApproved AdminAction = "Approved"
	AdminActionRejected AdminAction = "Rejected"
)

func PossibleAdminActionValues

func PossibleAdminActionValues() []AdminAction

PossibleAdminActionValues returns the possible values for the AdminAction const type.

type AdminRequestApprovalProperties

type AdminRequestApprovalProperties struct {
	// Gets or sets admin action
	AdminAction *AdminAction

	// Gets or sets admin details
	Administrator *string

	// Gets or sets Approved plans ids, empty in case of rejected
	ApprovedPlans []*string

	// Gets or sets list of associated collection ids
	CollectionIDs []*string

	// Gets or sets admin comment
	Comment *string

	// Gets or sets offer Id
	OfferID *string

	// Gets or sets publisher Id
	PublisherID *string

	// READ-ONLY; Gets display name
	DisplayName *string

	// READ-ONLY; Gets list of plans with requesters details
	Plans []*PlanRequesterDetails
}

AdminRequestApprovalProperties - Admin approval request resource properties

func (AdminRequestApprovalProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AdminRequestApprovalProperties.

func (*AdminRequestApprovalProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AdminRequestApprovalProperties.

type AdminRequestApprovalsList

type AdminRequestApprovalsList struct {
	Value []*AdminRequestApprovalsResource

	// READ-ONLY; URL to get the next set of notifications list results if there are any.
	NextLink *string
}

AdminRequestApprovalsList - List of admin request approval resources

func (AdminRequestApprovalsList) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AdminRequestApprovalsList.

func (*AdminRequestApprovalsList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AdminRequestApprovalsList.

type AdminRequestApprovalsResource

type AdminRequestApprovalsResource struct {
	// The privateStore admin Approval request data structure.
	Properties *AdminRequestApprovalProperties

	// READ-ONLY; The resource ID.
	ID *string

	// READ-ONLY; The name of the resource.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

AdminRequestApprovalsResource - Admin request approval resource.

func (AdminRequestApprovalsResource) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type AdminRequestApprovalsResource.

func (*AdminRequestApprovalsResource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type AdminRequestApprovalsResource.

type Availability

type Availability string

Availability - Indicates private store availability

const (
	AvailabilityDisabled Availability = "disabled"
	AvailabilityEnabled  Availability = "enabled"
)

func PossibleAvailabilityValues

func PossibleAvailabilityValues() []Availability

PossibleAvailabilityValues returns the possible values for the Availability const type.

type BillingAccountsResponse

type BillingAccountsResponse struct {
	// Billing accounts list
	BillingAccounts []*string
}

BillingAccountsResponse - Billing accounts response object

func (BillingAccountsResponse) MarshalJSON

func (b BillingAccountsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BillingAccountsResponse.

func (*BillingAccountsResponse) UnmarshalJSON added in v1.1.0

func (b *BillingAccountsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BillingAccountsResponse.

type BulkCollectionsDetails

type BulkCollectionsDetails struct {
	// Action to perform (For example: EnableCollections, DisableCollections)
	Action *string

	// collection ids list that the action is performed on
	CollectionIDs []*string
}

BulkCollectionsDetails - Bulk collection details

func (BulkCollectionsDetails) MarshalJSON

func (b BulkCollectionsDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BulkCollectionsDetails.

func (*BulkCollectionsDetails) UnmarshalJSON added in v1.1.0

func (b *BulkCollectionsDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BulkCollectionsDetails.

type BulkCollectionsPayload

type BulkCollectionsPayload struct {
	// bulk collections properties details
	Properties *BulkCollectionsDetails
}

BulkCollectionsPayload - Bulk collections action properties

func (BulkCollectionsPayload) MarshalJSON added in v1.1.0

func (b BulkCollectionsPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BulkCollectionsPayload.

func (*BulkCollectionsPayload) UnmarshalJSON added in v1.1.0

func (b *BulkCollectionsPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BulkCollectionsPayload.

type BulkCollectionsResponse

type BulkCollectionsResponse struct {
	// Failed collections
	Failed []*CollectionsDetails

	// Succeeded collections
	Succeeded []*CollectionsDetails
}

BulkCollectionsResponse - The bulk collections response. The response contains two lists that indicate for each collection whether the operation succeeded or failed

func (BulkCollectionsResponse) MarshalJSON

func (b BulkCollectionsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BulkCollectionsResponse.

func (*BulkCollectionsResponse) UnmarshalJSON added in v1.1.0

func (b *BulkCollectionsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BulkCollectionsResponse.

type ClientFactory added in v1.1.0

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

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory added in v1.1.0

func NewClientFactory(credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewOperationsClient added in v1.1.0

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewPrivateStoreClient added in v1.1.0

func (c *ClientFactory) NewPrivateStoreClient() *PrivateStoreClient

NewPrivateStoreClient creates a new instance of PrivateStoreClient.

func (*ClientFactory) NewPrivateStoreCollectionClient added in v1.1.0

func (c *ClientFactory) NewPrivateStoreCollectionClient() *PrivateStoreCollectionClient

NewPrivateStoreCollectionClient creates a new instance of PrivateStoreCollectionClient.

func (*ClientFactory) NewPrivateStoreCollectionOfferClient added in v1.1.0

func (c *ClientFactory) NewPrivateStoreCollectionOfferClient() *PrivateStoreCollectionOfferClient

NewPrivateStoreCollectionOfferClient creates a new instance of PrivateStoreCollectionOfferClient.

type Collection

type Collection struct {
	// The collection data structure.
	Properties *CollectionProperties

	// READ-ONLY; The resource ID.
	ID *string

	// READ-ONLY; The name of the resource.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

Collection - The Collection data structure.

func (Collection) MarshalJSON added in v1.1.0

func (c Collection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Collection.

func (*Collection) UnmarshalJSON added in v1.1.0

func (c *Collection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Collection.

type CollectionProperties

type CollectionProperties struct {
	// Indicating whether all subscriptions are selected (=true) or not (=false).
	AllSubscriptions *bool

	// Gets or sets the association with Commercial's Billing Account.
	Claim *string

	// Gets or sets collection name.
	CollectionName *string

	// Indicating whether the collection is enabled or disabled.
	Enabled *bool

	// Gets or sets subscription ids list. Empty list indicates all subscriptions are selected, null indicates no update is done,
	// explicit list indicates the explicit selected subscriptions. On insert, null
	// is considered as bad request
	SubscriptionsList []*string

	// READ-ONLY; Gets collection Id.
	CollectionID *string

	// READ-ONLY; Gets the number of offers associated with the collection.
	NumberOfOffers *int64
}

CollectionProperties - The collection details

func (CollectionProperties) MarshalJSON

func (c CollectionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CollectionProperties.

func (*CollectionProperties) UnmarshalJSON added in v1.1.0

func (c *CollectionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CollectionProperties.

type CollectionsDetails

type CollectionsDetails struct {
	// Collection id.
	CollectionID *string

	// Collection name.
	CollectionName *string
}

CollectionsDetails - Collection name and id.

func (CollectionsDetails) MarshalJSON added in v1.1.0

func (c CollectionsDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CollectionsDetails.

func (*CollectionsDetails) UnmarshalJSON added in v1.1.0

func (c *CollectionsDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CollectionsDetails.

type CollectionsList

type CollectionsList struct {
	// URL to get the next set of offer list results if there are any.
	NextLink *string
	Value    []*Collection
}

func (CollectionsList) MarshalJSON

func (c CollectionsList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CollectionsList.

func (*CollectionsList) UnmarshalJSON added in v1.1.0

func (c *CollectionsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CollectionsList.

type CollectionsSubscriptionsMappingDetails

type CollectionsSubscriptionsMappingDetails struct {
	// Collection name
	CollectionName *string

	// Subscriptions ids list
	Subscriptions []*string
}

CollectionsSubscriptionsMappingDetails - Collection name and related subscriptions list

func (CollectionsSubscriptionsMappingDetails) MarshalJSON

func (c CollectionsSubscriptionsMappingDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CollectionsSubscriptionsMappingDetails.

func (*CollectionsSubscriptionsMappingDetails) UnmarshalJSON added in v1.1.0

func (c *CollectionsSubscriptionsMappingDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CollectionsSubscriptionsMappingDetails.

type CollectionsToSubscriptionsMappingPayload

type CollectionsToSubscriptionsMappingPayload struct {
	// Subscriptions ids list
	Properties *CollectionsToSubscriptionsMappingProperties
}

CollectionsToSubscriptionsMappingPayload - The subscriptions list to get the related collections

func (CollectionsToSubscriptionsMappingPayload) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type CollectionsToSubscriptionsMappingPayload.

func (*CollectionsToSubscriptionsMappingPayload) UnmarshalJSON added in v1.1.0

func (c *CollectionsToSubscriptionsMappingPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CollectionsToSubscriptionsMappingPayload.

type CollectionsToSubscriptionsMappingProperties

type CollectionsToSubscriptionsMappingProperties struct {
	// Subscriptions ids list
	SubscriptionIDs []*string
}

CollectionsToSubscriptionsMappingProperties - The subscriptions list to get the related collections

func (CollectionsToSubscriptionsMappingProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CollectionsToSubscriptionsMappingProperties.

func (*CollectionsToSubscriptionsMappingProperties) UnmarshalJSON added in v1.1.0

func (c *CollectionsToSubscriptionsMappingProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CollectionsToSubscriptionsMappingProperties.

type CollectionsToSubscriptionsMappingResponse

type CollectionsToSubscriptionsMappingResponse struct {
	// The map of collections subscriptions
	Details map[string]*CollectionsSubscriptionsMappingDetails
}

CollectionsToSubscriptionsMappingResponse - A map of collections subscriptions details

func (CollectionsToSubscriptionsMappingResponse) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CollectionsToSubscriptionsMappingResponse.

func (*CollectionsToSubscriptionsMappingResponse) UnmarshalJSON added in v1.1.0

func (c *CollectionsToSubscriptionsMappingResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CollectionsToSubscriptionsMappingResponse.

type ErrorResponse

type ErrorResponse struct {
	// The details of the error.
	Error *ErrorResponseError
}

ErrorResponse - Error response indicates Microsoft.Marketplace service is not able to process the incoming request. The reason is provided in the error message.

func (ErrorResponse) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type ErrorResponseError

type ErrorResponseError struct {
	// READ-ONLY; Error code.
	Code *string

	// READ-ONLY; Error message indicating why the operation failed.
	Message *string
}

ErrorResponseError - The details of the error.

func (ErrorResponseError) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ErrorResponseError.

func (*ErrorResponseError) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseError.

type IdentityType

type IdentityType string

IdentityType - The type of identity that creates/modifies resources

const (
	IdentityTypeApplication     IdentityType = "Application"
	IdentityTypeKey             IdentityType = "Key"
	IdentityTypeManagedIdentity IdentityType = "ManagedIdentity"
	IdentityTypeUser            IdentityType = "User"
)

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns the possible values for the IdentityType const type.

type NewNotifications

type NewNotifications struct {
	// Gets offer display name
	DisplayName *string

	// Gets or sets the icon url
	Icon *string

	// Gets a value indicating whether future plans is enabled.
	IsFuturePlansEnabled *bool

	// Gets or sets the notification message id
	MessageCode *int64

	// Gets offer id
	OfferID *string

	// Gets or sets removed plans notifications
	Plans []*PlanNotificationDetails
}

NewNotifications - New plans notification details

func (NewNotifications) MarshalJSON

func (n NewNotifications) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NewNotifications.

func (*NewNotifications) UnmarshalJSON added in v1.1.0

func (n *NewNotifications) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NewNotifications.

type NewPlansNotificationsList added in v0.3.0

type NewPlansNotificationsList struct {
	NewPlansNotifications []*NewNotifications
}

NewPlansNotificationsList - List of all new plans notifications for public offers

func (NewPlansNotificationsList) MarshalJSON added in v0.3.0

func (n NewPlansNotificationsList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NewPlansNotificationsList.

func (*NewPlansNotificationsList) UnmarshalJSON added in v1.1.0

func (n *NewPlansNotificationsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NewPlansNotificationsList.

type NotificationsSettingsProperties

type NotificationsSettingsProperties struct {
	// Gets or sets list of notified recipients for new requests
	Recipients []*Recipient

	// Gets or sets whether to send email to all marketplace admins for new requests
	SendToAllMarketplaceAdmins *bool
}

NotificationsSettingsProperties - Describes the json payload for notifications settings

func (NotificationsSettingsProperties) MarshalJSON

func (n NotificationsSettingsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NotificationsSettingsProperties.

func (*NotificationsSettingsProperties) UnmarshalJSON added in v1.1.0

func (n *NotificationsSettingsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NotificationsSettingsProperties.

type Offer

type Offer struct {
	// The privateStore offer data structure.
	Properties *OfferProperties

	// READ-ONLY; The resource ID.
	ID *string

	// READ-ONLY; The name of the resource.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

Offer - The privateStore offer data structure.

func (Offer) MarshalJSON added in v1.1.0

func (o Offer) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Offer.

func (*Offer) UnmarshalJSON added in v1.1.0

func (o *Offer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Offer.

type OfferListResponse

type OfferListResponse struct {
	// URL to get the next set of offer list results if there are any.
	NextLink *string
	Value    []*Offer
}

func (OfferListResponse) MarshalJSON

func (o OfferListResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OfferListResponse.

func (*OfferListResponse) UnmarshalJSON added in v1.1.0

func (o *OfferListResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OfferListResponse.

type OfferProperties

type OfferProperties struct {
	// Identifier for purposes of race condition
	ETag *string

	// Icon File Uris
	IconFileUris map[string]*string

	// Offer plans
	Plans []*Plan

	// Plan ids limitation for this offer
	SpecificPlanIDsLimitation []*string

	// Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed
	// one in db, the offer would not be updated.
	UpdateSuppressedDueIdempotence *bool

	// READ-ONLY; Private store offer creation date
	CreatedAt *string

	// READ-ONLY; Private store offer modification date
	ModifiedAt *string

	// READ-ONLY; It will be displayed prominently in the marketplace
	OfferDisplayName *string

	// READ-ONLY; Private store unique id
	PrivateStoreID *string

	// READ-ONLY; Publisher name that will be displayed prominently in the marketplace
	PublisherDisplayName *string

	// READ-ONLY; Offers unique id
	UniqueOfferID *string
}

func (OfferProperties) MarshalJSON

func (o OfferProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OfferProperties.

func (*OfferProperties) UnmarshalJSON added in v1.1.0

func (o *OfferProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OfferProperties.

type Operation

type Operation string

Operation - Set the Operation for the POST method. Ping or Delete

const (
	OperationDeletePrivateStoreCollection      Operation = "DeletePrivateStoreCollection"
	OperationDeletePrivateStoreCollectionOffer Operation = "DeletePrivateStoreCollectionOffer"
	OperationDeletePrivateStoreOffer           Operation = "DeletePrivateStoreOffer"
	OperationPing                              Operation = "Ping"
)

func PossibleOperationValues

func PossibleOperationValues() []Operation

PossibleOperationValues returns the possible values for the Operation const type.

type OperationListResult

type OperationListResult struct {
	// List of Microsoft.Marketplace operations supported by the Microsoft.Marketplace resource provider.
	Value []*SingleOperation

	// READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string
}

OperationListResult - Result of the request to list Marketplace operations. It contains a list of operations and a 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.

func (*OperationListResult) UnmarshalJSON added in v1.1.0

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationsClient

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

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) List

List - Lists all of the available Microsoft.Marketplace REST API operations. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetOperations.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewOperationsClient().List(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OperationListResult = armmarketplace.OperationListResult{
	// 	Value: []*armmarketplace.SingleOperation{
	// 		{
	// 			Name: to.Ptr("Microsoft.Marketplace/privateStores"),
	// 			Display: &armmarketplace.SingleOperationDisplay{
	// 				Operation: to.Ptr("Get Private Stores (singleton) "),
	// 				Provider: to.Ptr("Microsoft.Marketplace"),
	// 				Resource: to.Ptr("Resources"),
	// 			},
	// 			IsDataAction: to.Ptr(false),
	// 	}},
	// }
}
Output:

type OperationsClientListOptions added in v0.2.0

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.

type OperationsClientListResponse added in v0.2.0

type OperationsClientListResponse struct {
	// Result of the request to list Marketplace operations. It contains a list of operations and a URL link to get the next set
	// of results.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.List.

type Plan

type Plan struct {
	// Plan accessibility
	Accessibility *Accessibility

	// READ-ONLY; Alternative stack type
	AltStackReference *string

	// READ-ONLY; Friendly name for the plan for display in the marketplace
	PlanDisplayName *string

	// READ-ONLY; Text identifier for this plan
	PlanID *string

	// READ-ONLY; Identifier for this plan
	SKUID *string

	// READ-ONLY; Stack type (classic or arm)
	StackType *string
}

func (Plan) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Plan.

func (*Plan) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Plan.

type PlanDetails

type PlanDetails struct {
	// Gets or sets user's justification for the plan's request
	Justification *string

	// Gets or sets Plan Id
	PlanID *string

	// Gets or sets the subscription id that the user is requesting to add the plan to
	SubscriptionID *string

	// Gets or sets the subscription name that the user is requesting to add the plan to
	SubscriptionName *string

	// READ-ONLY; Gets request date
	RequestDate any

	// READ-ONLY; Gets the plan status
	Status *Status
}

PlanDetails - Return plan with request details

func (PlanDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type PlanDetails.

func (*PlanDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanDetails.

type PlanNotificationDetails

type PlanNotificationDetails struct {
	// Gets or sets the plan display name
	PlanDisplayName *string

	// Gets or sets the plan id
	PlanID *string
}

PlanNotificationDetails - Plan notification details

func (PlanNotificationDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type PlanNotificationDetails.

func (*PlanNotificationDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanNotificationDetails.

type PlanRequesterDetails

type PlanRequesterDetails struct {
	// READ-ONLY; Gets the plan display name
	PlanDisplayName *string

	// READ-ONLY; Gets the plan id
	PlanID *string

	// READ-ONLY; Gets requesters details list
	Requesters []*UserRequestDetails
}

PlanRequesterDetails - Plan with requesters details

func (PlanRequesterDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PlanRequesterDetails.

func (*PlanRequesterDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PlanRequesterDetails.

type PrivateStore

type PrivateStore struct {
	// The PrivateStore data structure.
	Properties *PrivateStoreProperties

	// READ-ONLY; The resource ID.
	ID *string

	// READ-ONLY; The name of the resource.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

PrivateStore - The PrivateStore data structure.

func (PrivateStore) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type PrivateStore.

func (*PrivateStore) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateStore.

type PrivateStoreClient

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

PrivateStoreClient contains the methods for the PrivateStore group. Don't use this type directly, use NewPrivateStoreClient() instead.

func NewPrivateStoreClient

func NewPrivateStoreClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateStoreClient, error)

NewPrivateStoreClient creates a new instance of PrivateStoreClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PrivateStoreClient) AcknowledgeOfferNotification

AcknowledgeOfferNotification - Acknowledge notification for offer If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • offerID - The offer ID to update or delete
  • options - PrivateStoreClientAcknowledgeOfferNotificationOptions contains the optional parameters for the PrivateStoreClient.AcknowledgeOfferNotification method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/AcknowledgeNotification.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreClient().AcknowledgeOfferNotification(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", &armmarketplace.PrivateStoreClientAcknowledgeOfferNotificationOptions{Payload: &armmarketplace.AcknowledgeOfferNotificationProperties{
		Properties: &armmarketplace.AcknowledgeOfferNotificationDetails{
			Acknowledge: to.Ptr(false),
			Dismiss:     to.Ptr(false),
			RemoveOffer: to.Ptr(false),
			RemovePlans: []*string{
				to.Ptr("testPlanA")},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PrivateStoreClient) AdminRequestApprovalsList

AdminRequestApprovalsList - Get list of admin request approvals If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientAdminRequestApprovalsListOptions contains the optional parameters for the PrivateStoreClient.AdminRequestApprovalsList method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/AdminRequestApprovalsList.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().AdminRequestApprovalsList(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AdminRequestApprovalsList = armmarketplace.AdminRequestApprovalsList{
	// 	Value: []*armmarketplace.AdminRequestApprovalsResource{
	// 		{
	// 			Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 			Type: to.Ptr("/providers/Microsoft.Marketplace/privateStores/adminRequestApprovals"),
	// 			ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/adminRequestApprovals/marketplacetestthirdparty.md-test-third-party-2"),
	// 			SystemData: &armmarketplace.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				CreatedBy: to.Ptr("user@somedoamin.com"),
	// 				CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 				LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 			},
	// 			Properties: &armmarketplace.AdminRequestApprovalProperties{
	// 				AdminAction: to.Ptr(armmarketplace.AdminAction("Pending")),
	// 				CollectionIDs: []*string{
	// 				},
	// 				DisplayName: to.Ptr("Offer display name"),
	// 				OfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 				Plans: []*armmarketplace.PlanRequesterDetails{
	// 					{
	// 						PlanDisplayName: to.Ptr("Plan display name A"),
	// 						PlanID: to.Ptr("testA"),
	// 						Requesters: []*armmarketplace.UserRequestDetails{
	// 							{
	// 								Date: to.Ptr("2021-02-01T11:42:12.9526511+02:00"),
	// 								Justification: to.Ptr("Because I want to...."),
	// 								SubscriptionID: to.Ptr("404a1952-706a-453a-989b-647cc4ca5f9c"),
	// 								SubscriptionName: to.Ptr("Test subscription"),
	// 								User: to.Ptr("testUser3"),
	// 						}},
	// 					},
	// 					{
	// 						PlanDisplayName: to.Ptr("*  (this means the user requested any plan, here you will get only *)"),
	// 						PlanID: to.Ptr("*"),
	// 						Requesters: []*armmarketplace.UserRequestDetails{
	// 							{
	// 								Date: to.Ptr("2021-02-01T11:42:12.9526511+02:00"),
	// 								Justification: to.Ptr("try me :)"),
	// 								SubscriptionID: to.Ptr("4ca4753c-5a1e-4913-b849-2c68880e03c2"),
	// 								SubscriptionName: to.Ptr("Test subscription 2"),
	// 								User: to.Ptr("testUser3"),
	// 						}},
	// 				}},
	// 				PublisherID: to.Ptr("marketplacetestthirdparty"),
	// 			},
	// 	}},
	// }
}
Output:

func (*PrivateStoreClient) BillingAccounts

BillingAccounts - Tenant billing accounts names If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientBillingAccountsOptions contains the optional parameters for the PrivateStoreClient.BillingAccounts method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/BillingAccounts.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().BillingAccounts(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.BillingAccountsResponse = armmarketplace.BillingAccountsResponse{
	// 	BillingAccounts: []*string{
	// 		to.Ptr("Billing Account 1"),
	// 		to.Ptr("Billing Account 2")},
	// 	}
}
Output:

func (*PrivateStoreClient) BulkCollectionsAction

BulkCollectionsAction - Perform an action on bulk collections If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientBulkCollectionsActionOptions contains the optional parameters for the PrivateStoreClient.BulkCollectionsAction method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/BulkCollectionsAction.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().BulkCollectionsAction(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", &armmarketplace.PrivateStoreClientBulkCollectionsActionOptions{Payload: &armmarketplace.BulkCollectionsPayload{
		Properties: &armmarketplace.BulkCollectionsDetails{
			Action: to.Ptr("EnableCollections"),
			CollectionIDs: []*string{
				to.Ptr("c752f021-1c37-4af5-b82f-74c51c27b44a"),
				to.Ptr("f47ef1c7-e908-4f39-ae29-db181634ad8d")},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.BulkCollectionsResponse = armmarketplace.BulkCollectionsResponse{
	// 	Failed: []*armmarketplace.CollectionsDetails{
	// 		{
	// 			CollectionID: to.Ptr("f47ef1c7-e908-4f39-ae29-db181634ad8d"),
	// 			CollectionName: to.Ptr("Test collection 2"),
	// 	}},
	// 	Succeeded: []*armmarketplace.CollectionsDetails{
	// 		{
	// 			CollectionID: to.Ptr("c752f021-1c37-4af5-b82f-74c51c27b44a"),
	// 			CollectionName: to.Ptr("Test collection"),
	// 	}},
	// }
}
Output:

func (*PrivateStoreClient) CollectionsToSubscriptionsMapping

CollectionsToSubscriptionsMapping - For a given subscriptions list, the API will return a map of collections and the related subscriptions from the supplied list. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientCollectionsToSubscriptionsMappingOptions contains the optional parameters for the PrivateStoreClient.CollectionsToSubscriptionsMapping method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/CollectionsToSubscriptionsMapping.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().CollectionsToSubscriptionsMapping(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", &armmarketplace.PrivateStoreClientCollectionsToSubscriptionsMappingOptions{Payload: &armmarketplace.CollectionsToSubscriptionsMappingPayload{
		Properties: &armmarketplace.CollectionsToSubscriptionsMappingProperties{
			SubscriptionIDs: []*string{
				to.Ptr("b340914e-353d-453a-85fb-8f9b65b51f91"),
				to.Ptr("f2baa04d-5bfc-461b-b6d8-61b403c9ec48")},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CollectionsToSubscriptionsMappingResponse = armmarketplace.CollectionsToSubscriptionsMappingResponse{
	// 	Details: map[string]*armmarketplace.CollectionsSubscriptionsMappingDetails{
	// 		"4eb49758-f591-486f-bd58-dff00fb7a8d8": &armmarketplace.CollectionsSubscriptionsMappingDetails{
	// 			CollectionName: to.Ptr("Test Collection"),
	// 			Subscriptions: []*string{
	// 				to.Ptr("b340914e-353d-453a-85fb-8f9b65b51f91"),
	// 				to.Ptr("f2baa04d-5bfc-461b-b6d8-61b403c9ec48")},
	// 			},
	// 			"74c02e27-2524-436c-831d-d64565f31153": &armmarketplace.CollectionsSubscriptionsMappingDetails{
	// 				CollectionName: to.Ptr("Test Collection 2"),
	// 			},
	// 		},
	// 	}
}
Output:

func (*PrivateStoreClient) CreateApprovalRequest

func (client *PrivateStoreClient) CreateApprovalRequest(ctx context.Context, privateStoreID string, requestApprovalID string, options *PrivateStoreClientCreateApprovalRequestOptions) (PrivateStoreClientCreateApprovalRequestResponse, error)

CreateApprovalRequest - Create approval request If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • requestApprovalID - The request approval ID to get create or update
  • options - PrivateStoreClientCreateApprovalRequestOptions contains the optional parameters for the PrivateStoreClient.CreateApprovalRequest method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/CreateApprovalRequest.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().CreateApprovalRequest(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", &armmarketplace.PrivateStoreClientCreateApprovalRequestOptions{Payload: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RequestApprovalResource = armmarketplace.RequestApprovalResource{
	// 	Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 	Type: to.Ptr("Microsoft.Marketplace/privateStores/requestApprovals"),
	// 	ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/9afd3c45-5230-4d58-9469-2cacc00bba68/requestApprovals/marketplacetestthirdparty.md-test-third-party-2"),
	// 	SystemData: &armmarketplace.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 		CreatedBy: to.Ptr("user@somedoamin.com"),
	// 		CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 		LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 	},
	// 	Properties: &armmarketplace.RequestApprovalProperties{
	// 		IsClosed: to.Ptr(false),
	// 		MessageCode: to.Ptr[int64](0),
	// 		OfferDisplayName: to.Ptr("Offer Display name"),
	// 		OfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 		PlansDetails: []*armmarketplace.PlanDetails{
	// 			{
	// 				Justification: to.Ptr("Because I want to...."),
	// 				PlanID: to.Ptr("testPlanA"),
	// 				RequestDate: "2021-02-01T10:23:17.6571572+02:00",
	// 				Status: to.Ptr(armmarketplace.StatusPending),
	// 				SubscriptionID: to.Ptr("4ca4753c-5a1e-4913-b849-2c68880e03c2"),
	// 				SubscriptionName: to.Ptr("Test subscription 2"),
	// 			},
	// 			{
	// 				Justification: to.Ptr("try me :)"),
	// 				PlanID: to.Ptr("*"),
	// 				RequestDate: "2021-02-01T10:23:17.6571572+02:00",
	// 				Status: to.Ptr(armmarketplace.StatusPending),
	// 				SubscriptionID: to.Ptr("4ca4753c-5a1e-4913-b849-2c68880e03c2"),
	// 				SubscriptionName: to.Ptr("Test subscription 2"),
	// 		}},
	// 		PublisherID: to.Ptr("marketplacetestthirdparty"),
	// 	},
	// }
}
Output:

func (*PrivateStoreClient) CreateOrUpdate

CreateOrUpdate - Changes private store properties If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientCreateOrUpdateOptions contains the optional parameters for the PrivateStoreClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/PrivateStores_update.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreClient().CreateOrUpdate(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", &armmarketplace.PrivateStoreClientCreateOrUpdateOptions{Payload: &armmarketplace.PrivateStore{
		Properties: &armmarketplace.PrivateStoreProperties{
			Availability: to.Ptr(armmarketplace.AvailabilityDisabled),
			ETag:         to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350345\""),
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PrivateStoreClient) Delete

Delete - Deletes the private store. All that is not saved will be lost. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientDeleteOptions contains the optional parameters for the PrivateStoreClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/DeletePrivateStore.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreClient().Delete(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PrivateStoreClient) FetchAllSubscriptionsInTenant added in v0.3.0

FetchAllSubscriptionsInTenant - Fetch all subscriptions in tenant, only for marketplace admin If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientFetchAllSubscriptionsInTenantOptions contains the optional parameters for the PrivateStoreClient.FetchAllSubscriptionsInTenant method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/FetchAllSubscriptionsInTenant.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().FetchAllSubscriptionsInTenant(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", &armmarketplace.PrivateStoreClientFetchAllSubscriptionsInTenantOptions{NextPageToken: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SubscriptionsResponse = armmarketplace.SubscriptionsResponse{
	// 	Count: to.Ptr[int64](1),
	// 	Value: []*armmarketplace.Subscription{
	// 		{
	// 			DisplayName: to.Ptr("Test subscription"),
	// 			ID: to.Ptr("/subscriptions/090dcec8-3415-4e13-9377-07f489cdfeed"),
	// 			State: to.Ptr(armmarketplace.SubscriptionStateEnabled),
	// 			SubscriptionID: to.Ptr("090dcec8-3415-4e13-9377-07f489cdfeed"),
	// 	}},
	// }
}
Output:

func (*PrivateStoreClient) Get

Get - Get information about the private store If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientGetOptions contains the optional parameters for the PrivateStoreClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetPrivateStore.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().Get(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrivateStore = armmarketplace.PrivateStore{
	// 	Name: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 	Type: to.Ptr("Microsoft.Marketplace/privateStores"),
	// 	ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 	Properties: &armmarketplace.PrivateStoreProperties{
	// 		Availability: to.Ptr(armmarketplace.AvailabilityEnabled),
	// 		Branding: map[string]*string{
	// 			"color": to.Ptr("blue"),
	// 			"iconUrl": to.Ptr("https://some-images.someDomail.com/image/stroeIcon.12345678-4321"),
	// 		},
	// 		CollectionIDs: []*string{
	// 			to.Ptr("ab80ed4-c5de-4593-b3c1-c46d4a3a56c7"),
	// 			to.Ptr("a09107d4-c585-4594-b3c6-c46d4a3a56c8")},
	// 			ETag: to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350345\""),
	// 			IsGov: to.Ptr(false),
	// 			NotificationsSettings: &armmarketplace.NotificationsSettingsProperties{
	// 				Recipients: []*armmarketplace.Recipient{
	// 					{
	// 						DisplayName: to.Ptr("John Doe"),
	// 						EmailAddress: to.Ptr("john_doe@microsoft.com"),
	// 						PrincipalID: to.Ptr("6d583005-403b-407a-8ac0-c4af72b47ce9"),
	// 					},
	// 					{
	// 						DisplayName: to.Ptr("Jane Doe"),
	// 						EmailAddress: to.Ptr("jane_doe@microsoft.com"),
	// 						PrincipalID: to.Ptr("c5b680d4-aac2-4940-9e1c-399454056ff2"),
	// 				}},
	// 				SendToAllMarketplaceAdmins: to.Ptr(true),
	// 			},
	// 			PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 			TenantID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 		},
	// 	}
}
Output:

func (*PrivateStoreClient) GetAdminRequestApproval

func (client *PrivateStoreClient) GetAdminRequestApproval(ctx context.Context, privateStoreID string, adminRequestApprovalID string, publisherID string, options *PrivateStoreClientGetAdminRequestApprovalOptions) (PrivateStoreClientGetAdminRequestApprovalResponse, error)

GetAdminRequestApproval - Get open approval requests If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • adminRequestApprovalID - The admin request approval ID to get create or update
  • publisherID - The publisher id of this offer.
  • options - PrivateStoreClientGetAdminRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.GetAdminRequestApproval method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetAdminRequestApproval.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().GetAdminRequestApproval(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", "marketplacetestthirdparty", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AdminRequestApprovalsResource = armmarketplace.AdminRequestApprovalsResource{
	// 	Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 	Type: to.Ptr("/providers/Microsoft.Marketplace/privateStores/adminRequestApprovals"),
	// 	ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/adminRequestApprovals/marketplacetestthirdparty.md-test-third-party-2"),
	// 	SystemData: &armmarketplace.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 		CreatedBy: to.Ptr("user@somedoamin.com"),
	// 		CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 		LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 	},
	// 	Properties: &armmarketplace.AdminRequestApprovalProperties{
	// 		AdminAction: to.Ptr(armmarketplace.AdminAction("Pending")),
	// 		CollectionIDs: []*string{
	// 		},
	// 		DisplayName: to.Ptr("Offer display name"),
	// 		OfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 		Plans: []*armmarketplace.PlanRequesterDetails{
	// 			{
	// 				PlanDisplayName: to.Ptr("Plan display name A"),
	// 				PlanID: to.Ptr("testA"),
	// 				Requesters: []*armmarketplace.UserRequestDetails{
	// 					{
	// 						Date: to.Ptr("2021-02-01T11:42:12.9526511+02:00"),
	// 						Justification: to.Ptr("Because I want to...."),
	// 						SubscriptionID: to.Ptr("1fs4r5t6-5a1e-4913-b849-2c68880e03c2"),
	// 						SubscriptionName: to.Ptr("Test subscription 1"),
	// 						User: to.Ptr("testUser3"),
	// 				}},
	// 			},
	// 			{
	// 				PlanDisplayName: to.Ptr("*  (this means the user requested any plan, here you will get only *)"),
	// 				PlanID: to.Ptr("*"),
	// 				Requesters: []*armmarketplace.UserRequestDetails{
	// 					{
	// 						Date: to.Ptr("2021-02-01T11:42:12.9526511+02:00"),
	// 						Justification: to.Ptr("try me :)"),
	// 						SubscriptionID: to.Ptr("4ca4753c-5a1e-4913-b849-2c68880e03c2"),
	// 						SubscriptionName: to.Ptr("Test subscription 2"),
	// 						User: to.Ptr("testUser3"),
	// 				}},
	// 		}},
	// 		PublisherID: to.Ptr("marketplacetestthirdparty"),
	// 	},
	// }
}
Output:

func (*PrivateStoreClient) GetApprovalRequestsList

GetApprovalRequestsList - Get all open approval requests of current user If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientGetApprovalRequestsListOptions contains the optional parameters for the PrivateStoreClient.GetApprovalRequestsList method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetApprovalRequestsList.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().GetApprovalRequestsList(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RequestApprovalsList = armmarketplace.RequestApprovalsList{
	// 	Value: []*armmarketplace.RequestApprovalResource{
	// 		{
	// 			Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 			Type: to.Ptr("Microsoft.Marketplace/privateStores/requestApprovals"),
	// 			ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/9afd3c45-5230-4d58-9469-2cacc00bba68/requestApprovals/marketplacetestthirdparty.md-test-third-party-2"),
	// 			SystemData: &armmarketplace.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				CreatedBy: to.Ptr("user@somedoamin.com"),
	// 				CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 				LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 			},
	// 			Properties: &armmarketplace.RequestApprovalProperties{
	// 				IsClosed: to.Ptr(false),
	// 				MessageCode: to.Ptr[int64](0),
	// 				OfferDisplayName: to.Ptr("Offer Display name"),
	// 				OfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 				PlansDetails: []*armmarketplace.PlanDetails{
	// 					{
	// 						Justification: to.Ptr("Because I want to...."),
	// 						PlanID: to.Ptr("testPlanA"),
	// 						RequestDate: "2021-02-01T10:23:17.6571572+02:00",
	// 						Status: to.Ptr(armmarketplace.StatusPending),
	// 						SubscriptionID: to.Ptr(""),
	// 						SubscriptionName: to.Ptr(""),
	// 					},
	// 					{
	// 						Justification: to.Ptr("try me :)"),
	// 						PlanID: to.Ptr("*"),
	// 						RequestDate: "2021-02-01T10:23:17.6571572+02:00",
	// 						Status: to.Ptr(armmarketplace.StatusPending),
	// 						SubscriptionID: to.Ptr(""),
	// 						SubscriptionName: to.Ptr(""),
	// 				}},
	// 				PublisherID: to.Ptr("marketplacetestthirdparty"),
	// 			},
	// 	}},
	// }
}
Output:

func (*PrivateStoreClient) GetRequestApproval

func (client *PrivateStoreClient) GetRequestApproval(ctx context.Context, privateStoreID string, requestApprovalID string, options *PrivateStoreClientGetRequestApprovalOptions) (PrivateStoreClientGetRequestApprovalResponse, error)

GetRequestApproval - Get open request approval details If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • requestApprovalID - The request approval ID to get create or update
  • options - PrivateStoreClientGetRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.GetRequestApproval method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetRequestApproval.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().GetRequestApproval(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.RequestApprovalResource = armmarketplace.RequestApprovalResource{
	// 	Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 	Type: to.Ptr("Microsoft.Marketplace/privateStores/requestApprovals"),
	// 	ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/requestApprovals/marketplacetestthirdparty.md-test-third-party-2"),
	// 	SystemData: &armmarketplace.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-05T17:18:19.123Z"); return t}()),
	// 		CreatedBy: to.Ptr("test@somedomain.com"),
	// 		CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-05T17:18:19.123Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("testuser@somedomail.com"),
	// 		LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 	},
	// 	Properties: &armmarketplace.RequestApprovalProperties{
	// 		IsClosed: to.Ptr(false),
	// 		MessageCode: to.Ptr[int64](0),
	// 		OfferDisplayName: to.Ptr("Offer display Name"),
	// 		OfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 		PlansDetails: []*armmarketplace.PlanDetails{
	// 			{
	// 				Justification: to.Ptr("Because I want to...."),
	// 				PlanID: to.Ptr("testPlanA"),
	// 				RequestDate: "2020-10-05T17:18:19.1234567Z",
	// 				Status: to.Ptr(armmarketplace.StatusPending),
	// 				SubscriptionID: to.Ptr(""),
	// 				SubscriptionName: to.Ptr(""),
	// 			},
	// 			{
	// 				Justification: to.Ptr("Because I want to...."),
	// 				PlanID: to.Ptr("testPlanB"),
	// 				RequestDate: "2020-10-05T17:18:19.1234567Z",
	// 				Status: to.Ptr(armmarketplace.StatusPending),
	// 				SubscriptionID: to.Ptr(""),
	// 				SubscriptionName: to.Ptr(""),
	// 		}},
	// 		PublisherID: to.Ptr("marketplacetestthirdparty"),
	// 	},
	// }
}
Output:

func (*PrivateStoreClient) ListNewPlansNotifications added in v0.3.0

ListNewPlansNotifications - List new plans notifications If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientListNewPlansNotificationsOptions contains the optional parameters for the PrivateStoreClient.ListNewPlansNotifications method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/ListNewPlansNotifications.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().ListNewPlansNotifications(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.NewPlansNotificationsList = armmarketplace.NewPlansNotificationsList{
	// 	NewPlansNotifications: []*armmarketplace.NewNotifications{
	// 		{
	// 			DisplayName: to.Ptr("Offer display name C"),
	// 			Icon: to.Ptr("https://some-images.someDomail.com/image/apps.12345678-76545678"),
	// 			IsFuturePlansEnabled: to.Ptr(false),
	// 			MessageCode: to.Ptr[int64](10000),
	// 			OfferID: to.Ptr("publisherIdC.legacyIdC"),
	// 			Plans: []*armmarketplace.PlanNotificationDetails{
	// 				{
	// 					PlanDisplayName: to.Ptr("Display Name Test"),
	// 					PlanID: to.Ptr("plan-test"),
	// 			}},
	// 	}},
	// }
}
Output:

func (*PrivateStoreClient) ListStopSellOffersPlansNotifications added in v0.3.0

ListStopSellOffersPlansNotifications - List stop sell notifications for both stop sell offers and stop sell plans If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientListStopSellOffersPlansNotificationsOptions contains the optional parameters for the PrivateStoreClient.ListStopSellOffersPlansNotifications method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/ListStopSellOffersPlansNotifications.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().ListStopSellOffersPlansNotifications(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", &armmarketplace.PrivateStoreClientListStopSellOffersPlansNotificationsOptions{StopSellSubscriptions: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.StopSellOffersPlansNotificationsList = armmarketplace.StopSellOffersPlansNotificationsList{
	// 	StopSellNotifications: []*armmarketplace.StopSellOffersPlansNotificationsListProperties{
	// 		{
	// 			DisplayName: to.Ptr("Offer display name"),
	// 			Icon: to.Ptr("https://some-images.someDomail.com/image/apps.12345678-4321"),
	// 			IsEntire: to.Ptr(false),
	// 			MessageCode: to.Ptr[int64](10002),
	// 			OfferID: to.Ptr("publisherId.legacyId"),
	// 			Plans: []*armmarketplace.PlanNotificationDetails{
	// 				{
	// 					PlanDisplayName: to.Ptr("test123"),
	// 					PlanID: to.Ptr("aaa"),
	// 			}},
	// 			PublicContext: to.Ptr(false),
	// 			SubscriptionsIDs: []*string{
	// 				to.Ptr("090dcec8-3415-4e13-9377-07f489cdfeed")},
	// 		}},
	// 	}
}
Output:

func (*PrivateStoreClient) ListSubscriptionsContext added in v0.3.0

ListSubscriptionsContext - List all the subscriptions in the private store context If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientListSubscriptionsContextOptions contains the optional parameters for the PrivateStoreClient.ListSubscriptionsContext method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/ListSubscriptionsContext.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().ListSubscriptionsContext(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SubscriptionsContextList = armmarketplace.SubscriptionsContextList{
	// 	SubscriptionsIDs: []*string{
	// 		to.Ptr("090dcec8-3415-4e13-9377-07f489cdfeed"),
	// 		to.Ptr("030dcec2-4323-5e13-9376-96f489cdfeed")},
	// 	}
}
Output:

func (*PrivateStoreClient) NewListPager added in v0.4.0

NewListPager - Gets the list of available private stores.

Generated from API version 2021-12-01

  • options - PrivateStoreClientListOptions contains the optional parameters for the PrivateStoreClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetPrivateStores.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPrivateStoreClient().NewListPager(&armmarketplace.PrivateStoreClientListOptions{UseCache: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.PrivateStoreList = armmarketplace.PrivateStoreList{
		// 	Value: []*armmarketplace.PrivateStore{
		// 		{
		// 			Name: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
		// 			Type: to.Ptr("Microsoft.Marketplace/privateStores"),
		// 			ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
		// 			Properties: &armmarketplace.PrivateStoreProperties{
		// 				Availability: to.Ptr(armmarketplace.AvailabilityEnabled),
		// 				Branding: map[string]*string{
		// 					"color": to.Ptr("blue"),
		// 					"iconUrl": to.Ptr("https://some-images.someDomail.com/image/stroeIcon.12345678-4321"),
		// 				},
		// 				CollectionIDs: []*string{
		// 					to.Ptr("ab80ed4-c5de-4593-b3c1-c46d4a3a56c7"),
		// 					to.Ptr("a09107d4-c585-4594-b3c6-c46d4a3a56c8")},
		// 					ETag: to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350332\""),
		// 					IsGov: to.Ptr(false),
		// 					NotificationsSettings: &armmarketplace.NotificationsSettingsProperties{
		// 						Recipients: []*armmarketplace.Recipient{
		// 							{
		// 								DisplayName: to.Ptr("John Doe"),
		// 								EmailAddress: to.Ptr("john_doe@microsoft.com"),
		// 								PrincipalID: to.Ptr("6d583005-403b-407a-8ac0-c4af72b47ce9"),
		// 							},
		// 							{
		// 								DisplayName: to.Ptr("Jane Doe"),
		// 								EmailAddress: to.Ptr("jane_doe@microsoft.com"),
		// 								PrincipalID: to.Ptr("c5b680d4-aac2-4940-9e1c-399454056ff2"),
		// 						}},
		// 						SendToAllMarketplaceAdmins: to.Ptr(true),
		// 					},
		// 					PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
		// 					TenantID: to.Ptr("f686d426-123a-42db-81b7-ab578e110ccd"),
		// 				},
		// 		}},
		// 	}
	}
}
Output:

func (*PrivateStoreClient) QueryApprovedPlans

QueryApprovedPlans - Get map of plans and related approved subscriptions. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientQueryApprovedPlansOptions contains the optional parameters for the PrivateStoreClient.QueryApprovedPlans method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/QueryApprovedPlans.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().QueryApprovedPlans(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", &armmarketplace.PrivateStoreClientQueryApprovedPlansOptions{Payload: &armmarketplace.QueryApprovedPlansPayload{
		Properties: &armmarketplace.QueryApprovedPlans{
			OfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
			PlanIDs: []*string{
				to.Ptr("testPlanA"),
				to.Ptr("testPlanB"),
				to.Ptr("testPlanC")},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.QueryApprovedPlansResponse = armmarketplace.QueryApprovedPlansResponse{
	// 	Details: []*armmarketplace.QueryApprovedPlansDetails{
	// 		{
	// 			AllSubscriptions: to.Ptr(false),
	// 			PlanID: to.Ptr("testPlanA"),
	// 			SubscriptionIDs: []*string{
	// 				to.Ptr("85e3e079-c718-4e4c-abbe-f72fceba8305"),
	// 				to.Ptr("7752d461-4bf1-4185-8b56-8a3f11486ac6")},
	// 			},
	// 			{
	// 				AllSubscriptions: to.Ptr(true),
	// 				PlanID: to.Ptr("testPlanB"),
	// 				SubscriptionIDs: []*string{
	// 				},
	// 			},
	// 			{
	// 				AllSubscriptions: to.Ptr(false),
	// 				PlanID: to.Ptr("testPlanC"),
	// 				SubscriptionIDs: []*string{
	// 				},
	// 		}},
	// 	}
}
Output:

func (*PrivateStoreClient) QueryNotificationsState

QueryNotificationsState - Get private store notifications state If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientQueryNotificationsStateOptions contains the optional parameters for the PrivateStoreClient.QueryNotificationsState method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/NotificationsState.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().QueryNotificationsState(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrivateStoreNotificationsState = armmarketplace.PrivateStoreNotificationsState{
	// 	ApprovalRequests: []*armmarketplace.RequestApprovalsDetails{
	// 		{
	// 			DisplayName: to.Ptr("Offer display name"),
	// 			Icon: to.Ptr("https://some-images.someDomail.com/image/apps.12345678-09876567894321"),
	// 			MessageCode: to.Ptr[int64](0),
	// 			OfferID: to.Ptr("publisherId.legacyId"),
	// 			Plans: []*armmarketplace.PlanNotificationDetails{
	// 				{
	// 					PlanDisplayName: to.Ptr("Plan Test display name"),
	// 					PlanID: to.Ptr("test-plan"),
	// 				},
	// 				{
	// 					PlanDisplayName: to.Ptr("Plan Test display name B"),
	// 					PlanID: to.Ptr("test-planB"),
	// 			}},
	// 			PublisherID: to.Ptr("publisherId"),
	// 	}},
	// 	NewNotifications: []*armmarketplace.NewNotifications{
	// 		{
	// 			DisplayName: to.Ptr("Offer display name C"),
	// 			Icon: to.Ptr("https://some-images.someDomail.com/image/apps.12345678-76545678"),
	// 			IsFuturePlansEnabled: to.Ptr(false),
	// 			MessageCode: to.Ptr[int64](10000),
	// 			OfferID: to.Ptr("publisherIdC.legacyIdC"),
	// 			Plans: []*armmarketplace.PlanNotificationDetails{
	// 				{
	// 					PlanDisplayName: to.Ptr("Display Name Test"),
	// 					PlanID: to.Ptr("plan-test"),
	// 			}},
	// 	}},
	// 	StopSellNotifications: []*armmarketplace.StopSellNotifications{
	// 		{
	// 			DisplayName: to.Ptr("Offer display name"),
	// 			Icon: to.Ptr("https://some-images.someDomail.com/image/apps.12345678-4321"),
	// 			IsEntire: to.Ptr(false),
	// 			MessageCode: to.Ptr[int64](10002),
	// 			OfferID: to.Ptr("publisherId.legacyId"),
	// 			Plans: []*armmarketplace.PlanNotificationDetails{
	// 				{
	// 					PlanDisplayName: to.Ptr("test123"),
	// 					PlanID: to.Ptr("aaa"),
	// 			}},
	// 		},
	// 		{
	// 			DisplayName: to.Ptr("Offer display name B"),
	// 			Icon: to.Ptr("https://some-images.someDomail.com/image/apps.12345678-7654"),
	// 			IsEntire: to.Ptr(true),
	// 			MessageCode: to.Ptr[int64](10003),
	// 			OfferID: to.Ptr("publisherIdB.legacyIdB"),
	// 	}},
	// }
}
Output:

func (*PrivateStoreClient) QueryOffers

QueryOffers - List of offers, regardless the collections If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreClientQueryOffersOptions contains the optional parameters for the PrivateStoreClient.QueryOffers method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/QueryOffers.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().QueryOffers(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.QueryOffers = armmarketplace.QueryOffers{
	// 	Value: []*armmarketplace.OfferProperties{
	// 		{
	// 			CreatedAt: to.Ptr("05/28/2015 5:50"),
	// 			ETag: to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350000\""),
	// 			ModifiedAt: to.Ptr("05/29/2015 5:50"),
	// 			OfferDisplayName: to.Ptr("md-test-third-party-2"),
	// 			PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 			PublisherDisplayName: to.Ptr("Marketplace Test Third Party"),
	// 			SpecificPlanIDsLimitation: []*string{
	// 				to.Ptr("0001"),
	// 				to.Ptr("0002"),
	// 				to.Ptr("0003")},
	// 				UniqueOfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 			},
	// 			{
	// 				CreatedAt: to.Ptr("05/28/2015 5:50"),
	// 				ETag: to.Ptr("\"9301f4fd-0000-0100-0304-5e248b350043\""),
	// 				ModifiedAt: to.Ptr("05/29/2015 5:50"),
	// 				OfferDisplayName: to.Ptr("md-test-third-party-3"),
	// 				PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 				PublisherDisplayName: to.Ptr("Marketplace Test Third Party"),
	// 				SpecificPlanIDsLimitation: []*string{
	// 					to.Ptr("0001"),
	// 					to.Ptr("0002")},
	// 					UniqueOfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-3"),
	// 			}},
	// 		}
}
Output:

func (*PrivateStoreClient) QueryRequestApproval

func (client *PrivateStoreClient) QueryRequestApproval(ctx context.Context, privateStoreID string, requestApprovalID string, options *PrivateStoreClientQueryRequestApprovalOptions) (PrivateStoreClientQueryRequestApprovalResponse, error)

QueryRequestApproval - Get request statuses foreach plan, this api is used as a complex GET action. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • requestApprovalID - The request approval ID to get create or update
  • options - PrivateStoreClientQueryRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.QueryRequestApproval method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/QueryRequestApproval.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().QueryRequestApproval(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", &armmarketplace.PrivateStoreClientQueryRequestApprovalOptions{Payload: &armmarketplace.QueryRequestApprovalProperties{
		Properties: &armmarketplace.RequestDetails{
			PlanIDs: []*string{
				to.Ptr("testPlanA"),
				to.Ptr("testPlanB"),
				to.Ptr("*")},
			PublisherID: to.Ptr("marketplacetestthirdparty"),
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.QueryRequestApproval = armmarketplace.QueryRequestApproval{
	// 	MessageCode: to.Ptr[int64](0),
	// 	PlansDetails: map[string]*armmarketplace.PlanDetails{
	// 		"*": &armmarketplace.PlanDetails{
	// 			PlanID: to.Ptr("*"),
	// 			Status: to.Ptr(armmarketplace.StatusNone),
	// 			SubscriptionID: to.Ptr(""),
	// 			SubscriptionName: to.Ptr(""),
	// 		},
	// 		"byol": &armmarketplace.PlanDetails{
	// 			Justification: to.Ptr(""),
	// 			PlanID: to.Ptr("testPlanA"),
	// 			Status: to.Ptr(armmarketplace.StatusNone),
	// 			SubscriptionID: to.Ptr(""),
	// 			SubscriptionName: to.Ptr(""),
	// 		},
	// 		"hourly": &armmarketplace.PlanDetails{
	// 			Justification: to.Ptr(""),
	// 			PlanID: to.Ptr("testPlanB"),
	// 			Status: to.Ptr(armmarketplace.Status("ApprovedByAdmin")),
	// 			SubscriptionID: to.Ptr("4ca4753c-5a1e-4913-b849-2c68880e03c2"),
	// 			SubscriptionName: to.Ptr("Test subscription 2"),
	// 		},
	// 	},
	// 	UniqueOfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// }
}
Output:

func (*PrivateStoreClient) UpdateAdminRequestApproval

func (client *PrivateStoreClient) UpdateAdminRequestApproval(ctx context.Context, privateStoreID string, adminRequestApprovalID string, options *PrivateStoreClientUpdateAdminRequestApprovalOptions) (PrivateStoreClientUpdateAdminRequestApprovalResponse, error)

UpdateAdminRequestApproval - Update the admin action, weather the request is approved or rejected and the approved plans If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • adminRequestApprovalID - The admin request approval ID to get create or update
  • options - PrivateStoreClientUpdateAdminRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.UpdateAdminRequestApproval method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/UpdateAdminRequestApproval.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreClient().UpdateAdminRequestApproval(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", &armmarketplace.PrivateStoreClientUpdateAdminRequestApprovalOptions{Payload: &armmarketplace.AdminRequestApprovalsResource{
		Properties: &armmarketplace.AdminRequestApprovalProperties{
			AdminAction: to.Ptr(armmarketplace.AdminActionApproved),
			ApprovedPlans: []*string{
				to.Ptr("testPlan")},
			CollectionIDs: []*string{
				to.Ptr("f8ee227e-85d7-477d-abbf-854d6decaf70"),
				to.Ptr("39246ad6-c521-4fed-8de7-77dede2e873f")},
			Comment:     to.Ptr("I'm ok with that"),
			PublisherID: to.Ptr("marketplacetestthirdparty"),
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AdminRequestApprovalsResource = armmarketplace.AdminRequestApprovalsResource{
	// 	Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 	Type: to.Ptr("/providers/Microsoft.Marketplace/privateStores/adminRequestApprovals"),
	// 	ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/adminRequestApprovals/marketplacetestthirdparty.md-test-third-party-2"),
	// 	SystemData: &armmarketplace.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-05T17:18:19.123Z"); return t}()),
	// 		CreatedBy: to.Ptr("test@somedomain.com"),
	// 		CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-05T17:18:19.123Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("testuser@somedomail.com"),
	// 		LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 	},
	// 	Properties: &armmarketplace.AdminRequestApprovalProperties{
	// 		AdminAction: to.Ptr(armmarketplace.AdminActionApproved),
	// 		Administrator: to.Ptr("admin@someDomain.com"),
	// 		ApprovedPlans: []*string{
	// 			to.Ptr("testPlan")},
	// 			CollectionIDs: []*string{
	// 				to.Ptr("f8ee227e-85d7-477d-abbf-854d6decaf70"),
	// 				to.Ptr("39246ad6-c521-4fed-8de7-77dede2e873f")},
	// 				Comment: to.Ptr("I'm ok with that"),
	// 				DisplayName: to.Ptr("Offer display name"),
	// 				OfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 				PublisherID: to.Ptr("marketplacetestthirdparty"),
	// 			},
	// 		}
}
Output:

func (*PrivateStoreClient) WithdrawPlan

func (client *PrivateStoreClient) WithdrawPlan(ctx context.Context, privateStoreID string, requestApprovalID string, options *PrivateStoreClientWithdrawPlanOptions) (PrivateStoreClientWithdrawPlanResponse, error)

WithdrawPlan - Withdraw a user request approval on specific plan If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • requestApprovalID - The request approval ID to get create or update
  • options - PrivateStoreClientWithdrawPlanOptions contains the optional parameters for the PrivateStoreClient.WithdrawPlan method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/WithdrawPlan.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreClient().WithdrawPlan(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", &armmarketplace.PrivateStoreClientWithdrawPlanOptions{Payload: &armmarketplace.WithdrawProperties{
		Properties: &armmarketplace.WithdrawDetails{
			PlanID:      to.Ptr("*"),
			PublisherID: to.Ptr("marketplacetestthirdparty"),
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

type PrivateStoreClientAcknowledgeOfferNotificationOptions added in v0.2.0

type PrivateStoreClientAcknowledgeOfferNotificationOptions struct {
	Payload *AcknowledgeOfferNotificationProperties
}

PrivateStoreClientAcknowledgeOfferNotificationOptions contains the optional parameters for the PrivateStoreClient.AcknowledgeOfferNotification method.

type PrivateStoreClientAcknowledgeOfferNotificationResponse added in v0.2.0

type PrivateStoreClientAcknowledgeOfferNotificationResponse struct {
}

PrivateStoreClientAcknowledgeOfferNotificationResponse contains the response from method PrivateStoreClient.AcknowledgeOfferNotification.

type PrivateStoreClientAdminRequestApprovalsListOptions added in v0.2.0

type PrivateStoreClientAdminRequestApprovalsListOptions struct {
}

PrivateStoreClientAdminRequestApprovalsListOptions contains the optional parameters for the PrivateStoreClient.AdminRequestApprovalsList method.

type PrivateStoreClientAdminRequestApprovalsListResponse added in v0.2.0

type PrivateStoreClientAdminRequestApprovalsListResponse struct {
	// List of admin request approval resources
	AdminRequestApprovalsList
}

PrivateStoreClientAdminRequestApprovalsListResponse contains the response from method PrivateStoreClient.AdminRequestApprovalsList.

type PrivateStoreClientBillingAccountsOptions added in v0.2.0

type PrivateStoreClientBillingAccountsOptions struct {
}

PrivateStoreClientBillingAccountsOptions contains the optional parameters for the PrivateStoreClient.BillingAccounts method.

type PrivateStoreClientBillingAccountsResponse added in v0.2.0

type PrivateStoreClientBillingAccountsResponse struct {
	// Billing accounts response object
	BillingAccountsResponse
}

PrivateStoreClientBillingAccountsResponse contains the response from method PrivateStoreClient.BillingAccounts.

type PrivateStoreClientBulkCollectionsActionOptions added in v0.2.0

type PrivateStoreClientBulkCollectionsActionOptions struct {
	Payload *BulkCollectionsPayload
}

PrivateStoreClientBulkCollectionsActionOptions contains the optional parameters for the PrivateStoreClient.BulkCollectionsAction method.

type PrivateStoreClientBulkCollectionsActionResponse added in v0.2.0

type PrivateStoreClientBulkCollectionsActionResponse struct {
	// The bulk collections response. The response contains two lists that indicate for each collection whether the operation
	// succeeded or failed
	BulkCollectionsResponse
}

PrivateStoreClientBulkCollectionsActionResponse contains the response from method PrivateStoreClient.BulkCollectionsAction.

type PrivateStoreClientCollectionsToSubscriptionsMappingOptions added in v0.2.0

type PrivateStoreClientCollectionsToSubscriptionsMappingOptions struct {
	Payload *CollectionsToSubscriptionsMappingPayload
}

PrivateStoreClientCollectionsToSubscriptionsMappingOptions contains the optional parameters for the PrivateStoreClient.CollectionsToSubscriptionsMapping method.

type PrivateStoreClientCollectionsToSubscriptionsMappingResponse added in v0.2.0

type PrivateStoreClientCollectionsToSubscriptionsMappingResponse struct {
	// A map of collections subscriptions details
	CollectionsToSubscriptionsMappingResponse
}

PrivateStoreClientCollectionsToSubscriptionsMappingResponse contains the response from method PrivateStoreClient.CollectionsToSubscriptionsMapping.

type PrivateStoreClientCreateApprovalRequestOptions added in v0.2.0

type PrivateStoreClientCreateApprovalRequestOptions struct {
	Payload *RequestApprovalResource
}

PrivateStoreClientCreateApprovalRequestOptions contains the optional parameters for the PrivateStoreClient.CreateApprovalRequest method.

type PrivateStoreClientCreateApprovalRequestResponse added in v0.2.0

type PrivateStoreClientCreateApprovalRequestResponse struct {
	// Request approval resource.
	RequestApprovalResource
}

PrivateStoreClientCreateApprovalRequestResponse contains the response from method PrivateStoreClient.CreateApprovalRequest.

type PrivateStoreClientCreateOrUpdateOptions added in v0.2.0

type PrivateStoreClientCreateOrUpdateOptions struct {
	Payload *PrivateStore
}

PrivateStoreClientCreateOrUpdateOptions contains the optional parameters for the PrivateStoreClient.CreateOrUpdate method.

type PrivateStoreClientCreateOrUpdateResponse added in v0.2.0

type PrivateStoreClientCreateOrUpdateResponse struct {
}

PrivateStoreClientCreateOrUpdateResponse contains the response from method PrivateStoreClient.CreateOrUpdate.

type PrivateStoreClientDeleteOptions added in v0.2.0

type PrivateStoreClientDeleteOptions struct {
}

PrivateStoreClientDeleteOptions contains the optional parameters for the PrivateStoreClient.Delete method.

type PrivateStoreClientDeleteResponse added in v0.2.0

type PrivateStoreClientDeleteResponse struct {
}

PrivateStoreClientDeleteResponse contains the response from method PrivateStoreClient.Delete.

type PrivateStoreClientFetchAllSubscriptionsInTenantOptions added in v0.3.0

type PrivateStoreClientFetchAllSubscriptionsInTenantOptions struct {
	// The skip token to get the next page.
	NextPageToken *string
}

PrivateStoreClientFetchAllSubscriptionsInTenantOptions contains the optional parameters for the PrivateStoreClient.FetchAllSubscriptionsInTenant method.

type PrivateStoreClientFetchAllSubscriptionsInTenantResponse added in v0.3.0

type PrivateStoreClientFetchAllSubscriptionsInTenantResponse struct {
	// Subscription list operation response.
	SubscriptionsResponse
}

PrivateStoreClientFetchAllSubscriptionsInTenantResponse contains the response from method PrivateStoreClient.FetchAllSubscriptionsInTenant.

type PrivateStoreClientGetAdminRequestApprovalOptions added in v0.2.0

type PrivateStoreClientGetAdminRequestApprovalOptions struct {
}

PrivateStoreClientGetAdminRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.GetAdminRequestApproval method.

type PrivateStoreClientGetAdminRequestApprovalResponse added in v0.2.0

type PrivateStoreClientGetAdminRequestApprovalResponse struct {
	// Admin request approval resource.
	AdminRequestApprovalsResource
}

PrivateStoreClientGetAdminRequestApprovalResponse contains the response from method PrivateStoreClient.GetAdminRequestApproval.

type PrivateStoreClientGetApprovalRequestsListOptions added in v0.2.0

type PrivateStoreClientGetApprovalRequestsListOptions struct {
}

PrivateStoreClientGetApprovalRequestsListOptions contains the optional parameters for the PrivateStoreClient.GetApprovalRequestsList method.

type PrivateStoreClientGetApprovalRequestsListResponse added in v0.2.0

type PrivateStoreClientGetApprovalRequestsListResponse struct {
	// List of admin request approval resources
	RequestApprovalsList
}

PrivateStoreClientGetApprovalRequestsListResponse contains the response from method PrivateStoreClient.GetApprovalRequestsList.

type PrivateStoreClientGetOptions added in v0.2.0

type PrivateStoreClientGetOptions struct {
}

PrivateStoreClientGetOptions contains the optional parameters for the PrivateStoreClient.Get method.

type PrivateStoreClientGetRequestApprovalOptions added in v0.2.0

type PrivateStoreClientGetRequestApprovalOptions struct {
}

PrivateStoreClientGetRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.GetRequestApproval method.

type PrivateStoreClientGetRequestApprovalResponse added in v0.2.0

type PrivateStoreClientGetRequestApprovalResponse struct {
	// Request approval resource.
	RequestApprovalResource
}

PrivateStoreClientGetRequestApprovalResponse contains the response from method PrivateStoreClient.GetRequestApproval.

type PrivateStoreClientGetResponse added in v0.2.0

type PrivateStoreClientGetResponse struct {
	// The PrivateStore data structure.
	PrivateStore
}

PrivateStoreClientGetResponse contains the response from method PrivateStoreClient.Get.

type PrivateStoreClientListNewPlansNotificationsOptions added in v0.3.0

type PrivateStoreClientListNewPlansNotificationsOptions struct {
}

PrivateStoreClientListNewPlansNotificationsOptions contains the optional parameters for the PrivateStoreClient.ListNewPlansNotifications method.

type PrivateStoreClientListNewPlansNotificationsResponse added in v0.3.0

type PrivateStoreClientListNewPlansNotificationsResponse struct {
	// List of all new plans notifications for public offers
	NewPlansNotificationsList
}

PrivateStoreClientListNewPlansNotificationsResponse contains the response from method PrivateStoreClient.ListNewPlansNotifications.

type PrivateStoreClientListOptions added in v0.2.0

type PrivateStoreClientListOptions struct {
	// Determines if to use cache or DB for serving this request
	UseCache *string
}

PrivateStoreClientListOptions contains the optional parameters for the PrivateStoreClient.NewListPager method.

type PrivateStoreClientListResponse added in v0.2.0

type PrivateStoreClientListResponse struct {
	// Describes the json payload for the list of available private stores (between zero and one, inclusive)
	PrivateStoreList
}

PrivateStoreClientListResponse contains the response from method PrivateStoreClient.NewListPager.

type PrivateStoreClientListStopSellOffersPlansNotificationsOptions added in v0.3.0

type PrivateStoreClientListStopSellOffersPlansNotificationsOptions struct {
	StopSellSubscriptions *StopSellSubscriptions
}

PrivateStoreClientListStopSellOffersPlansNotificationsOptions contains the optional parameters for the PrivateStoreClient.ListStopSellOffersPlansNotifications method.

type PrivateStoreClientListStopSellOffersPlansNotificationsResponse added in v0.3.0

type PrivateStoreClientListStopSellOffersPlansNotificationsResponse struct {
	// List of stop sell offers and plans notifications.
	StopSellOffersPlansNotificationsList
}

PrivateStoreClientListStopSellOffersPlansNotificationsResponse contains the response from method PrivateStoreClient.ListStopSellOffersPlansNotifications.

type PrivateStoreClientListSubscriptionsContextOptions added in v0.3.0

type PrivateStoreClientListSubscriptionsContextOptions struct {
}

PrivateStoreClientListSubscriptionsContextOptions contains the optional parameters for the PrivateStoreClient.ListSubscriptionsContext method.

type PrivateStoreClientListSubscriptionsContextResponse added in v0.3.0

type PrivateStoreClientListSubscriptionsContextResponse struct {
	// List of subscription Ids in the private store
	SubscriptionsContextList
}

PrivateStoreClientListSubscriptionsContextResponse contains the response from method PrivateStoreClient.ListSubscriptionsContext.

type PrivateStoreClientQueryApprovedPlansOptions added in v0.2.0

type PrivateStoreClientQueryApprovedPlansOptions struct {
	Payload *QueryApprovedPlansPayload
}

PrivateStoreClientQueryApprovedPlansOptions contains the optional parameters for the PrivateStoreClient.QueryApprovedPlans method.

type PrivateStoreClientQueryApprovedPlansResponse added in v0.2.0

type PrivateStoreClientQueryApprovedPlansResponse struct {
	// Query approved plans response
	QueryApprovedPlansResponse
}

PrivateStoreClientQueryApprovedPlansResponse contains the response from method PrivateStoreClient.QueryApprovedPlans.

type PrivateStoreClientQueryNotificationsStateOptions added in v0.2.0

type PrivateStoreClientQueryNotificationsStateOptions struct {
}

PrivateStoreClientQueryNotificationsStateOptions contains the optional parameters for the PrivateStoreClient.QueryNotificationsState method.

type PrivateStoreClientQueryNotificationsStateResponse added in v0.2.0

type PrivateStoreClientQueryNotificationsStateResponse struct {
	// Get private store notifications state
	PrivateStoreNotificationsState
}

PrivateStoreClientQueryNotificationsStateResponse contains the response from method PrivateStoreClient.QueryNotificationsState.

type PrivateStoreClientQueryOffersOptions added in v0.2.0

type PrivateStoreClientQueryOffersOptions struct {
}

PrivateStoreClientQueryOffersOptions contains the optional parameters for the PrivateStoreClient.QueryOffers method.

type PrivateStoreClientQueryOffersResponse added in v0.2.0

type PrivateStoreClientQueryOffersResponse struct {
	// List of offers
	QueryOffers
}

PrivateStoreClientQueryOffersResponse contains the response from method PrivateStoreClient.QueryOffers.

type PrivateStoreClientQueryRequestApprovalOptions added in v0.2.0

type PrivateStoreClientQueryRequestApprovalOptions struct {
	Payload *QueryRequestApprovalProperties
}

PrivateStoreClientQueryRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.QueryRequestApproval method.

type PrivateStoreClientQueryRequestApprovalResponse added in v0.2.0

type PrivateStoreClientQueryRequestApprovalResponse struct {
	// Gets the request plans with indication on each plan whether is approved by the admin, has pending request or not requested
	// yet
	QueryRequestApproval
}

PrivateStoreClientQueryRequestApprovalResponse contains the response from method PrivateStoreClient.QueryRequestApproval.

type PrivateStoreClientUpdateAdminRequestApprovalOptions added in v0.2.0

type PrivateStoreClientUpdateAdminRequestApprovalOptions struct {
	Payload *AdminRequestApprovalsResource
}

PrivateStoreClientUpdateAdminRequestApprovalOptions contains the optional parameters for the PrivateStoreClient.UpdateAdminRequestApproval method.

type PrivateStoreClientUpdateAdminRequestApprovalResponse added in v0.2.0

type PrivateStoreClientUpdateAdminRequestApprovalResponse struct {
	// Admin request approval resource.
	AdminRequestApprovalsResource
}

PrivateStoreClientUpdateAdminRequestApprovalResponse contains the response from method PrivateStoreClient.UpdateAdminRequestApproval.

type PrivateStoreClientWithdrawPlanOptions added in v0.2.0

type PrivateStoreClientWithdrawPlanOptions struct {
	Payload *WithdrawProperties
}

PrivateStoreClientWithdrawPlanOptions contains the optional parameters for the PrivateStoreClient.WithdrawPlan method.

type PrivateStoreClientWithdrawPlanResponse added in v0.2.0

type PrivateStoreClientWithdrawPlanResponse struct {
}

PrivateStoreClientWithdrawPlanResponse contains the response from method PrivateStoreClient.WithdrawPlan.

type PrivateStoreCollectionClient

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

PrivateStoreCollectionClient contains the methods for the PrivateStoreCollection group. Don't use this type directly, use NewPrivateStoreCollectionClient() instead.

func NewPrivateStoreCollectionClient

func NewPrivateStoreCollectionClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateStoreCollectionClient, error)

NewPrivateStoreCollectionClient creates a new instance of PrivateStoreCollectionClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PrivateStoreCollectionClient) CreateOrUpdate

CreateOrUpdate - Create or update private store collection If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • collectionID - The collection ID
  • options - PrivateStoreCollectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateStoreCollectionClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/CreatePrivateStoreCollection.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreCollectionClient().CreateOrUpdate(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1", &armmarketplace.PrivateStoreCollectionClientCreateOrUpdateOptions{Payload: &armmarketplace.Collection{
		Properties: &armmarketplace.CollectionProperties{
			AllSubscriptions: to.Ptr(false),
			Claim:            to.Ptr(""),
			CollectionName:   to.Ptr("Test Collection"),
			SubscriptionsList: []*string{
				to.Ptr("b340914e-353d-453a-85fb-8f9b65b51f91"),
				to.Ptr("f2baa04d-5bfc-461b-b6d8-61b403c9ec48")},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Collection = armmarketplace.Collection{
	// 	Name: to.Ptr("d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1"),
	// 	Type: to.Ptr("Microsoft.Marketplace/privateStores/collections"),
	// 	ID: to.Ptr("providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1"),
	// 	SystemData: &armmarketplace.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-01T08:23:17.657Z"); return t}()),
	// 		CreatedBy: to.Ptr("user@somedoamin.com"),
	// 		CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-01T08:23:17.657Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 		LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 	},
	// 	Properties: &armmarketplace.CollectionProperties{
	// 		AllSubscriptions: to.Ptr(false),
	// 		Claim: to.Ptr(""),
	// 		CollectionName: to.Ptr("Test Collection"),
	// 		SubscriptionsList: []*string{
	// 			to.Ptr("b340914e-353d-453a-85fb-8f9b65b51f91"),
	// 			to.Ptr("f2baa04d-5bfc-461b-b6d8-61b403c9ec48")},
	// 		},
	// 	}
}
Output:

func (*PrivateStoreCollectionClient) Delete

Delete - Delete a collection from the given private store. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • collectionID - The collection ID
  • options - PrivateStoreCollectionClientDeleteOptions contains the optional parameters for the PrivateStoreCollectionClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/DeletePrivateStoreCollection.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreCollectionClient().Delete(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PrivateStoreCollectionClient) Get

Get - Gets private store collection If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • collectionID - The collection ID
  • options - PrivateStoreCollectionClientGetOptions contains the optional parameters for the PrivateStoreCollectionClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetPrivateStoreCollection.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreCollectionClient().Get(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Collection = armmarketplace.Collection{
	// 	Name: to.Ptr("56a1a02d-8cf8-45df-bf37-d5f7120fcb3d"),
	// 	Type: to.Ptr("Microsoft.Marketplace/privateStores/collections"),
	// 	ID: to.Ptr("providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d"),
	// 	SystemData: &armmarketplace.SystemData{
	// 		CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 		CreatedBy: to.Ptr("user@somedoamin.com"),
	// 		CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 		LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 		LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 		LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 	},
	// 	Properties: &armmarketplace.CollectionProperties{
	// 		AllSubscriptions: to.Ptr(true),
	// 		Claim: to.Ptr(""),
	// 		CollectionID: to.Ptr("56a1a02d-8cf8-45df-bf37-d5f7120fcb3d"),
	// 		CollectionName: to.Ptr("Default Collection"),
	// 		SubscriptionsList: []*string{
	// 		},
	// 	},
	// }
}
Output:

func (*PrivateStoreCollectionClient) List

List - Gets private store collections list If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • options - PrivateStoreCollectionClientListOptions contains the optional parameters for the PrivateStoreCollectionClient.List method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetPrivateStoreCollectionsList.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreCollectionClient().List(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CollectionsList = armmarketplace.CollectionsList{
	// 	Value: []*armmarketplace.Collection{
	// 		{
	// 			Name: to.Ptr("56a1a02d-8cf8-45df-bf37-d5f7120fcb3d"),
	// 			Type: to.Ptr("Microsoft.Marketplace/privateStores/collections"),
	// 			ID: to.Ptr("providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections"),
	// 			SystemData: &armmarketplace.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				CreatedBy: to.Ptr("user@somedoamin.com"),
	// 				CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 				LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 			},
	// 			Properties: &armmarketplace.CollectionProperties{
	// 				AllSubscriptions: to.Ptr(true),
	// 				Claim: to.Ptr(""),
	// 				CollectionID: to.Ptr("56a1a02d-8cf8-45df-bf37-d5f7120fcb3d"),
	// 				CollectionName: to.Ptr("Default Collection"),
	// 				SubscriptionsList: []*string{
	// 				},
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("fba3f52c-874a-4010-87cf-c1cfa6ed3490"),
	// 			Type: to.Ptr("Microsoft.Marketplace/privateStores/collections"),
	// 			ID: to.Ptr("providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections"),
	// 			SystemData: &armmarketplace.SystemData{
	// 				CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				CreatedBy: to.Ptr("user@somedoamin.com"),
	// 				CreatedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 				LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-02-01T08:23:17.657Z"); return t}()),
	// 				LastModifiedBy: to.Ptr("user@somedoamin.com"),
	// 				LastModifiedByType: to.Ptr(armmarketplace.IdentityTypeUser),
	// 			},
	// 			Properties: &armmarketplace.CollectionProperties{
	// 				AllSubscriptions: to.Ptr(false),
	// 				Claim: to.Ptr(""),
	// 				CollectionID: to.Ptr("56a1a02d-8cf8-45df-bf37-d5f7120fcb3d"),
	// 				CollectionName: to.Ptr("Dev collection"),
	// 				SubscriptionsList: []*string{
	// 					to.Ptr("7c927b63-59cf-4a0f-9d13-41e11f1ddf76")},
	// 				},
	// 		}},
	// 	}
}
Output:

func (*PrivateStoreCollectionClient) Post

Post - Delete Private store collection. This is a workaround. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • collectionID - The collection ID
  • options - PrivateStoreCollectionClientPostOptions contains the optional parameters for the PrivateStoreCollectionClient.Post method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/PostPrivateStoreCollection.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreCollectionClient().Post(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", &armmarketplace.PrivateStoreCollectionClientPostOptions{Payload: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PrivateStoreCollectionClient) TransferOffers

TransferOffers - transferring offers (copy or move) from source collection to target collection(s) If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • collectionID - The collection ID
  • options - PrivateStoreCollectionClientTransferOffersOptions contains the optional parameters for the PrivateStoreCollectionClient.TransferOffers method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/TransferOffers.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreCollectionClient().TransferOffers(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", &armmarketplace.PrivateStoreCollectionClientTransferOffersOptions{Payload: &armmarketplace.TransferOffersProperties{
		Properties: &armmarketplace.TransferOffersDetails{
			OfferIDsList: []*string{
				to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
				to.Ptr("marketplacetestthirdparty.md-test-third-party-3")},
			Operation: to.Ptr("copy"),
			TargetCollections: []*string{
				to.Ptr("c752f021-1c37-4af5-b82f-74c51c27b44a"),
				to.Ptr("f47ef1c7-e908-4f39-ae29-db181634ad8d")},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.TransferOffersResponse = armmarketplace.TransferOffersResponse{
	// 	Failed: []*armmarketplace.CollectionsDetails{
	// 		{
	// 			CollectionID: to.Ptr("f47ef1c7-e908-4f39-ae29-db181634ad8d"),
	// 			CollectionName: to.Ptr("Test collection 2"),
	// 	}},
	// 	Succeeded: []*armmarketplace.CollectionsDetails{
	// 		{
	// 			CollectionID: to.Ptr("c752f021-1c37-4af5-b82f-74c51c27b44a"),
	// 			CollectionName: to.Ptr("Test collection"),
	// 	}},
	// }
}
Output:

type PrivateStoreCollectionClientCreateOrUpdateOptions added in v0.2.0

type PrivateStoreCollectionClientCreateOrUpdateOptions struct {
	Payload *Collection
}

PrivateStoreCollectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateStoreCollectionClient.CreateOrUpdate method.

type PrivateStoreCollectionClientCreateOrUpdateResponse added in v0.2.0

type PrivateStoreCollectionClientCreateOrUpdateResponse struct {
	// The Collection data structure.
	Collection
}

PrivateStoreCollectionClientCreateOrUpdateResponse contains the response from method PrivateStoreCollectionClient.CreateOrUpdate.

type PrivateStoreCollectionClientDeleteOptions added in v0.2.0

type PrivateStoreCollectionClientDeleteOptions struct {
}

PrivateStoreCollectionClientDeleteOptions contains the optional parameters for the PrivateStoreCollectionClient.Delete method.

type PrivateStoreCollectionClientDeleteResponse added in v0.2.0

type PrivateStoreCollectionClientDeleteResponse struct {
}

PrivateStoreCollectionClientDeleteResponse contains the response from method PrivateStoreCollectionClient.Delete.

type PrivateStoreCollectionClientGetOptions added in v0.2.0

type PrivateStoreCollectionClientGetOptions struct {
}

PrivateStoreCollectionClientGetOptions contains the optional parameters for the PrivateStoreCollectionClient.Get method.

type PrivateStoreCollectionClientGetResponse added in v0.2.0

type PrivateStoreCollectionClientGetResponse struct {
	// The Collection data structure.
	Collection
}

PrivateStoreCollectionClientGetResponse contains the response from method PrivateStoreCollectionClient.Get.

type PrivateStoreCollectionClientListOptions added in v0.2.0

type PrivateStoreCollectionClientListOptions struct {
}

PrivateStoreCollectionClientListOptions contains the optional parameters for the PrivateStoreCollectionClient.List method.

type PrivateStoreCollectionClientListResponse added in v0.2.0

type PrivateStoreCollectionClientListResponse struct {
	CollectionsList
}

PrivateStoreCollectionClientListResponse contains the response from method PrivateStoreCollectionClient.List.

type PrivateStoreCollectionClientPostOptions added in v0.2.0

type PrivateStoreCollectionClientPostOptions struct {
	Payload *Operation
}

PrivateStoreCollectionClientPostOptions contains the optional parameters for the PrivateStoreCollectionClient.Post method.

type PrivateStoreCollectionClientPostResponse added in v0.2.0

type PrivateStoreCollectionClientPostResponse struct {
}

PrivateStoreCollectionClientPostResponse contains the response from method PrivateStoreCollectionClient.Post.

type PrivateStoreCollectionClientTransferOffersOptions added in v0.2.0

type PrivateStoreCollectionClientTransferOffersOptions struct {
	Payload *TransferOffersProperties
}

PrivateStoreCollectionClientTransferOffersOptions contains the optional parameters for the PrivateStoreCollectionClient.TransferOffers method.

type PrivateStoreCollectionClientTransferOffersResponse added in v0.2.0

type PrivateStoreCollectionClientTransferOffersResponse struct {
	// The transfer items response. The response contains two lists that indicate for each collection whether the operation succeeded
	// or failed
	TransferOffersResponse
}

PrivateStoreCollectionClientTransferOffersResponse contains the response from method PrivateStoreCollectionClient.TransferOffers.

type PrivateStoreCollectionOfferClient

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

PrivateStoreCollectionOfferClient contains the methods for the PrivateStoreCollectionOffer group. Don't use this type directly, use NewPrivateStoreCollectionOfferClient() instead.

func NewPrivateStoreCollectionOfferClient

func NewPrivateStoreCollectionOfferClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateStoreCollectionOfferClient, error)

NewPrivateStoreCollectionOfferClient creates a new instance of PrivateStoreCollectionOfferClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PrivateStoreCollectionOfferClient) CreateOrUpdate

CreateOrUpdate - Update or add an offer to a specific collection of the private store. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • offerID - The offer ID to update or delete
  • collectionID - The collection ID
  • options - PrivateStoreCollectionOfferClientCreateOrUpdateOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/PrivateStoreOffer_update.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/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreCollectionOfferClient().CreateOrUpdate(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", &armmarketplace.PrivateStoreCollectionOfferClientCreateOrUpdateOptions{Payload: &armmarketplace.Offer{
		Properties: &armmarketplace.OfferProperties{
			ETag: to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350666\""),
			SpecificPlanIDsLimitation: []*string{
				to.Ptr("0001"),
				to.Ptr("0002")},
		},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Offer = armmarketplace.Offer{
	// 	Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 	Type: to.Ptr("Microsoft.Marketplace/privateStores/collections/offers"),
	// 	ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-2"),
	// 	Properties: &armmarketplace.OfferProperties{
	// 		CreatedAt: to.Ptr("05/28/2015 5:50"),
	// 		ETag: to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350666\""),
	// 		ModifiedAt: to.Ptr("05/29/2015 5:50"),
	// 		OfferDisplayName: to.Ptr("md-test-third-party-2"),
	// 		PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 		PublisherDisplayName: to.Ptr("Marketplace Test Third Party"),
	// 		SpecificPlanIDsLimitation: []*string{
	// 			to.Ptr("0001"),
	// 			to.Ptr("0002")},
	// 			UniqueOfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 		},
	// 	}
}
Output:

func (*PrivateStoreCollectionOfferClient) Delete

Delete - Deletes an offer from the given collection of private store. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • offerID - The offer ID to update or delete
  • collectionID - The collection ID
  • options - PrivateStoreCollectionOfferClientDeleteOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/DeletePrivateStoreOffer.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreCollectionOfferClient().Delete(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*PrivateStoreCollectionOfferClient) Get

Get - Gets information about a specific offer. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • offerID - The offer ID to update or delete
  • collectionID - The collection ID
  • options - PrivateStoreCollectionOfferClientGetOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetPrivateStoreCollectionOffer.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewPrivateStoreCollectionOfferClient().Get(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Offer = armmarketplace.Offer{
	// 	Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 	Type: to.Ptr("Microsoft.Marketplace/privateStores/collections/offers"),
	// 	ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-2"),
	// 	Properties: &armmarketplace.OfferProperties{
	// 		CreatedAt: to.Ptr("05/28/2015 5:50"),
	// 		ETag: to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350000\""),
	// 		ModifiedAt: to.Ptr("05/29/2015 5:50"),
	// 		OfferDisplayName: to.Ptr("md-test-third-party-2"),
	// 		PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
	// 		PublisherDisplayName: to.Ptr("Marketplace Test Third Party"),
	// 		SpecificPlanIDsLimitation: []*string{
	// 			to.Ptr("0001"),
	// 			to.Ptr("0002"),
	// 			to.Ptr("0003")},
	// 			UniqueOfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
	// 		},
	// 	}
}
Output:

func (*PrivateStoreCollectionOfferClient) NewListPager added in v0.4.0

NewListPager - Get a list of all private offers in the given private store and collection

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • collectionID - The collection ID
  • options - PrivateStoreCollectionOfferClientListOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/GetPrivateStoreOffers.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewPrivateStoreCollectionOfferClient().NewListPager("a0e28e55-90c4-41d8-8e34-bb7ef7775406", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OfferListResponse = armmarketplace.OfferListResponse{
		// 	Value: []*armmarketplace.Offer{
		// 		{
		// 			Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
		// 			Type: to.Ptr("Microsoft.Marketplace/privateStores/collections/offers"),
		// 			ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-2"),
		// 			Properties: &armmarketplace.OfferProperties{
		// 				CreatedAt: to.Ptr("05/28/2015 5:50"),
		// 				ETag: to.Ptr("\"9301f4fd-0000-0100-0000-5e248b350000\""),
		// 				ModifiedAt: to.Ptr("05/29/2015 5:50"),
		// 				OfferDisplayName: to.Ptr("md-test-third-party-2"),
		// 				PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
		// 				PublisherDisplayName: to.Ptr("Marketplace Test Third Party"),
		// 				SpecificPlanIDsLimitation: []*string{
		// 					to.Ptr("0001"),
		// 					to.Ptr("0002"),
		// 					to.Ptr("0003")},
		// 					UniqueOfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("marketplacetestthirdparty.md-test-third-party-2"),
		// 				Type: to.Ptr("Microsoft.Marketplace/privateStores/collections/offers"),
		// 				ID: to.Ptr("/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-3"),
		// 				Properties: &armmarketplace.OfferProperties{
		// 					CreatedAt: to.Ptr("05/28/2015 5:50"),
		// 					ETag: to.Ptr("\"9301f4fd-0000-0100-0304-5e248b350043\""),
		// 					ModifiedAt: to.Ptr("05/29/2015 5:50"),
		// 					OfferDisplayName: to.Ptr("md-test-third-party-3"),
		// 					PrivateStoreID: to.Ptr("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
		// 					PublisherDisplayName: to.Ptr("Marketplace Test Third Party"),
		// 					SpecificPlanIDsLimitation: []*string{
		// 						to.Ptr("0001"),
		// 						to.Ptr("0002")},
		// 						UniqueOfferID: to.Ptr("marketplacetestthirdparty.md-test-third-party-3"),
		// 					},
		// 			}},
		// 		}
	}
}
Output:

func (*PrivateStoreCollectionOfferClient) Post

Post - Delete Private store offer. This is a workaround. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-12-01

  • privateStoreID - The store ID - must use the tenant ID
  • offerID - The offer ID to update or delete
  • collectionID - The collection ID
  • options - PrivateStoreCollectionOfferClientPostOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.Post method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-12-01/examples/PostPrivateStoreCollectionOffer.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armmarketplace.NewClientFactory(cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewPrivateStoreCollectionOfferClient().Post(ctx, "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "marketplacetestthirdparty.md-test-third-party-2", "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", &armmarketplace.PrivateStoreCollectionOfferClientPostOptions{Payload: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

type PrivateStoreCollectionOfferClientCreateOrUpdateOptions added in v0.2.0

type PrivateStoreCollectionOfferClientCreateOrUpdateOptions struct {
	Payload *Offer
}

PrivateStoreCollectionOfferClientCreateOrUpdateOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.CreateOrUpdate method.

type PrivateStoreCollectionOfferClientCreateOrUpdateResponse added in v0.2.0

type PrivateStoreCollectionOfferClientCreateOrUpdateResponse struct {
	// The privateStore offer data structure.
	Offer
}

PrivateStoreCollectionOfferClientCreateOrUpdateResponse contains the response from method PrivateStoreCollectionOfferClient.CreateOrUpdate.

type PrivateStoreCollectionOfferClientDeleteOptions added in v0.2.0

type PrivateStoreCollectionOfferClientDeleteOptions struct {
}

PrivateStoreCollectionOfferClientDeleteOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.Delete method.

type PrivateStoreCollectionOfferClientDeleteResponse added in v0.2.0

type PrivateStoreCollectionOfferClientDeleteResponse struct {
}

PrivateStoreCollectionOfferClientDeleteResponse contains the response from method PrivateStoreCollectionOfferClient.Delete.

type PrivateStoreCollectionOfferClientGetOptions added in v0.2.0

type PrivateStoreCollectionOfferClientGetOptions struct {
}

PrivateStoreCollectionOfferClientGetOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.Get method.

type PrivateStoreCollectionOfferClientGetResponse added in v0.2.0

type PrivateStoreCollectionOfferClientGetResponse struct {
	// The privateStore offer data structure.
	Offer
}

PrivateStoreCollectionOfferClientGetResponse contains the response from method PrivateStoreCollectionOfferClient.Get.

type PrivateStoreCollectionOfferClientListOptions added in v0.2.0

type PrivateStoreCollectionOfferClientListOptions struct {
}

PrivateStoreCollectionOfferClientListOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.NewListPager method.

type PrivateStoreCollectionOfferClientListResponse added in v0.2.0

type PrivateStoreCollectionOfferClientListResponse struct {
	OfferListResponse
}

PrivateStoreCollectionOfferClientListResponse contains the response from method PrivateStoreCollectionOfferClient.NewListPager.

type PrivateStoreCollectionOfferClientPostOptions added in v0.2.0

type PrivateStoreCollectionOfferClientPostOptions struct {
	Payload *Operation
}

PrivateStoreCollectionOfferClientPostOptions contains the optional parameters for the PrivateStoreCollectionOfferClient.Post method.

type PrivateStoreCollectionOfferClientPostResponse added in v0.2.0

type PrivateStoreCollectionOfferClientPostResponse struct {
}

PrivateStoreCollectionOfferClientPostResponse contains the response from method PrivateStoreCollectionOfferClient.Post.

type PrivateStoreList

type PrivateStoreList struct {
	// URL to get the next set of PrivateStore list results if there are any.
	NextLink *string
	Value    []*PrivateStore
}

PrivateStoreList - Describes the json payload for the list of available private stores (between zero and one, inclusive)

func (PrivateStoreList) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PrivateStoreList.

func (*PrivateStoreList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateStoreList.

type PrivateStoreNotificationsState

type PrivateStoreNotificationsState struct {
	ApprovalRequests      []*RequestApprovalsDetails
	NewNotifications      []*NewNotifications
	StopSellNotifications []*StopSellNotifications
}

PrivateStoreNotificationsState - Get private store notifications state

func (PrivateStoreNotificationsState) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PrivateStoreNotificationsState.

func (*PrivateStoreNotificationsState) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateStoreNotificationsState.

type PrivateStoreProperties

type PrivateStoreProperties struct {
	// Indicates private store availability
	Availability *Availability

	// Gets or sets list of branding characteristics
	Branding map[string]*string

	// Identifier for purposes of race condition
	ETag *string

	// Is government
	IsGov *bool

	// Gets or sets notifications settings
	NotificationsSettings *NotificationsSettingsProperties

	// Private Store Name
	PrivateStoreName *string

	// Tenant id
	TenantID *string

	// READ-ONLY; Gets list of associated collection ids
	CollectionIDs []*string

	// READ-ONLY; Private Store id
	PrivateStoreID *string
}

PrivateStoreProperties - Describes the json payload on whether or not the private store is enabled for a given tenant

func (PrivateStoreProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type PrivateStoreProperties.

func (*PrivateStoreProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateStoreProperties.

type QueryApprovedPlans

type QueryApprovedPlans struct {
	// Offer id
	OfferID *string

	// Offer plan ids
	PlanIDs []*string
}

QueryApprovedPlans - Query approved plans details

func (QueryApprovedPlans) MarshalJSON

func (q QueryApprovedPlans) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryApprovedPlans.

func (*QueryApprovedPlans) UnmarshalJSON added in v1.1.0

func (q *QueryApprovedPlans) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryApprovedPlans.

type QueryApprovedPlansDetails

type QueryApprovedPlansDetails struct {
	// Indicates whether all subscriptions are approved for this plan
	AllSubscriptions *bool

	// Plan id
	PlanID *string

	// Approved subscription ids list. In case all subscriptions are approved for a plan, allSubscriptions flag is true and list
	// is empty ( else flag is set to false). In case both subscriptions list is
	// empty and allSubscriptions flag is false, the plan is not approved for any subscription.
	SubscriptionIDs []*string
}

QueryApprovedPlansDetails - Query approved plans response

func (QueryApprovedPlansDetails) MarshalJSON

func (q QueryApprovedPlansDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryApprovedPlansDetails.

func (*QueryApprovedPlansDetails) UnmarshalJSON added in v1.1.0

func (q *QueryApprovedPlansDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryApprovedPlansDetails.

type QueryApprovedPlansPayload

type QueryApprovedPlansPayload struct {
	// Query approved plans details
	Properties *QueryApprovedPlans
}

QueryApprovedPlansPayload - Query approved plans payload

func (QueryApprovedPlansPayload) MarshalJSON added in v1.1.0

func (q QueryApprovedPlansPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryApprovedPlansPayload.

func (*QueryApprovedPlansPayload) UnmarshalJSON added in v1.1.0

func (q *QueryApprovedPlansPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryApprovedPlansPayload.

type QueryApprovedPlansResponse

type QueryApprovedPlansResponse struct {
	// A list indicating for each plan which subscriptions are approved. Plan Id is unique
	Details []*QueryApprovedPlansDetails
}

QueryApprovedPlansResponse - Query approved plans response

func (QueryApprovedPlansResponse) MarshalJSON

func (q QueryApprovedPlansResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryApprovedPlansResponse.

func (*QueryApprovedPlansResponse) UnmarshalJSON added in v1.1.0

func (q *QueryApprovedPlansResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryApprovedPlansResponse.

type QueryOffers

type QueryOffers struct {
	// URL to get the next set of PrivateStore list results if there are any.
	NextLink *string
	Value    []*OfferProperties
}

QueryOffers - List of offers

func (QueryOffers) MarshalJSON

func (q QueryOffers) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryOffers.

func (*QueryOffers) UnmarshalJSON added in v1.1.0

func (q *QueryOffers) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryOffers.

type QueryRequestApproval

type QueryRequestApproval struct {
	// Gets or sets e-tag field
	Etag *string

	// Gets or sets the notification message id
	MessageCode *int64

	// Gets or sets the plans details
	PlansDetails map[string]*PlanDetails

	// Gets or sets unique offer id.
	UniqueOfferID *string
}

QueryRequestApproval - Gets the request plans with indication on each plan whether is approved by the admin, has pending request or not requested yet

func (QueryRequestApproval) MarshalJSON

func (q QueryRequestApproval) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryRequestApproval.

func (*QueryRequestApproval) UnmarshalJSON added in v1.1.0

func (q *QueryRequestApproval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryRequestApproval.

type QueryRequestApprovalProperties

type QueryRequestApprovalProperties struct {
	// The details to get the request plans statuses
	Properties *RequestDetails
}

QueryRequestApprovalProperties - The details to get the request plans statuses

func (QueryRequestApprovalProperties) MarshalJSON added in v1.1.0

func (q QueryRequestApprovalProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryRequestApprovalProperties.

func (*QueryRequestApprovalProperties) UnmarshalJSON added in v1.1.0

func (q *QueryRequestApprovalProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryRequestApprovalProperties.

type Recipient

type Recipient struct {
	// Principal ID
	PrincipalID *string

	// READ-ONLY; Display Name
	DisplayName *string

	// READ-ONLY; Email Address
	EmailAddress *string
}

Recipient - Describes the json payload for a notified recipient for new requests

func (Recipient) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Recipient.

func (*Recipient) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Recipient.

type RequestApprovalProperties

type RequestApprovalProperties struct {
	// Gets or sets the request approval message code
	MessageCode *int64

	// Gets or sets unique offer id.
	OfferID *string

	// Gets or sets the plans details
	PlansDetails []*PlanDetails

	// The offer's publisher id
	PublisherID *string

	// READ-ONLY; Gets a value indicating whether the request is closed
	IsClosed *bool

	// READ-ONLY; Gets offer display name
	OfferDisplayName *string
}

RequestApprovalProperties - Approval request resource properties

func (RequestApprovalProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RequestApprovalProperties.

func (*RequestApprovalProperties) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type RequestApprovalProperties.

type RequestApprovalResource

type RequestApprovalResource struct {
	// The privateStore approval request data structure.
	Properties *RequestApprovalProperties

	// READ-ONLY; The resource ID.
	ID *string

	// READ-ONLY; The name of the resource.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

RequestApprovalResource - Request approval resource.

func (RequestApprovalResource) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type RequestApprovalResource.

func (*RequestApprovalResource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type RequestApprovalResource.

type RequestApprovalsDetails

type RequestApprovalsDetails struct {
	// Gets offer display name
	DisplayName *string

	// Gets or sets the icon url
	Icon *string

	// Gets or sets the notification message id
	MessageCode *int64

	// Gets offer id
	OfferID *string

	// Gets or sets removed plans notifications
	Plans []*PlanNotificationDetails

	// Gets or sets publisher id
	PublisherID *string
}

RequestApprovalsDetails - Request approvals details

func (RequestApprovalsDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RequestApprovalsDetails.

func (*RequestApprovalsDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type RequestApprovalsDetails.

type RequestApprovalsList

type RequestApprovalsList struct {
	Value []*RequestApprovalResource

	// READ-ONLY; URL to get the next set of notifications list results if there are any.
	NextLink *string
}

RequestApprovalsList - List of admin request approval resources

func (RequestApprovalsList) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RequestApprovalsList.

func (*RequestApprovalsList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type RequestApprovalsList.

type RequestDetails

type RequestDetails struct {
	// Current plans list
	PlanIDs []*string

	// The offer's publisher id
	PublisherID *string

	// Gets or sets the subscription id
	SubscriptionID *string
}

RequestDetails - Request details needed to get the plans statuses

func (RequestDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RequestDetails.

func (*RequestDetails) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type RequestDetails.

type Resource

type Resource struct {
	// READ-ONLY; The resource ID.
	ID *string

	// READ-ONLY; The name of the resource.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

Resource - An Azure resource.

func (Resource) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type SingleOperation

type SingleOperation struct {
	// The object that represents the operation.
	Display *SingleOperationDisplay

	// Indicates whether the operation is a data action
	IsDataAction *bool

	// Operation name: {provider}/{resource}/{operation}
	Name *string

	// Origin of the operation
	Origin *string

	// Properties of the operation
	Properties any
}

SingleOperation - Microsoft.Marketplace REST API operation

func (SingleOperation) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SingleOperation.

func (*SingleOperation) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SingleOperation.

type SingleOperationDisplay

type SingleOperationDisplay struct {
	// READ-ONLY; Friendly description for the operation,
	Description *string

	// READ-ONLY; Operation type
	Operation *string

	// READ-ONLY; Service provider: Microsoft.Marketplace
	Provider *string

	// READ-ONLY; Resource on which the operation is performed
	Resource *string
}

SingleOperationDisplay - The object that represents the operation.

func (SingleOperationDisplay) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SingleOperationDisplay.

func (*SingleOperationDisplay) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SingleOperationDisplay.

type Status

type Status string

Status - Gets the plan status

const (
	StatusApproved Status = "Approved"
	StatusNone     Status = "None"
	StatusPending  Status = "Pending"
	StatusRejected Status = "Rejected"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns the possible values for the Status const type.

type StopSellNotifications

type StopSellNotifications struct {
	// Gets offer display name
	DisplayName *string

	// Gets or sets the icon url
	Icon *string

	// Gets a value indicating whether entire offer is in stop sell or only few of its plans
	IsEntire *bool

	// Gets or sets the notification message id
	MessageCode *int64

	// Gets offer id
	OfferID *string

	// Gets or sets removed plans notifications
	Plans []*PlanNotificationDetails
}

StopSellNotifications - Stop sell notification details

func (StopSellNotifications) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type StopSellNotifications.

func (*StopSellNotifications) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type StopSellNotifications.

type StopSellOffersPlansNotificationsList added in v0.3.0

type StopSellOffersPlansNotificationsList struct {
	StopSellNotifications []*StopSellOffersPlansNotificationsListProperties
}

StopSellOffersPlansNotificationsList - List of stop sell offers and plans notifications.

func (StopSellOffersPlansNotificationsList) MarshalJSON added in v0.3.0

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

MarshalJSON implements the json.Marshaller interface for type StopSellOffersPlansNotificationsList.

func (*StopSellOffersPlansNotificationsList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type StopSellOffersPlansNotificationsList.

type StopSellOffersPlansNotificationsListProperties added in v0.3.0

type StopSellOffersPlansNotificationsListProperties struct {
	// READ-ONLY; The offer display name
	DisplayName *string

	// READ-ONLY; The icon url
	Icon *string

	// READ-ONLY; A value indicating whether entire offer is in stop sell or only few of its plans
	IsEntire *bool

	// READ-ONLY; The notification message code
	MessageCode *int64

	// READ-ONLY; The offer id
	OfferID *string

	// READ-ONLY; The list of removed plans notifications
	Plans []*PlanNotificationDetails

	// READ-ONLY; True if the offer has public plans
	PublicContext *bool

	// READ-ONLY; The subscriptions related to private plans
	SubscriptionsIDs []*string
}

StopSellOffersPlansNotificationsListProperties - List of stop sell offers and plans notifications.

func (StopSellOffersPlansNotificationsListProperties) MarshalJSON added in v0.3.0

MarshalJSON implements the json.Marshaller interface for type StopSellOffersPlansNotificationsListProperties.

func (*StopSellOffersPlansNotificationsListProperties) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type StopSellOffersPlansNotificationsListProperties.

type StopSellSubscriptions added in v0.3.0

type StopSellSubscriptions struct {
	Subscriptions []*string
}

StopSellSubscriptions - Private plans subscriptions

func (StopSellSubscriptions) MarshalJSON added in v0.3.0

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

MarshalJSON implements the json.Marshaller interface for type StopSellSubscriptions.

func (*StopSellSubscriptions) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type StopSellSubscriptions.

type Subscription added in v0.3.0

type Subscription struct {
	// READ-ONLY; The subscription display name.
	DisplayName *string

	// READ-ONLY; The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
	ID *string

	// READ-ONLY; The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
	State *SubscriptionState

	// READ-ONLY; The subscription ID.
	SubscriptionID *string
}

Subscription information.

func (Subscription) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type Subscription.

func (*Subscription) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type Subscription.

type SubscriptionState added in v0.3.0

type SubscriptionState string

SubscriptionState - The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.

const (
	SubscriptionStateDeleted  SubscriptionState = "Deleted"
	SubscriptionStateDisabled SubscriptionState = "Disabled"
	SubscriptionStateEnabled  SubscriptionState = "Enabled"
	SubscriptionStatePastDue  SubscriptionState = "PastDue"
	SubscriptionStateWarned   SubscriptionState = "Warned"
)

func PossibleSubscriptionStateValues added in v0.3.0

func PossibleSubscriptionStateValues() []SubscriptionState

PossibleSubscriptionStateValues returns the possible values for the SubscriptionState const type.

type SubscriptionsContextList added in v0.3.0

type SubscriptionsContextList struct {
	SubscriptionsIDs []*string
}

SubscriptionsContextList - List of subscription Ids in the private store

func (SubscriptionsContextList) MarshalJSON added in v0.3.0

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

MarshalJSON implements the json.Marshaller interface for type SubscriptionsContextList.

func (*SubscriptionsContextList) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionsContextList.

type SubscriptionsResponse added in v0.3.0

type SubscriptionsResponse struct {
	// READ-ONLY; Number of subscriptions on the page
	Count *int64

	// READ-ONLY; The skip token to retrieve the next page.
	SkipToken *string

	// READ-ONLY; An array of subscriptions.
	Value []*Subscription
}

SubscriptionsResponse - Subscription list operation response.

func (SubscriptionsResponse) MarshalJSON added in v0.3.0

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

MarshalJSON implements the json.Marshaller interface for type SubscriptionsResponse.

func (*SubscriptionsResponse) UnmarshalJSON added in v1.1.0

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

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionsResponse.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC)
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource
	CreatedByType *IdentityType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource
	LastModifiedByType *IdentityType
}

SystemData - Read only system data

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 TransferOffersDetails

type TransferOffersDetails struct {
	// Offers ids list to transfer from source collection to target collection(s)
	OfferIDsList []*string

	// Operation to perform (For example: Copy or Move)
	Operation *string

	// Target collections ids
	TargetCollections []*string
}

TransferOffersDetails - Transfer offers response details

func (TransferOffersDetails) MarshalJSON

func (t TransferOffersDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TransferOffersDetails.

func (*TransferOffersDetails) UnmarshalJSON added in v1.1.0

func (t *TransferOffersDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TransferOffersDetails.

type TransferOffersProperties

type TransferOffersProperties struct {
	// transfer offers properties details
	Properties *TransferOffersDetails
}

TransferOffersProperties - Transfer offers properties

func (TransferOffersProperties) MarshalJSON added in v1.1.0

func (t TransferOffersProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TransferOffersProperties.

func (*TransferOffersProperties) UnmarshalJSON added in v1.1.0

func (t *TransferOffersProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TransferOffersProperties.

type TransferOffersResponse

type TransferOffersResponse struct {
	// Failed collections
	Failed []*CollectionsDetails

	// Succeeded collections
	Succeeded []*CollectionsDetails
}

TransferOffersResponse - The transfer items response. The response contains two lists that indicate for each collection whether the operation succeeded or failed

func (TransferOffersResponse) MarshalJSON

func (t TransferOffersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TransferOffersResponse.

func (*TransferOffersResponse) UnmarshalJSON added in v1.1.0

func (t *TransferOffersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TransferOffersResponse.

type UserRequestDetails

type UserRequestDetails struct {
	// Gets the subscription id that the user is requesting to add the plan to
	SubscriptionID *string

	// Gets the subscription name that the user is requesting to add the plan to
	SubscriptionName *string

	// READ-ONLY; Gets request date
	Date *string

	// READ-ONLY; Gets justification
	Justification *string

	// READ-ONLY; Gets user id
	User *string
}

UserRequestDetails - user request details

func (UserRequestDetails) MarshalJSON added in v1.1.0

func (u UserRequestDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UserRequestDetails.

func (*UserRequestDetails) UnmarshalJSON added in v1.1.0

func (u *UserRequestDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UserRequestDetails.

type WithdrawDetails

type WithdrawDetails struct {
	// Gets or sets Plan Id
	PlanID *string

	// The offer's publisher id
	PublisherID *string
}

WithdrawDetails - Withdraw properties details

func (WithdrawDetails) MarshalJSON added in v1.1.0

func (w WithdrawDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WithdrawDetails.

func (*WithdrawDetails) UnmarshalJSON added in v1.1.0

func (w *WithdrawDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WithdrawDetails.

type WithdrawProperties

type WithdrawProperties struct {
	// Withdraw properties details
	Properties *WithdrawDetails
}

WithdrawProperties - Withdraw properties

func (WithdrawProperties) MarshalJSON added in v1.1.0

func (w WithdrawProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WithdrawProperties.

func (*WithdrawProperties) UnmarshalJSON added in v1.1.0

func (w *WithdrawProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WithdrawProperties.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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