azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/softwareplan/mgmt/2019-06-01-preview/softwareplan Index | Files | Directories

package softwareplan

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

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

Package Files

client.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 Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type AzureEntityResource Uses

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

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

type BaseClient Uses

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

BaseClient is the base client for Softwareplan.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Client Uses

type Client struct {
    BaseClient
}

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

func NewClient Uses

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI Uses

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) Register Uses

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

Register register to Microsoft.SoftwarePlan resource provider.

func (Client) RegisterPreparer Uses

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

RegisterPreparer prepares the Register request.

func (Client) RegisterResponder Uses

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 Uses

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 Uses

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"`
}

Error error object returned by the RP

type ErrorCode Uses

type ErrorCode string

ErrorCode enumerates the values for error code.

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

func PossibleErrorCodeValues Uses

func PossibleErrorCodeValues() []ErrorCode

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

type HybridUseBenefitClient Uses

type HybridUseBenefitClient struct {
    BaseClient
}

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

func NewHybridUseBenefitClient Uses

func NewHybridUseBenefitClient(subscriptionID string) HybridUseBenefitClient

NewHybridUseBenefitClient creates an instance of the HybridUseBenefitClient client.

func NewHybridUseBenefitClientWithBaseURI Uses

func NewHybridUseBenefitClientWithBaseURI(baseURI string, subscriptionID string) HybridUseBenefitClient

NewHybridUseBenefitClientWithBaseURI creates an instance of the HybridUseBenefitClient client.

func (HybridUseBenefitClient) Create Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (HybridUseBenefitClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (HybridUseBenefitClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (HybridUseBenefitClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (HybridUseBenefitClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (HybridUseBenefitClient) UpdateResponder Uses

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 Uses

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 Uses

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"`
}

HybridUseBenefitListResult list of hybrid use benefits

func (HybridUseBenefitListResult) IsEmpty Uses

func (hublr HybridUseBenefitListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HybridUseBenefitListResultIterator Uses

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

HybridUseBenefitListResultIterator provides access to a complete listing of HybridUseBenefitModel values.

func NewHybridUseBenefitListResultIterator Uses

func NewHybridUseBenefitListResultIterator(page HybridUseBenefitListResultPage) HybridUseBenefitListResultIterator

Creates a new instance of the HybridUseBenefitListResultIterator type.

func (*HybridUseBenefitListResultIterator) Next Uses

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 Uses

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 Uses

func (iter HybridUseBenefitListResultIterator) NotDone() bool

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

func (HybridUseBenefitListResultIterator) Response Uses

func (iter HybridUseBenefitListResultIterator) Response() HybridUseBenefitListResult

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

func (HybridUseBenefitListResultIterator) Value Uses

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 Uses

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

HybridUseBenefitListResultPage contains a page of HybridUseBenefitModel values.

func NewHybridUseBenefitListResultPage Uses

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

Creates a new instance of the HybridUseBenefitListResultPage type.

func (*HybridUseBenefitListResultPage) Next Uses

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 Uses

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 Uses

func (page HybridUseBenefitListResultPage) NotDone() bool

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

func (HybridUseBenefitListResultPage) Response Uses

func (page HybridUseBenefitListResultPage) Response() HybridUseBenefitListResult

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

func (HybridUseBenefitListResultPage) Values Uses

func (page HybridUseBenefitListResultPage) Values() []HybridUseBenefitModel

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

type HybridUseBenefitModel Uses

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

HybridUseBenefitModel response on GET of a hybrid use benefit

func (HybridUseBenefitModel) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for HybridUseBenefitModel.

func (*HybridUseBenefitModel) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for HybridUseBenefitModel struct.

type HybridUseBenefitProperties Uses

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"`
}

HybridUseBenefitProperties hybrid use benefit properties

type HybridUseBenefitRevisionClient Uses

type HybridUseBenefitRevisionClient struct {
    BaseClient
}

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

func NewHybridUseBenefitRevisionClient Uses

func NewHybridUseBenefitRevisionClient(subscriptionID string) HybridUseBenefitRevisionClient

NewHybridUseBenefitRevisionClient creates an instance of the HybridUseBenefitRevisionClient client.

func NewHybridUseBenefitRevisionClientWithBaseURI Uses

func NewHybridUseBenefitRevisionClientWithBaseURI(baseURI string, subscriptionID string) HybridUseBenefitRevisionClient

NewHybridUseBenefitRevisionClientWithBaseURI creates an instance of the HybridUseBenefitRevisionClient client.

func (HybridUseBenefitRevisionClient) List Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (HybridUseBenefitRevisionClient) ListResponder Uses

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 Uses

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 Uses

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"`
}

OperationDisplay display fields for an operation.

type OperationList Uses

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"`
}

OperationList list all the operations.

func (OperationList) IsEmpty Uses

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator Uses

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

OperationListIterator provides access to a complete listing of OperationResponse values.

func NewOperationListIterator Uses

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListIterator) NotDone() bool

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

func (OperationListIterator) Response Uses

func (iter OperationListIterator) Response() OperationList

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

func (OperationListIterator) Value Uses

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 Uses

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

OperationListPage contains a page of OperationResponse values.

func NewOperationListPage Uses

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

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next Uses

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 Uses

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 Uses

func (page OperationListPage) NotDone() bool

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

func (OperationListPage) Response Uses

func (page OperationListPage) Response() OperationList

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

func (OperationListPage) Values Uses

func (page OperationListPage) Values() []OperationResponse

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

type OperationResponse Uses

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"`
}

OperationResponse operation response.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

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

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

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

func PossibleProvisioningStateValues Uses

func PossibleProvisioningStateValues() []ProvisioningState

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

type ProxyResource Uses

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type Resource Uses

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

Resource ...

type Sku Uses

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

Sku the SKU to be applied for this resource

type TrackedResource Uses

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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for TrackedResource.

Directories

PathSynopsis
softwareplanapi

Package softwareplan imports 10 packages (graph) and is imported by 3 packages. Updated 2019-07-31. Refresh now. Tools for package owners.