...

Package softwareplan

import "github.com/Azure/azure-sdk-for-go/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan"
Overview
Index
Subdirectories

Overview ▾

Package softwareplan implements the Azure ARM Softwareplan service API version 2019-06-01-preview.

Azure software plans let users create and manage licenses for various software used in Azure.

Index ▾

Constants
func UserAgent() string
func Version() string
type AzureEntityResource
    func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
type BaseClient
    func New(subscriptionID string) BaseClient
    func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
type Client
    func NewClient(subscriptionID string) Client
    func NewClientWithBaseURI(baseURI string, subscriptionID string) Client
    func (client Client) Register(ctx context.Context) (result autorest.Response, err error)
    func (client Client) RegisterPreparer(ctx context.Context) (*http.Request, error)
    func (client Client) RegisterResponder(resp *http.Response) (result autorest.Response, err error)
    func (client Client) RegisterSender(req *http.Request) (*http.Response, error)
type Error
type ErrorCode
    func PossibleErrorCodeValues() []ErrorCode
type HybridUseBenefitClient
    func NewHybridUseBenefitClient(subscriptionID string) HybridUseBenefitClient
    func NewHybridUseBenefitClientWithBaseURI(baseURI string, subscriptionID string) HybridUseBenefitClient
    func (client HybridUseBenefitClient) Create(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (result HybridUseBenefitModel, err error)
    func (client HybridUseBenefitClient) CreatePreparer(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (*http.Request, error)
    func (client HybridUseBenefitClient) CreateResponder(resp *http.Response) (result HybridUseBenefitModel, err error)
    func (client HybridUseBenefitClient) CreateSender(req *http.Request) (*http.Response, error)
    func (client HybridUseBenefitClient) Delete(ctx context.Context, scope string, planID string) (result autorest.Response, err error)
    func (client HybridUseBenefitClient) DeletePreparer(ctx context.Context, scope string, planID string) (*http.Request, error)
    func (client HybridUseBenefitClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client HybridUseBenefitClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client HybridUseBenefitClient) Get(ctx context.Context, scope string, planID string) (result HybridUseBenefitModel, err error)
    func (client HybridUseBenefitClient) GetPreparer(ctx context.Context, scope string, planID string) (*http.Request, error)
    func (client HybridUseBenefitClient) GetResponder(resp *http.Response) (result HybridUseBenefitModel, err error)
    func (client HybridUseBenefitClient) GetSender(req *http.Request) (*http.Response, error)
    func (client HybridUseBenefitClient) List(ctx context.Context, scope string, filter string) (result HybridUseBenefitListResultPage, err error)
    func (client HybridUseBenefitClient) ListComplete(ctx context.Context, scope string, filter string) (result HybridUseBenefitListResultIterator, err error)
    func (client HybridUseBenefitClient) ListPreparer(ctx context.Context, scope string, filter string) (*http.Request, error)
    func (client HybridUseBenefitClient) ListResponder(resp *http.Response) (result HybridUseBenefitListResult, err error)
    func (client HybridUseBenefitClient) ListSender(req *http.Request) (*http.Response, error)
    func (client HybridUseBenefitClient) Update(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (result HybridUseBenefitModel, err error)
    func (client HybridUseBenefitClient) UpdatePreparer(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (*http.Request, error)
    func (client HybridUseBenefitClient) UpdateResponder(resp *http.Response) (result HybridUseBenefitModel, err error)
    func (client HybridUseBenefitClient) UpdateSender(req *http.Request) (*http.Response, error)
type HybridUseBenefitListResult
    func (hublr HybridUseBenefitListResult) IsEmpty() bool
type HybridUseBenefitListResultIterator
    func NewHybridUseBenefitListResultIterator(page HybridUseBenefitListResultPage) HybridUseBenefitListResultIterator
    func (iter *HybridUseBenefitListResultIterator) Next() error
    func (iter *HybridUseBenefitListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter HybridUseBenefitListResultIterator) NotDone() bool
    func (iter HybridUseBenefitListResultIterator) Response() HybridUseBenefitListResult
    func (iter HybridUseBenefitListResultIterator) Value() HybridUseBenefitModel
type HybridUseBenefitListResultPage
    func NewHybridUseBenefitListResultPage(cur HybridUseBenefitListResult, getNextPage func(context.Context, HybridUseBenefitListResult) (HybridUseBenefitListResult, error)) HybridUseBenefitListResultPage
    func (page *HybridUseBenefitListResultPage) Next() error
    func (page *HybridUseBenefitListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page HybridUseBenefitListResultPage) NotDone() bool
    func (page HybridUseBenefitListResultPage) Response() HybridUseBenefitListResult
    func (page HybridUseBenefitListResultPage) Values() []HybridUseBenefitModel
type HybridUseBenefitModel
    func (hubm HybridUseBenefitModel) MarshalJSON() ([]byte, error)
    func (hubm *HybridUseBenefitModel) UnmarshalJSON(body []byte) error
type HybridUseBenefitProperties
    func (hubp HybridUseBenefitProperties) MarshalJSON() ([]byte, error)
type HybridUseBenefitRevisionClient
    func NewHybridUseBenefitRevisionClient(subscriptionID string) HybridUseBenefitRevisionClient
    func NewHybridUseBenefitRevisionClientWithBaseURI(baseURI string, subscriptionID string) HybridUseBenefitRevisionClient
    func (client HybridUseBenefitRevisionClient) List(ctx context.Context, scope string, planID string) (result HybridUseBenefitListResultPage, err error)
    func (client HybridUseBenefitRevisionClient) ListComplete(ctx context.Context, scope string, planID string) (result HybridUseBenefitListResultIterator, err error)
    func (client HybridUseBenefitRevisionClient) ListPreparer(ctx context.Context, scope string, planID string) (*http.Request, error)
    func (client HybridUseBenefitRevisionClient) ListResponder(resp *http.Response) (result HybridUseBenefitListResult, err error)
    func (client HybridUseBenefitRevisionClient) ListSender(req *http.Request) (*http.Response, error)
type OperationDisplay
type OperationList
    func (ol OperationList) IsEmpty() bool
type OperationListIterator
    func NewOperationListIterator(page OperationListPage) OperationListIterator
    func (iter *OperationListIterator) Next() error
    func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error)
    func (iter OperationListIterator) NotDone() bool
    func (iter OperationListIterator) Response() OperationList
    func (iter OperationListIterator) Value() OperationResponse
type OperationListPage
    func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage
    func (page *OperationListPage) Next() error
    func (page *OperationListPage) NextWithContext(ctx context.Context) (err error)
    func (page OperationListPage) NotDone() bool
    func (page OperationListPage) Response() OperationList
    func (page OperationListPage) Values() []OperationResponse
type OperationResponse
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context, scope string) (result OperationListPage, err error)
    func (client OperationsClient) ListComplete(ctx context.Context, scope string) (result OperationListIterator, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type ProvisioningState
    func PossibleProvisioningStateValues() []ProvisioningState
type ProxyResource
    func (pr ProxyResource) MarshalJSON() ([]byte, error)
type Resource
    func (r Resource) MarshalJSON() ([]byte, error)
type Sku
type TrackedResource
    func (tr TrackedResource) MarshalJSON() ([]byte, error)

Package files

client.go enums.go hybridusebenefit.go hybridusebenefitrevision.go models.go operations.go softwareplan.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Softwareplan
    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 AzureEntityResource

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

type AzureEntityResource struct {
    // Etag - READ-ONLY; Resource Etag.
    Etag *string `json:"etag,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (AzureEntityResource) MarshalJSON

func (aer AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEntityResource.

type BaseClient

BaseClient is the base client for Softwareplan.

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 Client

Client is the azure software plans let users create and manage licenses for various software used in Azure.

type Client struct {
    BaseClient
}

func NewClient

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client 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 (Client) Register

func (client Client) Register(ctx context.Context) (result autorest.Response, err error)

Register register to Microsoft.SoftwarePlan resource provider.

func (Client) RegisterPreparer

func (client Client) RegisterPreparer(ctx context.Context) (*http.Request, error)

RegisterPreparer prepares the Register request.

func (Client) RegisterResponder

func (client Client) RegisterResponder(resp *http.Response) (result autorest.Response, err error)

RegisterResponder handles the response to the Register request. The method always closes the http.Response Body.

func (Client) RegisterSender

func (client Client) RegisterSender(req *http.Request) (*http.Response, error)

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

type Error

Error error object returned by the RP

type Error struct {
    // Code - Error code. Possible values include: 'InvalidRequestParameter', 'MissingRequestParameter'
    Code ErrorCode `json:"code,omitempty"`
    // Message - A user readable error message. Localized based on x-ms-effective-locale header in the request
    Message *string `json:"message,omitempty"`
}

type ErrorCode

ErrorCode enumerates the values for error code.

type ErrorCode string
const (
    // InvalidRequestParameter ...
    InvalidRequestParameter ErrorCode = "InvalidRequestParameter"
    // MissingRequestParameter ...
    MissingRequestParameter ErrorCode = "MissingRequestParameter"
)

func PossibleErrorCodeValues

func PossibleErrorCodeValues() []ErrorCode

PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.

type HybridUseBenefitClient

HybridUseBenefitClient is the azure software plans let users create and manage licenses for various software used in Azure.

type HybridUseBenefitClient struct {
    BaseClient
}

func NewHybridUseBenefitClient

func NewHybridUseBenefitClient(subscriptionID string) HybridUseBenefitClient

NewHybridUseBenefitClient creates an instance of the HybridUseBenefitClient client.

func NewHybridUseBenefitClientWithBaseURI

func NewHybridUseBenefitClientWithBaseURI(baseURI string, subscriptionID string) HybridUseBenefitClient

NewHybridUseBenefitClientWithBaseURI creates an instance of the HybridUseBenefitClient 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 (HybridUseBenefitClient) Create

func (client HybridUseBenefitClient) Create(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (result HybridUseBenefitModel, err error)

Create create a new hybrid use benefit under a given scope Parameters: scope - the scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now planID - this is a unique identifier for a plan. Should be a guid. body - request body for creating a hybrid use benefit

func (HybridUseBenefitClient) CreatePreparer

func (client HybridUseBenefitClient) CreatePreparer(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (*http.Request, error)

CreatePreparer prepares the Create request.

func (HybridUseBenefitClient) CreateResponder

func (client HybridUseBenefitClient) CreateResponder(resp *http.Response) (result HybridUseBenefitModel, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (HybridUseBenefitClient) CreateSender

func (client HybridUseBenefitClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (HybridUseBenefitClient) Delete

func (client HybridUseBenefitClient) Delete(ctx context.Context, scope string, planID string) (result autorest.Response, err error)

Delete deletes a given plan ID Parameters: scope - the scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now planID - this is a unique identifier for a plan. Should be a guid.

func (HybridUseBenefitClient) DeletePreparer

func (client HybridUseBenefitClient) DeletePreparer(ctx context.Context, scope string, planID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (HybridUseBenefitClient) DeleteResponder

func (client HybridUseBenefitClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

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

func (HybridUseBenefitClient) DeleteSender

func (client HybridUseBenefitClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (HybridUseBenefitClient) Get

func (client HybridUseBenefitClient) Get(ctx context.Context, scope string, planID string) (result HybridUseBenefitModel, err error)

Get gets a given plan ID Parameters: scope - the scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now planID - this is a unique identifier for a plan. Should be a guid.

func (HybridUseBenefitClient) GetPreparer

func (client HybridUseBenefitClient) GetPreparer(ctx context.Context, scope string, planID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (HybridUseBenefitClient) GetResponder

func (client HybridUseBenefitClient) GetResponder(resp *http.Response) (result HybridUseBenefitModel, err error)

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

func (HybridUseBenefitClient) GetSender

func (client HybridUseBenefitClient) 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 (HybridUseBenefitClient) List

func (client HybridUseBenefitClient) List(ctx context.Context, scope string, filter string) (result HybridUseBenefitListResultPage, err error)

List get all hybrid use benefits associated with an ARM resource. Parameters: scope - the scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now filter - supports applying filter on the type of SKU

func (HybridUseBenefitClient) ListComplete

func (client HybridUseBenefitClient) ListComplete(ctx context.Context, scope string, filter string) (result HybridUseBenefitListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (HybridUseBenefitClient) ListPreparer

func (client HybridUseBenefitClient) ListPreparer(ctx context.Context, scope string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (HybridUseBenefitClient) ListResponder

func (client HybridUseBenefitClient) ListResponder(resp *http.Response) (result HybridUseBenefitListResult, err error)

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

func (HybridUseBenefitClient) ListSender

func (client HybridUseBenefitClient) 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.

func (HybridUseBenefitClient) Update

func (client HybridUseBenefitClient) Update(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (result HybridUseBenefitModel, err error)

Update updates an existing hybrid use benefit Parameters: scope - the scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now planID - this is a unique identifier for a plan. Should be a guid. body - request body for creating a hybrid use benefit

func (HybridUseBenefitClient) UpdatePreparer

func (client HybridUseBenefitClient) UpdatePreparer(ctx context.Context, scope string, planID string, body HybridUseBenefitModel) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (HybridUseBenefitClient) UpdateResponder

func (client HybridUseBenefitClient) UpdateResponder(resp *http.Response) (result HybridUseBenefitModel, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (HybridUseBenefitClient) UpdateSender

func (client HybridUseBenefitClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type HybridUseBenefitListResult

HybridUseBenefitListResult list of hybrid use benefits

type HybridUseBenefitListResult struct {
    autorest.Response `json:"-"`
    // Value - List of hybrid use benefits
    Value *[]HybridUseBenefitModel `json:"value,omitempty"`
    // NextLink - Url to get the next page of items.
    NextLink *string `json:"nextLink,omitempty"`
}

func (HybridUseBenefitListResult) IsEmpty

func (hublr HybridUseBenefitListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HybridUseBenefitListResultIterator

HybridUseBenefitListResultIterator provides access to a complete listing of HybridUseBenefitModel values.

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

func NewHybridUseBenefitListResultIterator

func NewHybridUseBenefitListResultIterator(page HybridUseBenefitListResultPage) HybridUseBenefitListResultIterator

Creates a new instance of the HybridUseBenefitListResultIterator type.

func (*HybridUseBenefitListResultIterator) Next

func (iter *HybridUseBenefitListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*HybridUseBenefitListResultIterator) NextWithContext

func (iter *HybridUseBenefitListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (HybridUseBenefitListResultIterator) NotDone

func (iter HybridUseBenefitListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (HybridUseBenefitListResultIterator) Response

func (iter HybridUseBenefitListResultIterator) Response() HybridUseBenefitListResult

Response returns the raw server response from the last page request.

func (HybridUseBenefitListResultIterator) Value

func (iter HybridUseBenefitListResultIterator) Value() HybridUseBenefitModel

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type HybridUseBenefitListResultPage

HybridUseBenefitListResultPage contains a page of HybridUseBenefitModel values.

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

func NewHybridUseBenefitListResultPage

func NewHybridUseBenefitListResultPage(cur HybridUseBenefitListResult, getNextPage func(context.Context, HybridUseBenefitListResult) (HybridUseBenefitListResult, error)) HybridUseBenefitListResultPage

Creates a new instance of the HybridUseBenefitListResultPage type.

func (*HybridUseBenefitListResultPage) Next

func (page *HybridUseBenefitListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*HybridUseBenefitListResultPage) NextWithContext

func (page *HybridUseBenefitListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (HybridUseBenefitListResultPage) NotDone

func (page HybridUseBenefitListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (HybridUseBenefitListResultPage) Response

func (page HybridUseBenefitListResultPage) Response() HybridUseBenefitListResult

Response returns the raw server response from the last page request.

func (HybridUseBenefitListResultPage) Values

func (page HybridUseBenefitListResultPage) Values() []HybridUseBenefitModel

Values returns the slice of values for the current page or nil if there are no values.

type HybridUseBenefitModel

HybridUseBenefitModel response on GET of a hybrid use benefit

type HybridUseBenefitModel struct {
    autorest.Response `json:"-"`
    // Sku - Hybrid use benefit SKU
    Sku *Sku `json:"sku,omitempty"`
    // Etag - READ-ONLY; Indicates the revision of the hybrid use benefit
    Etag *int32 `json:"etag,omitempty"`
    // HybridUseBenefitProperties - Property bag for a hybrid use benefit response
    *HybridUseBenefitProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (HybridUseBenefitModel) MarshalJSON

func (hubm HybridUseBenefitModel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HybridUseBenefitModel.

func (*HybridUseBenefitModel) UnmarshalJSON

func (hubm *HybridUseBenefitModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for HybridUseBenefitModel struct.

type HybridUseBenefitProperties

HybridUseBenefitProperties hybrid use benefit properties

type HybridUseBenefitProperties struct {
    // ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'Succeeded', 'Cancelled', 'Failed'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // CreatedDate - READ-ONLY; Created date
    CreatedDate *date.Time `json:"createdDate,omitempty"`
    // LastUpdatedDate - READ-ONLY; Last updated date
    LastUpdatedDate *date.Time `json:"lastUpdatedDate,omitempty"`
}

func (HybridUseBenefitProperties) MarshalJSON

func (hubp HybridUseBenefitProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HybridUseBenefitProperties.

type HybridUseBenefitRevisionClient

HybridUseBenefitRevisionClient is the azure software plans let users create and manage licenses for various software used in Azure.

type HybridUseBenefitRevisionClient struct {
    BaseClient
}

func NewHybridUseBenefitRevisionClient

func NewHybridUseBenefitRevisionClient(subscriptionID string) HybridUseBenefitRevisionClient

NewHybridUseBenefitRevisionClient creates an instance of the HybridUseBenefitRevisionClient client.

func NewHybridUseBenefitRevisionClientWithBaseURI

func NewHybridUseBenefitRevisionClientWithBaseURI(baseURI string, subscriptionID string) HybridUseBenefitRevisionClient

NewHybridUseBenefitRevisionClientWithBaseURI creates an instance of the HybridUseBenefitRevisionClient 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 (HybridUseBenefitRevisionClient) List

func (client HybridUseBenefitRevisionClient) List(ctx context.Context, scope string, planID string) (result HybridUseBenefitListResultPage, err error)

List gets the version history of a hybrid use benefit Parameters: scope - the scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now planID - this is a unique identifier for a plan. Should be a guid.

func (HybridUseBenefitRevisionClient) ListComplete

func (client HybridUseBenefitRevisionClient) ListComplete(ctx context.Context, scope string, planID string) (result HybridUseBenefitListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (HybridUseBenefitRevisionClient) ListPreparer

func (client HybridUseBenefitRevisionClient) ListPreparer(ctx context.Context, scope string, planID string) (*http.Request, error)

ListPreparer prepares the List request.

func (HybridUseBenefitRevisionClient) ListResponder

func (client HybridUseBenefitRevisionClient) ListResponder(resp *http.Response) (result HybridUseBenefitListResult, err error)

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

func (HybridUseBenefitRevisionClient) ListSender

func (client HybridUseBenefitRevisionClient) 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 OperationDisplay

OperationDisplay display fields for an operation.

type OperationDisplay struct {
    // Provider - Resource Provider name
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource that is acted upon
    Resource *string `json:"resource,omitempty"`
    // Operation - Operation to be performed
    Operation *string `json:"operation,omitempty"`
    // Description - Description of the operation
    Description *string `json:"description,omitempty"`
}

type OperationList

OperationList list all the operations.

type OperationList struct {
    autorest.Response `json:"-"`
    // Value - List of all operations
    Value *[]OperationResponse `json:"value,omitempty"`
    // NextLink - Url to get the next page of items.
    NextLink *string `json:"nextLink,omitempty"`
}

func (OperationList) IsEmpty

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator

OperationListIterator provides access to a complete listing of OperationResponse values.

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

func NewOperationListIterator

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next

func (iter *OperationListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListIterator) NextWithContext

func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListIterator) NotDone

func (iter OperationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListIterator) Response

func (iter OperationListIterator) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListIterator) Value

func (iter OperationListIterator) Value() OperationResponse

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListPage

OperationListPage contains a page of OperationResponse values.

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

func NewOperationListPage

func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next

func (page *OperationListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListPage) NextWithContext

func (page *OperationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListPage) NotDone

func (page OperationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListPage) Response

func (page OperationListPage) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListPage) Values

func (page OperationListPage) Values() []OperationResponse

Values returns the slice of values for the current page or nil if there are no values.

type OperationResponse

OperationResponse operation response.

type OperationResponse struct {
    // Name - Name of the operation
    Name *string `json:"name,omitempty"`
    // Display - Display properties for the operation
    Display *OperationDisplay `json:"display,omitempty"`
    // Origin - Origin of the response
    Origin *string `json:"origin,omitempty"`
}

type OperationsClient

OperationsClient is the azure software plans let users create and manage licenses for various software used in Azure.

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, scope string) (result OperationListPage, err error)

List list all the operations. Parameters: scope - the scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context, scope string) (result OperationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, 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 ProvisioningState

ProvisioningState enumerates the values for provisioning state.

type ProvisioningState string
const (
    // Cancelled ...
    Cancelled ProvisioningState = "Cancelled"
    // Failed ...
    Failed ProvisioningState = "Failed"
    // Succeeded ...
    Succeeded ProvisioningState = "Succeeded"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

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

type ProxyResource

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

type ProxyResource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type Resource

Resource common fields that are returned in the response for all Azure Resource Manager resources

type Resource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type Sku

Sku the SKU to be applied for this resource

type Sku struct {
    // Name - Name of the SKU to be applied
    Name *string `json:"name,omitempty"`
}

type TrackedResource

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

type TrackedResource struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

Subdirectories

Name Synopsis
..
softwareplanapi