autoscalevcores

package
v0.20221125.1110737 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/autoscalevcores Documentation

The autoscalevcores SDK allows for interaction with the Azure Resource Manager Service powerbidedicated (API Version 2021-01-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/autoscalevcores"

Client Initialization

client := autoscalevcores.NewAutoScaleVCoresClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AutoScaleVCoresClient.Create

ctx := context.TODO()
id := autoscalevcores.NewAutoScaleVCoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vcoreValue")

payload := autoscalevcores.AutoScaleVCore{
	// ...
}


read, err := client.Create(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AutoScaleVCoresClient.Delete

ctx := context.TODO()
id := autoscalevcores.NewAutoScaleVCoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vcoreValue")

read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AutoScaleVCoresClient.Get

ctx := context.TODO()
id := autoscalevcores.NewAutoScaleVCoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vcoreValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AutoScaleVCoresClient.ListByResourceGroup

ctx := context.TODO()
id := autoscalevcores.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

read, err := client.ListByResourceGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AutoScaleVCoresClient.ListBySubscription

ctx := context.TODO()
id := autoscalevcores.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.ListBySubscription(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AutoScaleVCoresClient.Update

ctx := context.TODO()
id := autoscalevcores.NewAutoScaleVCoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vcoreValue")

payload := autoscalevcores.AutoScaleVCoreUpdateParameters{
	// ...
}


read, err := client.Update(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForVCoreProvisioningState

func PossibleValuesForVCoreProvisioningState() []string

func PossibleValuesForVCoreSkuTier

func PossibleValuesForVCoreSkuTier() []string

func ValidateAutoScaleVCoreID

func ValidateAutoScaleVCoreID(input interface{}, key string) (warnings []string, errors []error)

ValidateAutoScaleVCoreID checks that 'input' can be parsed as a Auto Scale V Core ID

Types

type AutoScaleVCore

type AutoScaleVCore struct {
	Id         *string                   `json:"id,omitempty"`
	Location   string                    `json:"location"`
	Name       *string                   `json:"name,omitempty"`
	Properties *AutoScaleVCoreProperties `json:"properties,omitempty"`
	Sku        AutoScaleVCoreSku         `json:"sku"`
	SystemData *systemdata.SystemData    `json:"systemData,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type AutoScaleVCoreId

type AutoScaleVCoreId struct {
	SubscriptionId    string
	ResourceGroupName string
	VcoreName         string
}

AutoScaleVCoreId is a struct representing the Resource ID for a Auto Scale V Core

func NewAutoScaleVCoreID

func NewAutoScaleVCoreID(subscriptionId string, resourceGroupName string, vcoreName string) AutoScaleVCoreId

NewAutoScaleVCoreID returns a new AutoScaleVCoreId struct

func ParseAutoScaleVCoreID

func ParseAutoScaleVCoreID(input string) (*AutoScaleVCoreId, error)

ParseAutoScaleVCoreID parses 'input' into a AutoScaleVCoreId

func ParseAutoScaleVCoreIDInsensitively

func ParseAutoScaleVCoreIDInsensitively(input string) (*AutoScaleVCoreId, error)

ParseAutoScaleVCoreIDInsensitively parses 'input' case-insensitively into a AutoScaleVCoreId note: this method should only be used for API response data and not user input

func (AutoScaleVCoreId) ID

func (id AutoScaleVCoreId) ID() string

ID returns the formatted Auto Scale V Core ID

func (AutoScaleVCoreId) Segments

func (id AutoScaleVCoreId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Auto Scale V Core ID

func (AutoScaleVCoreId) String

func (id AutoScaleVCoreId) String() string

String returns a human-readable description of this Auto Scale V Core ID

type AutoScaleVCoreListResult

type AutoScaleVCoreListResult struct {
	Value []AutoScaleVCore `json:"value"`
}

type AutoScaleVCoreMutableProperties

type AutoScaleVCoreMutableProperties struct {
	CapacityLimit *int64 `json:"capacityLimit,omitempty"`
}

type AutoScaleVCoreProperties

type AutoScaleVCoreProperties struct {
	CapacityLimit     *int64                  `json:"capacityLimit,omitempty"`
	CapacityObjectId  *string                 `json:"capacityObjectId,omitempty"`
	ProvisioningState *VCoreProvisioningState `json:"provisioningState,omitempty"`
}

type AutoScaleVCoreSku

type AutoScaleVCoreSku struct {
	Capacity *int64        `json:"capacity,omitempty"`
	Name     string        `json:"name"`
	Tier     *VCoreSkuTier `json:"tier,omitempty"`
}

type AutoScaleVCoreUpdateParameters

type AutoScaleVCoreUpdateParameters struct {
	Properties *AutoScaleVCoreMutableProperties `json:"properties,omitempty"`
	Sku        *AutoScaleVCoreSku               `json:"sku,omitempty"`
	Tags       *map[string]string               `json:"tags,omitempty"`
}

type AutoScaleVCoresClient

type AutoScaleVCoresClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewAutoScaleVCoresClientWithBaseURI

func NewAutoScaleVCoresClientWithBaseURI(endpoint string) AutoScaleVCoresClient

func (AutoScaleVCoresClient) Create

Create ...

func (AutoScaleVCoresClient) Delete

Delete ...

func (AutoScaleVCoresClient) Get

Get ...

func (AutoScaleVCoresClient) ListByResourceGroup

ListByResourceGroup ...

func (AutoScaleVCoresClient) ListBySubscription

ListBySubscription ...

func (AutoScaleVCoresClient) Update

Update ...

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	Model        *AutoScaleVCore
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *AutoScaleVCore
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *AutoScaleVCoreListResult
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *AutoScaleVCoreListResult
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *AutoScaleVCore
}

type VCoreProvisioningState

type VCoreProvisioningState string
const (
	VCoreProvisioningStateSucceeded VCoreProvisioningState = "Succeeded"
)

type VCoreSkuTier

type VCoreSkuTier string
const (
	VCoreSkuTierAutoScale VCoreSkuTier = "AutoScale"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL