softwareplan

package
v63.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

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

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

Variables

This section is empty.

Functions

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.

Types

type AzureEntityResource

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

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

func (AzureEntityResource) MarshalJSON

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

MarshalJSON is the custom marshaler for AzureEntityResource.

type BaseClient

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

BaseClient is the base client for Softwareplan.

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

type Client struct {
	BaseClient
}

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

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

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

type ErrorCode string

ErrorCode enumerates the values for error code.

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

type HybridUseBenefitClient struct {
	BaseClient
}

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

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

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

func (hublr HybridUseBenefitListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HybridUseBenefitListResultIterator

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

HybridUseBenefitListResultIterator provides access to a complete listing of HybridUseBenefitModel values.

func NewHybridUseBenefitListResultIterator

func NewHybridUseBenefitListResultIterator(page HybridUseBenefitListResultPage) HybridUseBenefitListResultIterator

Creates a new instance of the HybridUseBenefitListResultIterator type.

func (*HybridUseBenefitListResultIterator) Next

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

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

func (HybridUseBenefitListResultIterator) Response

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

func (HybridUseBenefitListResultIterator) Value

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

type HybridUseBenefitListResultPage

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

HybridUseBenefitListResultPage contains a page of HybridUseBenefitModel values.

func NewHybridUseBenefitListResultPage

Creates a new instance of the HybridUseBenefitListResultPage type.

func (*HybridUseBenefitListResultPage) Next

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

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

func (HybridUseBenefitListResultPage) Values

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

type HybridUseBenefitModel

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

HybridUseBenefitModel response on GET of a hybrid use benefit

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

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

func (HybridUseBenefitProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for HybridUseBenefitProperties.

type HybridUseBenefitRevisionClient

type HybridUseBenefitRevisionClient struct {
	BaseClient
}

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

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

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

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

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator

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

OperationListIterator provides access to a complete listing of OperationResponse values.

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

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

type OperationListPage

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

OperationListPage contains a page of OperationResponse values.

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

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

type OperationsClient struct {
	BaseClient
}

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

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

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

func PossibleProvisioningStateValues() []ProvisioningState

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

type ProxyResource

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

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

func (ProxyResource) MarshalJSON

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

MarshalJSON is the custom marshaler for ProxyResource.

type Resource

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

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

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type Sku

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

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

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

func (TrackedResource) MarshalJSON

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

MarshalJSON is the custom marshaler for TrackedResource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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