...

Package windowsesu

import "github.com/Azure/azure-sdk-for-go/services/preview/windowsesu/mgmt/2019-09-16-preview/windowsesu"
Overview
Index
Subdirectories

Overview ▾

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

Package 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
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 ErrorDefinition
    func (ed ErrorDefinition) MarshalJSON() ([]byte, error)
type ErrorResponse
type MultipleActivationKey
    func (mak MultipleActivationKey) MarshalJSON() ([]byte, error)
    func (mak *MultipleActivationKey) UnmarshalJSON(body []byte) error
type MultipleActivationKeyList
    func (makl MultipleActivationKeyList) IsEmpty() bool
    func (makl MultipleActivationKeyList) MarshalJSON() ([]byte, error)
type MultipleActivationKeyListIterator
    func NewMultipleActivationKeyListIterator(page MultipleActivationKeyListPage) MultipleActivationKeyListIterator
    func (iter *MultipleActivationKeyListIterator) Next() error
    func (iter *MultipleActivationKeyListIterator) NextWithContext(ctx context.Context) (err error)
    func (iter MultipleActivationKeyListIterator) NotDone() bool
    func (iter MultipleActivationKeyListIterator) Response() MultipleActivationKeyList
    func (iter MultipleActivationKeyListIterator) Value() MultipleActivationKey
type MultipleActivationKeyListPage
    func NewMultipleActivationKeyListPage(cur MultipleActivationKeyList, getNextPage func(context.Context, MultipleActivationKeyList) (MultipleActivationKeyList, error)) MultipleActivationKeyListPage
    func (page *MultipleActivationKeyListPage) Next() error
    func (page *MultipleActivationKeyListPage) NextWithContext(ctx context.Context) (err error)
    func (page MultipleActivationKeyListPage) NotDone() bool
    func (page MultipleActivationKeyListPage) Response() MultipleActivationKeyList
    func (page MultipleActivationKeyListPage) Values() []MultipleActivationKey
type MultipleActivationKeyProperties
    func (mak MultipleActivationKeyProperties) MarshalJSON() ([]byte, error)
type MultipleActivationKeyUpdate
    func (maku MultipleActivationKeyUpdate) MarshalJSON() ([]byte, error)
type MultipleActivationKeysClient
    func NewMultipleActivationKeysClient(subscriptionID string) MultipleActivationKeysClient
    func NewMultipleActivationKeysClientWithBaseURI(baseURI string, subscriptionID string) MultipleActivationKeysClient
    func (client MultipleActivationKeysClient) Create(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKey) (result MultipleActivationKeysCreateFuture, err error)
    func (client MultipleActivationKeysClient) CreatePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKey) (*http.Request, error)
    func (client MultipleActivationKeysClient) CreateResponder(resp *http.Response) (result MultipleActivationKey, err error)
    func (client MultipleActivationKeysClient) CreateSender(req *http.Request) (future MultipleActivationKeysCreateFuture, err error)
    func (client MultipleActivationKeysClient) Delete(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (result autorest.Response, err error)
    func (client MultipleActivationKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (*http.Request, error)
    func (client MultipleActivationKeysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client MultipleActivationKeysClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client MultipleActivationKeysClient) Get(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (result MultipleActivationKey, err error)
    func (client MultipleActivationKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (*http.Request, error)
    func (client MultipleActivationKeysClient) GetResponder(resp *http.Response) (result MultipleActivationKey, err error)
    func (client MultipleActivationKeysClient) GetSender(req *http.Request) (*http.Response, error)
    func (client MultipleActivationKeysClient) List(ctx context.Context) (result MultipleActivationKeyListPage, err error)
    func (client MultipleActivationKeysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result MultipleActivationKeyListPage, err error)
    func (client MultipleActivationKeysClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MultipleActivationKeyListIterator, err error)
    func (client MultipleActivationKeysClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
    func (client MultipleActivationKeysClient) ListByResourceGroupResponder(resp *http.Response) (result MultipleActivationKeyList, err error)
    func (client MultipleActivationKeysClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
    func (client MultipleActivationKeysClient) ListComplete(ctx context.Context) (result MultipleActivationKeyListIterator, err error)
    func (client MultipleActivationKeysClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client MultipleActivationKeysClient) ListResponder(resp *http.Response) (result MultipleActivationKeyList, err error)
    func (client MultipleActivationKeysClient) ListSender(req *http.Request) (*http.Response, error)
    func (client MultipleActivationKeysClient) Update(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKeyUpdate) (result MultipleActivationKey, err error)
    func (client MultipleActivationKeysClient) UpdatePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKeyUpdate) (*http.Request, error)
    func (client MultipleActivationKeysClient) UpdateResponder(resp *http.Response) (result MultipleActivationKey, err error)
    func (client MultipleActivationKeysClient) UpdateSender(req *http.Request) (*http.Response, error)
type MultipleActivationKeysCreateFuture
    func (future *MultipleActivationKeysCreateFuture) UnmarshalJSON(body []byte) error
type Operation
    func (o Operation) MarshalJSON() ([]byte, error)
type OperationDisplay
type OperationList
    func (ol OperationList) IsEmpty() bool
    func (ol OperationList) MarshalJSON() ([]byte, error)
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() Operation
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() []Operation
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error)
    func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context) (*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 OsType
    func PossibleOsTypeValues() []OsType
type ProvisioningState
    func PossibleProvisioningStateValues() []ProvisioningState
type ProxyResource
    func (pr ProxyResource) MarshalJSON() ([]byte, error)
type Resource
    func (r Resource) MarshalJSON() ([]byte, error)
type SupportType
    func PossibleSupportTypeValues() []SupportType
type TrackedResource
    func (tr TrackedResource) MarshalJSON() ([]byte, error)

Package files

client.go enums.go models.go multipleactivationkeys.go operations.go version.go

Constants

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

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 ErrorDefinition

ErrorDefinition error definition.

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

func (ErrorDefinition) MarshalJSON

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

MarshalJSON is the custom marshaler for ErrorDefinition.

type ErrorResponse

ErrorResponse error response.

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

type MultipleActivationKey

MultipleActivationKey MAK key details.

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

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

MultipleActivationKeyList list of MAK keys.

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

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

MultipleActivationKeyListIterator provides access to a complete listing of MultipleActivationKey values.

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

func NewMultipleActivationKeyListIterator

func NewMultipleActivationKeyListIterator(page MultipleActivationKeyListPage) MultipleActivationKeyListIterator

Creates a new instance of the MultipleActivationKeyListIterator type.

func (*MultipleActivationKeyListIterator) Next

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

func (iter MultipleActivationKeyListIterator) Response() MultipleActivationKeyList

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

func (MultipleActivationKeyListIterator) Value

func (iter MultipleActivationKeyListIterator) Value() MultipleActivationKey

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

type MultipleActivationKeyListPage

MultipleActivationKeyListPage contains a page of MultipleActivationKey values.

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

func NewMultipleActivationKeyListPage

func NewMultipleActivationKeyListPage(cur MultipleActivationKeyList, getNextPage func(context.Context, MultipleActivationKeyList) (MultipleActivationKeyList, error)) MultipleActivationKeyListPage

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

func (page MultipleActivationKeyListPage) Response() MultipleActivationKeyList

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

func (MultipleActivationKeyListPage) Values

func (page MultipleActivationKeyListPage) Values() []MultipleActivationKey

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

type MultipleActivationKeyProperties

MultipleActivationKeyProperties MAK key specific properties.

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

func (MultipleActivationKeyProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for MultipleActivationKeyProperties.

type MultipleActivationKeyUpdate

MultipleActivationKeyUpdate MAK key details.

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

func (MultipleActivationKeyUpdate) MarshalJSON

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

MarshalJSON is the custom marshaler for MultipleActivationKeyUpdate.

type MultipleActivationKeysClient

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

type MultipleActivationKeysClient struct {
    BaseClient
}

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

func (client MultipleActivationKeysClient) List(ctx context.Context) (result MultipleActivationKeyListPage, err error)

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

func (client MultipleActivationKeysClient) ListComplete(ctx context.Context) (result MultipleActivationKeyListIterator, err error)

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

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

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)
}

func (*MultipleActivationKeysCreateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type Operation

Operation REST API operation details.

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

func (Operation) MarshalJSON

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

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

OperationDisplay meta data about operation used for display in portal.

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

type OperationList

OperationList list of available REST API operations.

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

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

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

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

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

type OperationsClient

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

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

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

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result 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

OsType enumerates the values for os type.

type OsType string
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

ProvisioningState enumerates the values for provisioning state.

type ProvisioningState string
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

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 SupportType

SupportType enumerates the values for support type.

type SupportType string
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

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
..
windowsesuapi Deprecated: Please note, this package has been deprecated.