const ( // DefaultBaseURI is the default URI used for the service Windowsesu DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
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 (aer AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureEntityResource.
BaseClient is the base client for Windowsesu.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
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).
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 (ed ErrorDefinition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDefinition.
ErrorResponse error response.
type ErrorResponse struct { // Error - The error details. Error *ErrorDefinition `json:"error,omitempty"` }
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 (mak MultipleActivationKey) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MultipleActivationKey.
func (mak *MultipleActivationKey) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MultipleActivationKey struct.
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 (makl MultipleActivationKeyList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (makl MultipleActivationKeyList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MultipleActivationKeyList.
MultipleActivationKeyListIterator provides access to a complete listing of MultipleActivationKey values.
type MultipleActivationKeyListIterator struct {
// contains filtered or unexported fields
}
func NewMultipleActivationKeyListIterator(page MultipleActivationKeyListPage) MultipleActivationKeyListIterator
Creates a new instance of the MultipleActivationKeyListIterator type.
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 (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 (iter MultipleActivationKeyListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MultipleActivationKeyListIterator) Response() MultipleActivationKeyList
Response returns the raw server response from the last page request.
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.
MultipleActivationKeyListPage contains a page of MultipleActivationKey values.
type MultipleActivationKeyListPage struct {
// contains filtered or unexported fields
}
func NewMultipleActivationKeyListPage(cur MultipleActivationKeyList, getNextPage func(context.Context, MultipleActivationKeyList) (MultipleActivationKeyList, error)) MultipleActivationKeyListPage
Creates a new instance of the MultipleActivationKeyListPage type.
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 (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 (page MultipleActivationKeyListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MultipleActivationKeyListPage) Response() MultipleActivationKeyList
Response returns the raw server response from the last page request.
func (page MultipleActivationKeyListPage) Values() []MultipleActivationKey
Values returns the slice of values for the current page or nil if there are no values.
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 (mak MultipleActivationKeyProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MultipleActivationKeyProperties.
MultipleActivationKeyUpdate MAK key details.
type MultipleActivationKeyUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
func (maku MultipleActivationKeyUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MultipleActivationKeyUpdate.
MultipleActivationKeysClient is the manage Multi-Access Keys (MAK) that enable Windows Extended Security Updates (ESU).
type MultipleActivationKeysClient struct { BaseClient }
func NewMultipleActivationKeysClient(subscriptionID string) MultipleActivationKeysClient
NewMultipleActivationKeysClient creates an instance of the MultipleActivationKeysClient client.
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 (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 (client MultipleActivationKeysClient) CreatePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKey) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (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 (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 (client MultipleActivationKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client MultipleActivationKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client MultipleActivationKeysClient) List(ctx context.Context) (result MultipleActivationKeyListPage, err error)
List list all Multiple Activation Keys (MAK) created for a subscription.
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 (client MultipleActivationKeysClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MultipleActivationKeyListIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client MultipleActivationKeysClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client MultipleActivationKeysClient) ListComplete(ctx context.Context) (result MultipleActivationKeyListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client MultipleActivationKeysClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 (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 (client MultipleActivationKeysClient) UpdatePreparer(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKeyUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
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 (future *MultipleActivationKeysCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
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 (o Operation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Operation.
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"` }
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 (ol OperationList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (ol OperationList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationList.
OperationListIterator provides access to a complete listing of Operation values.
type OperationListIterator struct {
// contains filtered or unexported fields
}
func NewOperationListIterator(page OperationListPage) OperationListIterator
Creates a new instance of the OperationListIterator type.
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 (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 (iter OperationListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListIterator) Response() OperationList
Response returns the raw server response from the last page request.
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.
OperationListPage contains a page of Operation values.
type OperationListPage struct {
// contains filtered or unexported fields
}
func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage
Creates a new instance of the OperationListPage type.
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 (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 (page OperationListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListPage) Response() OperationList
Response returns the raw server response from the last page request.
func (page OperationListPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
OperationsClient is the manage Multi-Access Keys (MAK) that enable Windows Extended Security Updates (ESU).
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
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 (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error)
List list all available Windows.ESU provider operations.
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
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() []OsType
PossibleOsTypeValues returns an array of possible values for the OsType const type.
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() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
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 (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
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 (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
SupportType enumerates the values for support type.
type SupportType string
const ( // PremiumAssurance ... PremiumAssurance SupportType = "PremiumAssurance" // SupplementalServicing ... SupplementalServicing SupportType = "SupplementalServicing" )
func PossibleSupportTypeValues() []SupportType
PossibleSupportTypeValues returns an array of possible values for the SupportType const type.
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 (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
Name | Synopsis |
---|---|
.. | |
windowsesuapi | Deprecated: Please note, this package has been deprecated. |