Documentation
¶
Index ¶
- type ErrorDefinition
- type ErrorResponse
- type MultipleActivationKey
- type MultipleActivationKeyList
- type MultipleActivationKeyProperties
- type MultipleActivationKeyUpdate
- type MultipleActivationKeysClient
- func (client *MultipleActivationKeysClient) BeginCreate(ctx context.Context, resourceGroupName string, ...) (*armruntime.Poller[MultipleActivationKeysClientCreateResponse], error)
- func (client *MultipleActivationKeysClient) Delete(ctx context.Context, resourceGroupName string, ...) (MultipleActivationKeysClientDeleteResponse, error)
- func (client *MultipleActivationKeysClient) Get(ctx context.Context, resourceGroupName string, ...) (MultipleActivationKeysClientGetResponse, error)
- func (client *MultipleActivationKeysClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[MultipleActivationKeysClientListByResourceGroupResponse]
- func (client *MultipleActivationKeysClient) NewListPager(options *MultipleActivationKeysClientListOptions) *runtime.Pager[MultipleActivationKeysClientListResponse]
- func (client *MultipleActivationKeysClient) Update(ctx context.Context, resourceGroupName string, ...) (MultipleActivationKeysClientUpdateResponse, error)
- type MultipleActivationKeysClientBeginCreateOptions
- type MultipleActivationKeysClientCreateResponse
- type MultipleActivationKeysClientDeleteOptions
- type MultipleActivationKeysClientDeleteResponse
- type MultipleActivationKeysClientGetOptions
- type MultipleActivationKeysClientGetResponse
- type MultipleActivationKeysClientListByResourceGroupOptions
- type MultipleActivationKeysClientListByResourceGroupResponse
- type MultipleActivationKeysClientListOptions
- type MultipleActivationKeysClientListResponse
- type MultipleActivationKeysClientUpdateOptions
- type MultipleActivationKeysClientUpdateResponse
- type Operation
- type OperationDisplay
- type OperationList
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type OsType
- type ProvisioningState
- type Resource
- type SupportType
- type TrackedResource
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorDefinition ¶
type ErrorDefinition struct { // READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Internal error details. Details []*ErrorDefinition `json:"details,omitempty" azure:"ro"` // READ-ONLY; Description of the error. Message *string `json:"message,omitempty" azure:"ro"` }
ErrorDefinition - Error definition.
func (ErrorDefinition) MarshalJSON ¶
func (e ErrorDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDefinition.
type ErrorResponse ¶
type ErrorResponse struct { // The error details. Error *ErrorDefinition `json:"error,omitempty"` }
ErrorResponse - Error response.
type MultipleActivationKey ¶
type MultipleActivationKey struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // MAK key specific properties. Properties *MultipleActivationKeyProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
MultipleActivationKey - MAK key details.
func (MultipleActivationKey) MarshalJSON ¶
func (m MultipleActivationKey) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MultipleActivationKey.
type MultipleActivationKeyList ¶
type MultipleActivationKeyList struct { // List of MAK keys. Value []*MultipleActivationKey `json:"value,omitempty"` // READ-ONLY; Link to the next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
MultipleActivationKeyList - List of MAK keys.
func (MultipleActivationKeyList) MarshalJSON ¶
func (m MultipleActivationKeyList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MultipleActivationKeyList.
type MultipleActivationKeyProperties ¶
type MultipleActivationKeyProperties struct { // Agreement number under which the key is requested. AgreementNumber *string `json:"agreementNumber,omitempty"` // Number of activations/servers using the MAK key. InstalledServerNumber *int32 `json:"installedServerNumber,omitempty"` // true if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used // in their organization; false otherwise. IsEligible *bool `json:"isEligible,omitempty"` // Type of OS for which the key is requested. OSType *OsType `json:"osType,omitempty"` // Type of support SupportType *SupportType `json:"supportType,omitempty"` // READ-ONLY; End of support of security updates activated by the MAK key. ExpirationDate *time.Time `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; MAK 5x5 key. MultipleActivationKey *string `json:"multipleActivationKey,omitempty" azure:"ro"` // READ-ONLY ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
MultipleActivationKeyProperties - MAK key specific properties.
func (MultipleActivationKeyProperties) MarshalJSON ¶
func (m MultipleActivationKeyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MultipleActivationKeyProperties.
func (*MultipleActivationKeyProperties) UnmarshalJSON ¶
func (m *MultipleActivationKeyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MultipleActivationKeyProperties.
type MultipleActivationKeyUpdate ¶
type MultipleActivationKeyUpdate struct { // Resource tags. Tags map[string]*string `json:"tags,omitempty"` }
MultipleActivationKeyUpdate - MAK key details.
func (MultipleActivationKeyUpdate) MarshalJSON ¶
func (m MultipleActivationKeyUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MultipleActivationKeyUpdate.
type MultipleActivationKeysClient ¶
type MultipleActivationKeysClient struct {
// contains filtered or unexported fields
}
MultipleActivationKeysClient contains the methods for the MultipleActivationKeys group. Don't use this type directly, use NewMultipleActivationKeysClient() instead.
func NewMultipleActivationKeysClient ¶
func NewMultipleActivationKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MultipleActivationKeysClient, error)
NewMultipleActivationKeysClient creates a new instance of MultipleActivationKeysClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MultipleActivationKeysClient) BeginCreate ¶
func (client *MultipleActivationKeysClient) BeginCreate(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKey, options *MultipleActivationKeysClientBeginCreateOptions) (*armruntime.Poller[MultipleActivationKeysClientCreateResponse], error)
BeginCreate - Create a MAK key. If the operation fails it returns an *azcore.ResponseError type. 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. options - MultipleActivationKeysClientBeginCreateOptions contains the optional parameters for the MultipleActivationKeysClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/CreateMultipleActivationKey.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armwindowsesu.NewMultipleActivationKeysClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreate(ctx, "<resource-group-name>", "<multiple-activation-key-name>", armwindowsesu.MultipleActivationKey{ Location: to.Ptr("<location>"), Properties: &armwindowsesu.MultipleActivationKeyProperties{ AgreementNumber: to.Ptr("<agreement-number>"), InstalledServerNumber: to.Ptr[int32](100), IsEligible: to.Ptr(true), OSType: to.Ptr(armwindowsesu.OsTypeWindowsServer2008), SupportType: to.Ptr(armwindowsesu.SupportTypeSupplementalServicing), }, }, &armwindowsesu.MultipleActivationKeysClientBeginCreateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*MultipleActivationKeysClient) Delete ¶
func (client *MultipleActivationKeysClient) Delete(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, options *MultipleActivationKeysClientDeleteOptions) (MultipleActivationKeysClientDeleteResponse, error)
Delete - Delete a MAK key. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. multipleActivationKeyName - The name of the MAK key. options - MultipleActivationKeysClientDeleteOptions contains the optional parameters for the MultipleActivationKeysClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/DeleteMultipleActivationKey.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armwindowsesu.NewMultipleActivationKeysClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<multiple-activation-key-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*MultipleActivationKeysClient) Get ¶
func (client *MultipleActivationKeysClient) Get(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, options *MultipleActivationKeysClientGetOptions) (MultipleActivationKeysClientGetResponse, error)
Get - Get a MAK key. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. multipleActivationKeyName - The name of the MAK key. options - MultipleActivationKeysClientGetOptions contains the optional parameters for the MultipleActivationKeysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/GetMultipleActivationKey.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armwindowsesu.NewMultipleActivationKeysClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<multiple-activation-key-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*MultipleActivationKeysClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *MultipleActivationKeysClient) NewListByResourceGroupPager(resourceGroupName string, options *MultipleActivationKeysClientListByResourceGroupOptions) *runtime.Pager[MultipleActivationKeysClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all Multiple Activation Keys (MAK) in a resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. The name is case insensitive. options - MultipleActivationKeysClientListByResourceGroupOptions contains the optional parameters for the MultipleActivationKeysClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/ListMultipleActivationKeysByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armwindowsesu.NewMultipleActivationKeysClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.NewListByResourceGroupPager("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*MultipleActivationKeysClient) NewListPager ¶ added in v0.4.0
func (client *MultipleActivationKeysClient) NewListPager(options *MultipleActivationKeysClientListOptions) *runtime.Pager[MultipleActivationKeysClientListResponse]
NewListPager - List all Multiple Activation Keys (MAK) created for a subscription. If the operation fails it returns an *azcore.ResponseError type. options - MultipleActivationKeysClientListOptions contains the optional parameters for the MultipleActivationKeysClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/ListMultipleActivationKeys.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armwindowsesu.NewMultipleActivationKeysClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*MultipleActivationKeysClient) Update ¶
func (client *MultipleActivationKeysClient) Update(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey MultipleActivationKeyUpdate, options *MultipleActivationKeysClientUpdateOptions) (MultipleActivationKeysClientUpdateResponse, error)
Update - Update a MAK key. If the operation fails it returns an *azcore.ResponseError type. 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. options - MultipleActivationKeysClientUpdateOptions contains the optional parameters for the MultipleActivationKeysClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/UpdateMultipleActivationKey.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armwindowsesu.NewMultipleActivationKeysClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<multiple-activation-key-name>", armwindowsesu.MultipleActivationKeyUpdate{ Tags: map[string]*string{ "tag1": to.Ptr("value1"), "tag2": to.Ptr("value2"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type MultipleActivationKeysClientBeginCreateOptions ¶ added in v0.2.0
type MultipleActivationKeysClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
MultipleActivationKeysClientBeginCreateOptions contains the optional parameters for the MultipleActivationKeysClient.BeginCreate method.
type MultipleActivationKeysClientCreateResponse ¶ added in v0.2.0
type MultipleActivationKeysClientCreateResponse struct {
MultipleActivationKey
}
MultipleActivationKeysClientCreateResponse contains the response from method MultipleActivationKeysClient.Create.
type MultipleActivationKeysClientDeleteOptions ¶ added in v0.2.0
type MultipleActivationKeysClientDeleteOptions struct { }
MultipleActivationKeysClientDeleteOptions contains the optional parameters for the MultipleActivationKeysClient.Delete method.
type MultipleActivationKeysClientDeleteResponse ¶ added in v0.2.0
type MultipleActivationKeysClientDeleteResponse struct { }
MultipleActivationKeysClientDeleteResponse contains the response from method MultipleActivationKeysClient.Delete.
type MultipleActivationKeysClientGetOptions ¶ added in v0.2.0
type MultipleActivationKeysClientGetOptions struct { }
MultipleActivationKeysClientGetOptions contains the optional parameters for the MultipleActivationKeysClient.Get method.
type MultipleActivationKeysClientGetResponse ¶ added in v0.2.0
type MultipleActivationKeysClientGetResponse struct {
MultipleActivationKey
}
MultipleActivationKeysClientGetResponse contains the response from method MultipleActivationKeysClient.Get.
type MultipleActivationKeysClientListByResourceGroupOptions ¶ added in v0.2.0
type MultipleActivationKeysClientListByResourceGroupOptions struct { }
MultipleActivationKeysClientListByResourceGroupOptions contains the optional parameters for the MultipleActivationKeysClient.ListByResourceGroup method.
type MultipleActivationKeysClientListByResourceGroupResponse ¶ added in v0.2.0
type MultipleActivationKeysClientListByResourceGroupResponse struct {
MultipleActivationKeyList
}
MultipleActivationKeysClientListByResourceGroupResponse contains the response from method MultipleActivationKeysClient.ListByResourceGroup.
type MultipleActivationKeysClientListOptions ¶ added in v0.2.0
type MultipleActivationKeysClientListOptions struct { }
MultipleActivationKeysClientListOptions contains the optional parameters for the MultipleActivationKeysClient.List method.
type MultipleActivationKeysClientListResponse ¶ added in v0.2.0
type MultipleActivationKeysClientListResponse struct {
MultipleActivationKeyList
}
MultipleActivationKeysClientListResponse contains the response from method MultipleActivationKeysClient.List.
type MultipleActivationKeysClientUpdateOptions ¶ added in v0.2.0
type MultipleActivationKeysClientUpdateOptions struct { }
MultipleActivationKeysClientUpdateOptions contains the optional parameters for the MultipleActivationKeysClient.Update method.
type MultipleActivationKeysClientUpdateResponse ¶ added in v0.2.0
type MultipleActivationKeysClientUpdateResponse struct {
MultipleActivationKey
}
MultipleActivationKeysClientUpdateResponse contains the response from method MultipleActivationKeysClient.Update.
type Operation ¶
type Operation struct { // Meta data about operation used for display in portal. Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; Name of the operation. Name *string `json:"name,omitempty" azure:"ro"` }
Operation - REST API operation details.
type OperationDisplay ¶
type OperationDisplay struct { Description *string `json:"description,omitempty"` Operation *string `json:"operation,omitempty"` Provider *string `json:"provider,omitempty"` Resource *string `json:"resource,omitempty"` }
OperationDisplay - Meta data about operation used for display in portal.
type OperationList ¶
type OperationList struct { // List of operations. Value []*Operation `json:"value,omitempty"` // READ-ONLY; Link to the next page of resources. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
OperationList - List of available REST API operations.
func (OperationList) MarshalJSON ¶
func (o OperationList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationList.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List all available Windows.ESU provider operations. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/ListOperations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armwindowsesu.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationList
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type OsType ¶
type OsType string
OsType - Type of OS for which the key is requested.
func PossibleOsTypeValues ¶
func PossibleOsTypeValues() []OsType
PossibleOsTypeValues returns the possible values for the OsType const type.
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type SupportType ¶
type SupportType string
SupportType - Type of support
const ( SupportTypePremiumAssurance SupportType = "PremiumAssurance" SupportTypeSupplementalServicing SupportType = "SupplementalServicing" )
func PossibleSupportTypeValues ¶
func PossibleSupportTypeValues() []SupportType
PossibleSupportTypeValues returns the possible values for the SupportType const type.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.