proximityplacementgroups

package
v0.20221129.1132320 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/proximityplacementgroups Documentation

The proximityplacementgroups SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2021-07-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/compute/2021-07-01/proximityplacementgroups"

Client Initialization

client := proximityplacementgroups.NewProximityPlacementGroupsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ProximityPlacementGroupsClient.CreateOrUpdate

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

payload := proximityplacementgroups.ProximityPlacementGroup{
	// ...
}


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

Example Usage: ProximityPlacementGroupsClient.Delete

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

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: ProximityPlacementGroupsClient.Get

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

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

Example Usage: ProximityPlacementGroupsClient.ListByResourceGroup

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

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ProximityPlacementGroupsClient.ListBySubscription

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

// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ProximityPlacementGroupsClient.Update

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

payload := proximityplacementgroups.UpdateResource{
	// ...
}


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 PossibleValuesForProximityPlacementGroupType

func PossibleValuesForProximityPlacementGroupType() []string

func PossibleValuesForStatusLevelTypes

func PossibleValuesForStatusLevelTypes() []string

func ValidateProximityPlacementGroupID

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

ValidateProximityPlacementGroupID checks that 'input' can be parsed as a Proximity Placement Group ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ProximityPlacementGroup
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationOptions

type GetOperationOptions struct {
	IncludeColocationStatus *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

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

type InstanceViewStatus

type InstanceViewStatus struct {
	Code          *string           `json:"code,omitempty"`
	DisplayStatus *string           `json:"displayStatus,omitempty"`
	Level         *StatusLevelTypes `json:"level,omitempty"`
	Message       *string           `json:"message,omitempty"`
	Time          *string           `json:"time,omitempty"`
}

func (*InstanceViewStatus) GetTimeAsTime

func (o *InstanceViewStatus) GetTimeAsTime() (*time.Time, error)

func (*InstanceViewStatus) SetTimeAsTime

func (o *InstanceViewStatus) SetTimeAsTime(input time.Time)

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []ProximityPlacementGroup
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ProximityPlacementGroup
	// contains filtered or unexported fields
}

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []ProximityPlacementGroup
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ProximityPlacementGroup
	// contains filtered or unexported fields
}

func (ListBySubscriptionOperationResponse) HasMore

func (ListBySubscriptionOperationResponse) LoadMore

type ProximityPlacementGroup

type ProximityPlacementGroup struct {
	Id         *string                            `json:"id,omitempty"`
	Location   string                             `json:"location"`
	Name       *string                            `json:"name,omitempty"`
	Properties *ProximityPlacementGroupProperties `json:"properties"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type ProximityPlacementGroupId

type ProximityPlacementGroupId struct {
	SubscriptionId              string
	ResourceGroupName           string
	ProximityPlacementGroupName string
}

ProximityPlacementGroupId is a struct representing the Resource ID for a Proximity Placement Group

func NewProximityPlacementGroupID

func NewProximityPlacementGroupID(subscriptionId string, resourceGroupName string, proximityPlacementGroupName string) ProximityPlacementGroupId

NewProximityPlacementGroupID returns a new ProximityPlacementGroupId struct

func ParseProximityPlacementGroupID

func ParseProximityPlacementGroupID(input string) (*ProximityPlacementGroupId, error)

ParseProximityPlacementGroupID parses 'input' into a ProximityPlacementGroupId

func ParseProximityPlacementGroupIDInsensitively

func ParseProximityPlacementGroupIDInsensitively(input string) (*ProximityPlacementGroupId, error)

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

func (ProximityPlacementGroupId) ID

ID returns the formatted Proximity Placement Group ID

func (ProximityPlacementGroupId) Segments

Segments returns a slice of Resource ID Segments which comprise this Proximity Placement Group ID

func (ProximityPlacementGroupId) String

func (id ProximityPlacementGroupId) String() string

String returns a human-readable description of this Proximity Placement Group ID

type ProximityPlacementGroupOperationPredicate

type ProximityPlacementGroupOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (ProximityPlacementGroupOperationPredicate) Matches

type ProximityPlacementGroupProperties

type ProximityPlacementGroupProperties struct {
	AvailabilitySets            *[]SubResourceWithColocationStatus `json:"availabilitySets,omitempty"`
	ColocationStatus            *InstanceViewStatus                `json:"colocationStatus"`
	ProximityPlacementGroupType *ProximityPlacementGroupType       `json:"proximityPlacementGroupType,omitempty"`
	VirtualMachineScaleSets     *[]SubResourceWithColocationStatus `json:"virtualMachineScaleSets,omitempty"`
	VirtualMachines             *[]SubResourceWithColocationStatus `json:"virtualMachines,omitempty"`
}

type ProximityPlacementGroupType

type ProximityPlacementGroupType string
const (
	ProximityPlacementGroupTypeStandard ProximityPlacementGroupType = "Standard"
	ProximityPlacementGroupTypeUltra    ProximityPlacementGroupType = "Ultra"
)

type ProximityPlacementGroupsClient

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

func NewProximityPlacementGroupsClientWithBaseURI

func NewProximityPlacementGroupsClientWithBaseURI(endpoint string) ProximityPlacementGroupsClient

func (ProximityPlacementGroupsClient) CreateOrUpdate

CreateOrUpdate ...

func (ProximityPlacementGroupsClient) Delete

Delete ...

func (ProximityPlacementGroupsClient) Get

Get ...

func (ProximityPlacementGroupsClient) ListByResourceGroup

ListByResourceGroup ...

func (ProximityPlacementGroupsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (ProximityPlacementGroupsClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ProximityPlacementGroupsClient) ListBySubscription

ListBySubscription ...

func (ProximityPlacementGroupsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all of the results into a single object

func (ProximityPlacementGroupsClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ProximityPlacementGroupsClient) Update

Update ...

type StatusLevelTypes

type StatusLevelTypes string
const (
	StatusLevelTypesError   StatusLevelTypes = "Error"
	StatusLevelTypesInfo    StatusLevelTypes = "Info"
	StatusLevelTypesWarning StatusLevelTypes = "Warning"
)

type SubResourceWithColocationStatus

type SubResourceWithColocationStatus struct {
	ColocationStatus *InstanceViewStatus `json:"colocationStatus"`
	Id               *string             `json:"id,omitempty"`
}

type UpdateOperationResponse

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

type UpdateResource

type UpdateResource struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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