...

Package addons

import "github.com/Azure/azure-sdk-for-go/services/preview/addons/mgmt/2018-03-01/addons"
Overview
Index
Subdirectories

Overview ▾

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/addons/armaddons(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/addons/armaddons). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package addons implements the Azure ARM Addons service API version 2018-03-01.

The service for managing third party addons.

Index ▾

Constants
func UserAgent() string
func Version() string
type BaseClient
    func New(subscriptionID string) BaseClient
    func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
type CanonicalSupportPlanInfoDefinition
type CanonicalSupportPlanProperties
type CanonicalSupportPlanResponseEnvelope
    func (cspre CanonicalSupportPlanResponseEnvelope) MarshalJSON() ([]byte, error)
    func (cspre *CanonicalSupportPlanResponseEnvelope) UnmarshalJSON(body []byte) error
type ErrorDefinition
type ListCanonicalSupportPlanInfoDefinition
type ListOperationsDefinition
type OneTimeCharge
    func PossibleOneTimeChargeValues() []OneTimeCharge
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context) (result ListOperationsDefinition, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result ListOperationsDefinition, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type OperationsDefinition
type OperationsDisplayDefinition
type PlanTypeName
    func PossiblePlanTypeNameValues() []PlanTypeName
type ProvisioningState
    func PossibleProvisioningStateValues() []ProvisioningState
type SupportPlanType
    func PossibleSupportPlanTypeValues() []SupportPlanType
type SupportPlanTypesClient
    func NewSupportPlanTypesClient(subscriptionID string) SupportPlanTypesClient
    func NewSupportPlanTypesClientWithBaseURI(baseURI string, subscriptionID string) SupportPlanTypesClient
    func (client SupportPlanTypesClient) CreateOrUpdate(ctx context.Context, providerName string, planTypeName PlanTypeName) (result SupportPlanTypesCreateOrUpdateFuture, err error)
    func (client SupportPlanTypesClient) CreateOrUpdatePreparer(ctx context.Context, providerName string, planTypeName PlanTypeName) (*http.Request, error)
    func (client SupportPlanTypesClient) CreateOrUpdateResponder(resp *http.Response) (result CanonicalSupportPlanResponseEnvelope, err error)
    func (client SupportPlanTypesClient) CreateOrUpdateSender(req *http.Request) (future SupportPlanTypesCreateOrUpdateFuture, err error)
    func (client SupportPlanTypesClient) Delete(ctx context.Context, providerName string, planTypeName PlanTypeName) (result SupportPlanTypesDeleteFuture, err error)
    func (client SupportPlanTypesClient) DeletePreparer(ctx context.Context, providerName string, planTypeName PlanTypeName) (*http.Request, error)
    func (client SupportPlanTypesClient) DeleteResponder(resp *http.Response) (result CanonicalSupportPlanResponseEnvelope, err error)
    func (client SupportPlanTypesClient) DeleteSender(req *http.Request) (future SupportPlanTypesDeleteFuture, err error)
    func (client SupportPlanTypesClient) Get(ctx context.Context, providerName string, planTypeName PlanTypeName) (result CanonicalSupportPlanResponseEnvelope, err error)
    func (client SupportPlanTypesClient) GetPreparer(ctx context.Context, providerName string, planTypeName PlanTypeName) (*http.Request, error)
    func (client SupportPlanTypesClient) GetResponder(resp *http.Response) (result CanonicalSupportPlanResponseEnvelope, err error)
    func (client SupportPlanTypesClient) GetSender(req *http.Request) (*http.Response, error)
    func (client SupportPlanTypesClient) ListInfo(ctx context.Context) (result ListCanonicalSupportPlanInfoDefinition, err error)
    func (client SupportPlanTypesClient) ListInfoPreparer(ctx context.Context) (*http.Request, error)
    func (client SupportPlanTypesClient) ListInfoResponder(resp *http.Response) (result ListCanonicalSupportPlanInfoDefinition, err error)
    func (client SupportPlanTypesClient) ListInfoSender(req *http.Request) (*http.Response, error)
type SupportPlanTypesCreateOrUpdateFuture
    func (future *SupportPlanTypesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
type SupportPlanTypesDeleteFuture
    func (future *SupportPlanTypesDeleteFuture) UnmarshalJSON(body []byte) error

Package files

client.go enums.go models.go operations.go supportplantypes.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Addons
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type BaseClient

BaseClient is the base client for Addons.

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CanonicalSupportPlanInfoDefinition

CanonicalSupportPlanInfoDefinition definition object with the properties of a canonical plan

type CanonicalSupportPlanInfoDefinition struct {
    // SupportPlanType - Support plan type. Possible values include: 'SupportPlanTypeEssential', 'SupportPlanTypeStandard', 'SupportPlanTypeAdvanced'
    SupportPlanType SupportPlanType `json:"supportPlanType,omitempty"`
    // Enabled - Flag to indicate if this support plan type is currently enabled for the subscription.
    Enabled *bool `json:"enabled,omitempty"`
    // OneTimeCharge - The one time charge status for the subscription. Possible values include: 'No', 'OnEnabled', 'OnReenabled'
    OneTimeCharge OneTimeCharge `json:"oneTimeCharge,omitempty"`
}

type CanonicalSupportPlanProperties

CanonicalSupportPlanProperties the properties of the Canonical support plan.

type CanonicalSupportPlanProperties struct {
    // ProvisioningState - The provisioning state of the resource. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Purchasing', 'Downgrading', 'Cancelling', 'Upgrading'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

type CanonicalSupportPlanResponseEnvelope

CanonicalSupportPlanResponseEnvelope the status of the Canonical support plan.

type CanonicalSupportPlanResponseEnvelope struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; The id of the ARM resource, e.g. "/subscriptions/{id}/providers/Microsoft.Addons/supportProvider/{supportProviderName}/supportPlanTypes/{planTypeName}".
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the Canonical support plan, i.e. "essential", "standard" or "advanced".
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Microsoft.Addons/supportProvider
    Type *string `json:"type,omitempty"`
    // CanonicalSupportPlanProperties - Describes Canonical support plan type and status.
    *CanonicalSupportPlanProperties `json:"properties,omitempty"`
}

func (CanonicalSupportPlanResponseEnvelope) MarshalJSON

func (cspre CanonicalSupportPlanResponseEnvelope) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CanonicalSupportPlanResponseEnvelope.

func (*CanonicalSupportPlanResponseEnvelope) UnmarshalJSON

func (cspre *CanonicalSupportPlanResponseEnvelope) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CanonicalSupportPlanResponseEnvelope struct.

type ErrorDefinition

ErrorDefinition error description and code explaining why an operation failed.

type ErrorDefinition struct {
    // Message - Description of the error.
    Message *string `json:"message,omitempty"`
    // Code - Service specific error code which serves as the substatus for the HTTP error code.
    Code *int32 `json:"code,omitempty"`
}

type ListCanonicalSupportPlanInfoDefinition

ListCanonicalSupportPlanInfoDefinition ...

type ListCanonicalSupportPlanInfoDefinition struct {
    autorest.Response `json:"-"`
    Value             *[]CanonicalSupportPlanInfoDefinition `json:"value,omitempty"`
}

type ListOperationsDefinition

ListOperationsDefinition ...

type ListOperationsDefinition struct {
    autorest.Response `json:"-"`
    Value             *[]OperationsDefinition `json:"value,omitempty"`
}

type OneTimeCharge

OneTimeCharge enumerates the values for one time charge.

type OneTimeCharge string
const (
    // No ...
    No OneTimeCharge = "no"
    // OnEnabled ...
    OnEnabled OneTimeCharge = "onEnabled"
    // OnReenabled ...
    OnReenabled OneTimeCharge = "onReenabled"
)

func PossibleOneTimeChargeValues

func PossibleOneTimeChargeValues() []OneTimeCharge

PossibleOneTimeChargeValues returns an array of possible values for the OneTimeCharge const type.

type OperationsClient

OperationsClient is the the service for managing third party addons.

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result ListOperationsDefinition, err error)

List lists all of the available Addons RP operations.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result ListOperationsDefinition, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type OperationsDefinition

OperationsDefinition definition object with the name and properties of an operation.

type OperationsDefinition struct {
    // Name - Name of the operation.
    Name *string `json:"name,omitempty"`
    // Display - Display object with properties of the operation.
    Display *OperationsDisplayDefinition `json:"display,omitempty"`
}

type OperationsDisplayDefinition

OperationsDisplayDefinition display object with properties of the operation.

type OperationsDisplayDefinition struct {
    // Provider - Resource provider of the operation.
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource for the operation.
    Resource *string `json:"resource,omitempty"`
    // Operation - Short description of the operation.
    Operation *string `json:"operation,omitempty"`
    // Description - Description of the operation.
    Description *string `json:"description,omitempty"`
}

type PlanTypeName

PlanTypeName enumerates the values for plan type name.

type PlanTypeName string
const (
    // Advanced ...
    Advanced PlanTypeName = "Advanced"
    // Essential ...
    Essential PlanTypeName = "Essential"
    // Standard ...
    Standard PlanTypeName = "Standard"
)

func PossiblePlanTypeNameValues

func PossiblePlanTypeNameValues() []PlanTypeName

PossiblePlanTypeNameValues returns an array of possible values for the PlanTypeName const type.

type ProvisioningState

ProvisioningState enumerates the values for provisioning state.

type ProvisioningState string
const (
    // Cancelled ...
    Cancelled ProvisioningState = "Cancelled"
    // Cancelling ...
    Cancelling ProvisioningState = "Cancelling"
    // Downgrading ...
    Downgrading ProvisioningState = "Downgrading"
    // Failed ...
    Failed ProvisioningState = "Failed"
    // Purchasing ...
    Purchasing ProvisioningState = "Purchasing"
    // Succeeded ...
    Succeeded ProvisioningState = "Succeeded"
    // Upgrading ...
    Upgrading ProvisioningState = "Upgrading"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type SupportPlanType

SupportPlanType enumerates the values for support plan type.

type SupportPlanType string
const (
    // SupportPlanTypeAdvanced ...
    SupportPlanTypeAdvanced SupportPlanType = "advanced"
    // SupportPlanTypeEssential ...
    SupportPlanTypeEssential SupportPlanType = "essential"
    // SupportPlanTypeStandard ...
    SupportPlanTypeStandard SupportPlanType = "standard"
)

func PossibleSupportPlanTypeValues

func PossibleSupportPlanTypeValues() []SupportPlanType

PossibleSupportPlanTypeValues returns an array of possible values for the SupportPlanType const type.

type SupportPlanTypesClient

SupportPlanTypesClient is the the service for managing third party addons.

type SupportPlanTypesClient struct {
    BaseClient
}

func NewSupportPlanTypesClient

func NewSupportPlanTypesClient(subscriptionID string) SupportPlanTypesClient

NewSupportPlanTypesClient creates an instance of the SupportPlanTypesClient client.

func NewSupportPlanTypesClientWithBaseURI

func NewSupportPlanTypesClientWithBaseURI(baseURI string, subscriptionID string) SupportPlanTypesClient

NewSupportPlanTypesClientWithBaseURI creates an instance of the SupportPlanTypesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SupportPlanTypesClient) CreateOrUpdate

func (client SupportPlanTypesClient) CreateOrUpdate(ctx context.Context, providerName string, planTypeName PlanTypeName) (result SupportPlanTypesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates the Canonical support plan of type {type} for the subscription. Parameters: providerName - the support plan type. For now the only valid type is "canonical". planTypeName - the Canonical support plan type.

func (SupportPlanTypesClient) CreateOrUpdatePreparer

func (client SupportPlanTypesClient) CreateOrUpdatePreparer(ctx context.Context, providerName string, planTypeName PlanTypeName) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SupportPlanTypesClient) CreateOrUpdateResponder

func (client SupportPlanTypesClient) CreateOrUpdateResponder(resp *http.Response) (result CanonicalSupportPlanResponseEnvelope, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SupportPlanTypesClient) CreateOrUpdateSender

func (client SupportPlanTypesClient) CreateOrUpdateSender(req *http.Request) (future SupportPlanTypesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SupportPlanTypesClient) Delete

func (client SupportPlanTypesClient) Delete(ctx context.Context, providerName string, planTypeName PlanTypeName) (result SupportPlanTypesDeleteFuture, err error)

Delete cancels the Canonical support plan of type {type} for the subscription. Parameters: providerName - the support plan type. For now the only valid type is "canonical". planTypeName - the Canonical support plan type.

func (SupportPlanTypesClient) DeletePreparer

func (client SupportPlanTypesClient) DeletePreparer(ctx context.Context, providerName string, planTypeName PlanTypeName) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SupportPlanTypesClient) DeleteResponder

func (client SupportPlanTypesClient) DeleteResponder(resp *http.Response) (result CanonicalSupportPlanResponseEnvelope, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SupportPlanTypesClient) DeleteSender

func (client SupportPlanTypesClient) DeleteSender(req *http.Request) (future SupportPlanTypesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SupportPlanTypesClient) Get

func (client SupportPlanTypesClient) Get(ctx context.Context, providerName string, planTypeName PlanTypeName) (result CanonicalSupportPlanResponseEnvelope, err error)

Get returns whether or not the canonical support plan of type {type} is enabled for the subscription. Parameters: providerName - the support plan type. For now the only valid type is "canonical". planTypeName - the Canonical support plan type.

func (SupportPlanTypesClient) GetPreparer

func (client SupportPlanTypesClient) GetPreparer(ctx context.Context, providerName string, planTypeName PlanTypeName) (*http.Request, error)

GetPreparer prepares the Get request.

func (SupportPlanTypesClient) GetResponder

func (client SupportPlanTypesClient) GetResponder(resp *http.Response) (result CanonicalSupportPlanResponseEnvelope, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SupportPlanTypesClient) GetSender

func (client SupportPlanTypesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SupportPlanTypesClient) ListInfo

func (client SupportPlanTypesClient) ListInfo(ctx context.Context) (result ListCanonicalSupportPlanInfoDefinition, err error)

ListInfo returns the canonical support plan information for all types for the subscription.

func (SupportPlanTypesClient) ListInfoPreparer

func (client SupportPlanTypesClient) ListInfoPreparer(ctx context.Context) (*http.Request, error)

ListInfoPreparer prepares the ListInfo request.

func (SupportPlanTypesClient) ListInfoResponder

func (client SupportPlanTypesClient) ListInfoResponder(resp *http.Response) (result ListCanonicalSupportPlanInfoDefinition, err error)

ListInfoResponder handles the response to the ListInfo request. The method always closes the http.Response Body.

func (SupportPlanTypesClient) ListInfoSender

func (client SupportPlanTypesClient) ListInfoSender(req *http.Request) (*http.Response, error)

ListInfoSender sends the ListInfo request. The method will close the http.Response Body if it receives an error.

type SupportPlanTypesCreateOrUpdateFuture

SupportPlanTypesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type SupportPlanTypesCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(SupportPlanTypesClient) (CanonicalSupportPlanResponseEnvelope, error)
}

func (*SupportPlanTypesCreateOrUpdateFuture) UnmarshalJSON

func (future *SupportPlanTypesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SupportPlanTypesDeleteFuture

SupportPlanTypesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type SupportPlanTypesDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(SupportPlanTypesClient) (CanonicalSupportPlanResponseEnvelope, error)
}

func (*SupportPlanTypesDeleteFuture) UnmarshalJSON

func (future *SupportPlanTypesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

Subdirectories

Name Synopsis
..
addonsapi Deprecated: Please note, this package has been deprecated.