Documentation ¶
Index ¶
- func PossibleValuesForLicenseCoreType() []string
- func PossibleValuesForLicenseEdition() []string
- func PossibleValuesForLicenseState() []string
- func PossibleValuesForLicenseTarget() []string
- func PossibleValuesForLicenseType() []string
- func PossibleValuesForProgramYear() []string
- func PossibleValuesForProvisioningState() []string
- func ValidateLicenseID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type License
- type LicenseCoreType
- type LicenseDetails
- type LicenseEdition
- type LicenseId
- type LicenseOperationPredicate
- type LicenseProperties
- type LicenseState
- type LicenseTarget
- type LicenseType
- type LicenseUpdate
- type LicenseUpdateProperties
- type LicenseUpdatePropertiesLicenseDetails
- type LicensesClient
- func (c LicensesClient) CreateOrUpdate(ctx context.Context, id LicenseId, input License) (result CreateOrUpdateOperationResponse, err error)
- func (c LicensesClient) CreateOrUpdateThenPoll(ctx context.Context, id LicenseId, input License) error
- func (c LicensesClient) Delete(ctx context.Context, id LicenseId) (result DeleteOperationResponse, err error)
- func (c LicensesClient) DeleteThenPoll(ctx context.Context, id LicenseId) error
- func (c LicensesClient) Get(ctx context.Context, id LicenseId) (result GetOperationResponse, err error)
- func (c LicensesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c LicensesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c LicensesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c LicensesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c LicensesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c LicensesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c LicensesClient) Update(ctx context.Context, id LicenseId, input LicenseUpdate) (result UpdateOperationResponse, err error)
- func (c LicensesClient) UpdateThenPoll(ctx context.Context, id LicenseId, input LicenseUpdate) error
- func (c LicensesClient) ValidateLicense(ctx context.Context, id commonids.SubscriptionId, input License) (result ValidateLicenseOperationResponse, err error)
- func (c LicensesClient) ValidateLicenseThenPoll(ctx context.Context, id commonids.SubscriptionId, input License) error
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionCustomPager
- type ListBySubscriptionOperationResponse
- type ProgramYear
- type ProvisioningState
- type UpdateOperationResponse
- type ValidateLicenseOperationResponse
- type VolumeLicenseDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForLicenseCoreType ¶
func PossibleValuesForLicenseCoreType() []string
func PossibleValuesForLicenseEdition ¶
func PossibleValuesForLicenseEdition() []string
func PossibleValuesForLicenseState ¶
func PossibleValuesForLicenseState() []string
func PossibleValuesForLicenseTarget ¶
func PossibleValuesForLicenseTarget() []string
func PossibleValuesForLicenseType ¶
func PossibleValuesForLicenseType() []string
func PossibleValuesForProgramYear ¶
func PossibleValuesForProgramYear() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateLicenseID ¶
ValidateLicenseID checks that 'input' can be parsed as a License ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type License ¶
type License struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *LicenseProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type LicenseCoreType ¶
type LicenseCoreType string
const ( LicenseCoreTypePCore LicenseCoreType = "pCore" LicenseCoreTypeVCore LicenseCoreType = "vCore" )
func (*LicenseCoreType) UnmarshalJSON ¶
func (s *LicenseCoreType) UnmarshalJSON(bytes []byte) error
type LicenseDetails ¶
type LicenseDetails struct { AssignedLicenses *int64 `json:"assignedLicenses,omitempty"` Edition *LicenseEdition `json:"edition,omitempty"` ImmutableId *string `json:"immutableId,omitempty"` Processors *int64 `json:"processors,omitempty"` State *LicenseState `json:"state,omitempty"` Target *LicenseTarget `json:"target,omitempty"` Type *LicenseCoreType `json:"type,omitempty"` VolumeLicenseDetails *[]VolumeLicenseDetails `json:"volumeLicenseDetails,omitempty"` }
type LicenseEdition ¶
type LicenseEdition string
const ( LicenseEditionDatacenter LicenseEdition = "Datacenter" LicenseEditionStandard LicenseEdition = "Standard" )
func (*LicenseEdition) UnmarshalJSON ¶
func (s *LicenseEdition) UnmarshalJSON(bytes []byte) error
type LicenseId ¶
LicenseId is a struct representing the Resource ID for a License
func NewLicenseID ¶
NewLicenseID returns a new LicenseId struct
func ParseLicenseID ¶
ParseLicenseID parses 'input' into a LicenseId
func ParseLicenseIDInsensitively ¶
ParseLicenseIDInsensitively parses 'input' case-insensitively into a LicenseId note: this method should only be used for API response data and not user input
func (*LicenseId) FromParseResult ¶
func (id *LicenseId) FromParseResult(input resourceids.ParseResult) error
func (LicenseId) Segments ¶
func (id LicenseId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this License ID
type LicenseOperationPredicate ¶
func (LicenseOperationPredicate) Matches ¶
func (p LicenseOperationPredicate) Matches(input License) bool
type LicenseProperties ¶
type LicenseProperties struct { LicenseDetails *LicenseDetails `json:"licenseDetails,omitempty"` LicenseType *LicenseType `json:"licenseType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` TenantId *string `json:"tenantId,omitempty"` }
type LicenseState ¶
type LicenseState string
const ( LicenseStateActivated LicenseState = "Activated" LicenseStateDeactivated LicenseState = "Deactivated" )
func (*LicenseState) UnmarshalJSON ¶
func (s *LicenseState) UnmarshalJSON(bytes []byte) error
type LicenseTarget ¶
type LicenseTarget string
const ( LicenseTargetWindowsServerTwoZeroOneTwo LicenseTarget = "Windows Server 2012" LicenseTargetWindowsServerTwoZeroOneTwoRTwo LicenseTarget = "Windows Server 2012 R2" )
func (*LicenseTarget) UnmarshalJSON ¶
func (s *LicenseTarget) UnmarshalJSON(bytes []byte) error
type LicenseType ¶
type LicenseType string
const (
LicenseTypeESU LicenseType = "ESU"
)
func (*LicenseType) UnmarshalJSON ¶
func (s *LicenseType) UnmarshalJSON(bytes []byte) error
type LicenseUpdate ¶
type LicenseUpdate struct { Properties *LicenseUpdateProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type LicenseUpdateProperties ¶
type LicenseUpdateProperties struct { LicenseDetails *LicenseUpdatePropertiesLicenseDetails `json:"licenseDetails,omitempty"` LicenseType *LicenseType `json:"licenseType,omitempty"` }
type LicenseUpdatePropertiesLicenseDetails ¶
type LicenseUpdatePropertiesLicenseDetails struct { Edition *LicenseEdition `json:"edition,omitempty"` Processors *int64 `json:"processors,omitempty"` State *LicenseState `json:"state,omitempty"` Target *LicenseTarget `json:"target,omitempty"` Type *LicenseCoreType `json:"type,omitempty"` }
type LicensesClient ¶
type LicensesClient struct {
Client *resourcemanager.Client
}
func NewLicensesClientWithBaseURI ¶
func NewLicensesClientWithBaseURI(sdkApi sdkEnv.Api) (*LicensesClient, error)
func (LicensesClient) CreateOrUpdate ¶
func (c LicensesClient) CreateOrUpdate(ctx context.Context, id LicenseId, input License) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (LicensesClient) CreateOrUpdateThenPoll ¶
func (c LicensesClient) CreateOrUpdateThenPoll(ctx context.Context, id LicenseId, input License) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (LicensesClient) Delete ¶
func (c LicensesClient) Delete(ctx context.Context, id LicenseId) (result DeleteOperationResponse, err error)
Delete ...
func (LicensesClient) DeleteThenPoll ¶
func (c LicensesClient) DeleteThenPoll(ctx context.Context, id LicenseId) error
DeleteThenPoll performs Delete then polls until it's completed
func (LicensesClient) Get ¶
func (c LicensesClient) Get(ctx context.Context, id LicenseId) (result GetOperationResponse, err error)
Get ...
func (LicensesClient) ListByResourceGroup ¶
func (c LicensesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (LicensesClient) ListByResourceGroupComplete ¶
func (c LicensesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (LicensesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c LicensesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate LicenseOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (LicensesClient) ListBySubscription ¶
func (c LicensesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (LicensesClient) ListBySubscriptionComplete ¶
func (c LicensesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (LicensesClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c LicensesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate LicenseOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (LicensesClient) Update ¶
func (c LicensesClient) Update(ctx context.Context, id LicenseId, input LicenseUpdate) (result UpdateOperationResponse, err error)
Update ...
func (LicensesClient) UpdateThenPoll ¶
func (c LicensesClient) UpdateThenPoll(ctx context.Context, id LicenseId, input LicenseUpdate) error
UpdateThenPoll performs Update then polls until it's completed
func (LicensesClient) ValidateLicense ¶
func (c LicensesClient) ValidateLicense(ctx context.Context, id commonids.SubscriptionId, input License) (result ValidateLicenseOperationResponse, err error)
ValidateLicense ...
func (LicensesClient) ValidateLicenseThenPoll ¶
func (c LicensesClient) ValidateLicenseThenPoll(ctx context.Context, id commonids.SubscriptionId, input License) error
ValidateLicenseThenPoll performs ValidateLicense then polls until it's completed
type ListByResourceGroupCustomPager ¶
func (*ListByResourceGroupCustomPager) NextPageLink ¶
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListBySubscriptionCustomPager ¶
func (*ListBySubscriptionCustomPager) NextPageLink ¶
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link
type ProgramYear ¶
type ProgramYear string
const ( ProgramYearYearOne ProgramYear = "Year 1" ProgramYearYearThree ProgramYear = "Year 3" ProgramYearYearTwo ProgramYear = "Year 2" )
func (*ProgramYear) UnmarshalJSON ¶
func (s *ProgramYear) UnmarshalJSON(bytes []byte) error
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type VolumeLicenseDetails ¶
type VolumeLicenseDetails struct { InvoiceId *string `json:"invoiceId,omitempty"` ProgramYear *ProgramYear `json:"programYear,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_license.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.go
- method_validatelicense.go
- model_license.go
- model_licensedetails.go
- model_licenseproperties.go
- model_licenseupdate.go
- model_licenseupdateproperties.go
- model_licenseupdatepropertieslicensedetails.go
- model_volumelicensedetails.go
- predicates.go
- version.go