windowsesu

package
v59.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package windowsesu implements the Azure ARM Windowsesu service API version 2019-09-16-preview.

Manage Multi-Access Keys (MAK) that enable Windows Extended Security Updates (ESU).

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Windowsesu
	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 Windowsesu.

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 ErrorDefinition

type ErrorDefinition struct {
	// Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Description of the error.
	Message *string `json:"message,omitempty"`
	// Details - READ-ONLY; Internal error details.
	Details *[]ErrorDefinition `json:"details,omitempty"`
}

ErrorDefinition error definition.

func (ErrorDefinition) MarshalJSON

func (ed ErrorDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDefinition.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error details.
	Error *ErrorDefinition `json:"error,omitempty"`
}

ErrorResponse error response.

type MultipleActivationKey

type MultipleActivationKey struct {
	autorest.Response `json:"-"`
	// MultipleActivationKeyProperties - MAK key specific properties.
	*MultipleActivationKeyProperties `json:"properties,omitempty"`
	// 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"`
}

MultipleActivationKey MAK key details.

func (MultipleActivationKey) MarshalJSON

func (mak MultipleActivationKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MultipleActivationKey.

func (*MultipleActivationKey) UnmarshalJSON

func (mak *MultipleActivationKey) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MultipleActivationKey struct.

type MultipleActivationKeyList

type MultipleActivationKeyList struct {
	autorest.Response `json:"-"`
	// Value - List of MAK keys.
	Value *[]MultipleActivationKey `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

MultipleActivationKeyList list of MAK keys.

func (MultipleActivationKeyList) IsEmpty

func (makl MultipleActivationKeyList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (MultipleActivationKeyList) MarshalJSON

func (makl MultipleActivationKeyList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MultipleActivationKeyList.

type MultipleActivationKeyListIterator

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

MultipleActivationKeyListIterator provides access to a complete listing of MultipleActivationKey values.

func NewMultipleActivationKeyListIterator

func NewMultipleActivationKeyListIterator(page MultipleActivationKeyListPage) MultipleActivationKeyListIterator

Creates a new instance of the MultipleActivationKeyListIterator type.

func (*MultipleActivationKeyListIterator) 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 (*MultipleActivationKeyListIterator) NextWithContext

func (iter *MultipleActivationKeyListIterator) 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 (MultipleActivationKeyListIterator) NotDone

func (iter MultipleActivationKeyListIterator) NotDone() bool

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

func (MultipleActivationKeyListIterator) Response

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

func (MultipleActivationKeyListIterator) Value

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

type MultipleActivationKeyListPage

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

MultipleActivationKeyListPage contains a page of MultipleActivationKey values.

func NewMultipleActivationKeyListPage

Creates a new instance of the MultipleActivationKeyListPage type.

func (*MultipleActivationKeyListPage) Next

func (page *MultipleActivationKeyListPage) 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 (*MultipleActivationKeyListPage) NextWithContext

func (page *MultipleActivationKeyListPage) 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 (MultipleActivationKeyListPage) NotDone

func (page MultipleActivationKeyListPage) NotDone() bool

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

func (MultipleActivationKeyListPage) Response

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

func (MultipleActivationKeyListPage) Values

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

type MultipleActivationKeyProperties

type MultipleActivationKeyProperties struct {
	// MultipleActivationKey - READ-ONLY; MAK 5x5 key.
	MultipleActivationKey *string `json:"multipleActivationKey,omitempty"`
	// ExpirationDate - READ-ONLY; End of support of security updates activated by the MAK key.
	ExpirationDate *date.Time `json:"expirationDate,omitempty"`
	// OsType - Type of OS for which the key is requested. Possible values include: 'Windows7', 'WindowsServer2008', 'WindowsServer2008R2'
	OsType OsType `json:"osType,omitempty"`
	// SupportType - Type of support. Possible values include: 'SupplementalServicing', 'PremiumAssurance'
	SupportType SupportType `json:"supportType,omitempty"`
	// InstalledServerNumber - Number of activations/servers using the MAK key.
	InstalledServerNumber *int32 `json:"installedServerNumber,omitempty"`
	// AgreementNumber - Agreement number under which the key is requested.
	AgreementNumber *string `json:"agreementNumber,omitempty"`
	// IsEligible - <code> true </code> if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used in their organization; <code> false </code> otherwise.
	IsEligible *bool `json:"isEligible,omitempty"`
	// ProvisioningState - READ-ONLY; Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Accepted', 'Provisioning'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

MultipleActivationKeyProperties MAK key specific properties.

func (MultipleActivationKeyProperties) MarshalJSON

func (mak MultipleActivationKeyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MultipleActivationKeyProperties.

type MultipleActivationKeyUpdate

type MultipleActivationKeyUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

MultipleActivationKeyUpdate MAK key details.

func (MultipleActivationKeyUpdate) MarshalJSON

func (maku MultipleActivationKeyUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MultipleActivationKeyUpdate.

type MultipleActivationKeysClient

type MultipleActivationKeysClient struct {
	BaseClient
}

MultipleActivationKeysClient is the manage Multi-Access Keys (MAK) that enable Windows Extended Security Updates (ESU).

func NewMultipleActivationKeysClient

func NewMultipleActivationKeysClient(subscriptionID string) MultipleActivationKeysClient

NewMultipleActivationKeysClient creates an instance of the MultipleActivationKeysClient client.

func NewMultipleActivationKeysClientWithBaseURI

func NewMultipleActivationKeysClientWithBaseURI(baseURI string, subscriptionID string) MultipleActivationKeysClient

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

func (client MultipleActivationKeysClient) Create(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKey) (result MultipleActivationKeysCreateFuture, err error)

Create create a MAK key. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. multipleActivationKeyName - the name of the MAK key. multipleActivationKey - details of the MAK key.

func (MultipleActivationKeysClient) CreatePreparer

func (client MultipleActivationKeysClient) CreatePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKey) (*http.Request, error)

CreatePreparer prepares the Create request.

func (MultipleActivationKeysClient) CreateResponder

func (client MultipleActivationKeysClient) CreateResponder(resp *http.Response) (result MultipleActivationKey, err error)

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

func (MultipleActivationKeysClient) CreateSender

func (client MultipleActivationKeysClient) CreateSender(req *http.Request) (future MultipleActivationKeysCreateFuture, err error)

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

func (MultipleActivationKeysClient) Delete

func (client MultipleActivationKeysClient) Delete(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (result autorest.Response, err error)

Delete delete a MAK key. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. multipleActivationKeyName - the name of the MAK key.

func (MultipleActivationKeysClient) DeletePreparer

func (client MultipleActivationKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (MultipleActivationKeysClient) DeleteResponder

func (client MultipleActivationKeysClient) 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 (MultipleActivationKeysClient) DeleteSender

func (client MultipleActivationKeysClient) 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 (MultipleActivationKeysClient) Get

func (client MultipleActivationKeysClient) Get(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (result MultipleActivationKey, err error)

Get get a MAK key. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. multipleActivationKeyName - the name of the MAK key.

func (MultipleActivationKeysClient) GetPreparer

func (client MultipleActivationKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (MultipleActivationKeysClient) GetResponder

func (client MultipleActivationKeysClient) GetResponder(resp *http.Response) (result MultipleActivationKey, err error)

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

func (MultipleActivationKeysClient) GetSender

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

List list all Multiple Activation Keys (MAK) created for a subscription.

func (MultipleActivationKeysClient) ListByResourceGroup

func (client MultipleActivationKeysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result MultipleActivationKeyListPage, err error)

ListByResourceGroup list all Multiple Activation Keys (MAK) in a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (MultipleActivationKeysClient) ListByResourceGroupComplete

func (client MultipleActivationKeysClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MultipleActivationKeyListIterator, err error)

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

func (MultipleActivationKeysClient) ListByResourceGroupPreparer

func (client MultipleActivationKeysClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (MultipleActivationKeysClient) ListByResourceGroupResponder

func (client MultipleActivationKeysClient) ListByResourceGroupResponder(resp *http.Response) (result MultipleActivationKeyList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (MultipleActivationKeysClient) ListByResourceGroupSender

func (client MultipleActivationKeysClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (MultipleActivationKeysClient) ListComplete

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

func (MultipleActivationKeysClient) ListPreparer

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

ListPreparer prepares the List request.

func (MultipleActivationKeysClient) ListResponder

func (client MultipleActivationKeysClient) ListResponder(resp *http.Response) (result MultipleActivationKeyList, err error)

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

func (MultipleActivationKeysClient) ListSender

func (client MultipleActivationKeysClient) 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 (MultipleActivationKeysClient) Update

func (client MultipleActivationKeysClient) Update(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKeyUpdate) (result MultipleActivationKey, err error)

Update update a MAK key. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. multipleActivationKeyName - the name of the MAK key. multipleActivationKey - details of the MAK key.

func (MultipleActivationKeysClient) UpdatePreparer

func (client MultipleActivationKeysClient) UpdatePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKeyUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (MultipleActivationKeysClient) UpdateResponder

func (client MultipleActivationKeysClient) UpdateResponder(resp *http.Response) (result MultipleActivationKey, err error)

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

func (MultipleActivationKeysClient) UpdateSender

func (client MultipleActivationKeysClient) 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 MultipleActivationKeysCreateFuture

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

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

func (*MultipleActivationKeysCreateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Operation

type Operation struct {
	// Name - READ-ONLY; Name of the operation.
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation REST API operation details.

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	Provider    *string `json:"provider,omitempty"`
	Resource    *string `json:"resource,omitempty"`
	Operation   *string `json:"operation,omitempty"`
	Description *string `json:"description,omitempty"`
}

OperationDisplay meta data about operation used for display in portal.

type OperationList

type OperationList struct {
	autorest.Response `json:"-"`
	// Value - List of operations.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationList list of available REST API operations.

func (OperationList) IsEmpty

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OperationList) MarshalJSON

func (ol OperationList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationList.

type OperationListIterator

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

OperationListIterator provides access to a complete listing of Operation 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

func (iter OperationListIterator) Value() Operation

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 Operation 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() []Operation

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

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the manage Multi-Access Keys (MAK) that enable Windows Extended Security Updates (ESU).

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

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

func (OperationsClient) List

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

List list all available Windows.ESU provider operations.

func (OperationsClient) ListComplete

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

type OsType string

OsType enumerates the values for os type.

const (
	// Windows7 ...
	Windows7 OsType = "Windows7"
	// WindowsServer2008 ...
	WindowsServer2008 OsType = "WindowsServer2008"
	// WindowsServer2008R2 ...
	WindowsServer2008R2 OsType = "WindowsServer2008R2"
)

func PossibleOsTypeValues

func PossibleOsTypeValues() []OsType

PossibleOsTypeValues returns an array of possible values for the OsType const type.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Accepted ...
	Accepted ProvisioningState = "Accepted"
	// Canceled ...
	Canceled ProvisioningState = "Canceled"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Provisioning ...
	Provisioning ProvisioningState = "Provisioning"
	// 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 SupportType

type SupportType string

SupportType enumerates the values for support type.

const (
	// PremiumAssurance ...
	PremiumAssurance SupportType = "PremiumAssurance"
	// SupplementalServicing ...
	SupplementalServicing SupportType = "SupplementalServicing"
)

func PossibleSupportTypeValues

func PossibleSupportTypeValues() []SupportType

PossibleSupportTypeValues returns an array of possible values for the SupportType const type.

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