resource

package
v0.20240903.1111904 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

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

The resource SDK allows for interaction with the Azure Resource Manager Service mixedreality (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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource"

Client Initialization

client := resource.NewResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ResourceClient.RemoteRenderingAccountsCreate

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

payload := resource.RemoteRenderingAccount{
	// ...
}


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

Example Usage: ResourceClient.RemoteRenderingAccountsDelete

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

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

Example Usage: ResourceClient.RemoteRenderingAccountsGet

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

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

Example Usage: ResourceClient.RemoteRenderingAccountsListByResourceGroup

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

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

Example Usage: ResourceClient.RemoteRenderingAccountsListBySubscription

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

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

Example Usage: ResourceClient.RemoteRenderingAccountsUpdate

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

payload := resource.RemoteRenderingAccount{
	// ...
}


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

Example Usage: ResourceClient.SpatialAnchorsAccountsCreate

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

payload := resource.SpatialAnchorsAccount{
	// ...
}


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

Example Usage: ResourceClient.SpatialAnchorsAccountsDelete

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

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

Example Usage: ResourceClient.SpatialAnchorsAccountsGet

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

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

Example Usage: ResourceClient.SpatialAnchorsAccountsListByResourceGroup

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

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

Example Usage: ResourceClient.SpatialAnchorsAccountsListBySubscription

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

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

Example Usage: ResourceClient.SpatialAnchorsAccountsUpdate

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

payload := resource.SpatialAnchorsAccount{
	// ...
}


read, err := client.SpatialAnchorsAccountsUpdate(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 PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

func ValidateRemoteRenderingAccountID

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

ValidateRemoteRenderingAccountID checks that 'input' can be parsed as a Remote Rendering Account ID

func ValidateSpatialAnchorsAccountID

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

ValidateSpatialAnchorsAccountID checks that 'input' can be parsed as a Spatial Anchors Account ID

Types

type MixedRealityAccountProperties

type MixedRealityAccountProperties struct {
	AccountDomain      *string `json:"accountDomain,omitempty"`
	AccountId          *string `json:"accountId,omitempty"`
	StorageAccountName *string `json:"storageAccountName,omitempty"`
}

type RemoteRenderingAccount

type RemoteRenderingAccount struct {
	Id         *string                        `json:"id,omitempty"`
	Identity   *identity.SystemAssigned       `json:"identity,omitempty"`
	Kind       *Sku                           `json:"kind,omitempty"`
	Location   string                         `json:"location"`
	Name       *string                        `json:"name,omitempty"`
	Plan       *identity.SystemAssigned       `json:"plan,omitempty"`
	Properties *MixedRealityAccountProperties `json:"properties,omitempty"`
	Sku        *Sku                           `json:"sku,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Tags       *map[string]string             `json:"tags,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type RemoteRenderingAccountId

type RemoteRenderingAccountId struct {
	SubscriptionId             string
	ResourceGroupName          string
	RemoteRenderingAccountName string
}

RemoteRenderingAccountId is a struct representing the Resource ID for a Remote Rendering Account

func NewRemoteRenderingAccountID

func NewRemoteRenderingAccountID(subscriptionId string, resourceGroupName string, remoteRenderingAccountName string) RemoteRenderingAccountId

NewRemoteRenderingAccountID returns a new RemoteRenderingAccountId struct

func ParseRemoteRenderingAccountID

func ParseRemoteRenderingAccountID(input string) (*RemoteRenderingAccountId, error)

ParseRemoteRenderingAccountID parses 'input' into a RemoteRenderingAccountId

func ParseRemoteRenderingAccountIDInsensitively

func ParseRemoteRenderingAccountIDInsensitively(input string) (*RemoteRenderingAccountId, error)

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

func (*RemoteRenderingAccountId) FromParseResult

func (id *RemoteRenderingAccountId) FromParseResult(input resourceids.ParseResult) error

func (RemoteRenderingAccountId) ID

ID returns the formatted Remote Rendering Account ID

func (RemoteRenderingAccountId) Segments

Segments returns a slice of Resource ID Segments which comprise this Remote Rendering Account ID

func (RemoteRenderingAccountId) String

func (id RemoteRenderingAccountId) String() string

String returns a human-readable description of this Remote Rendering Account ID

type RemoteRenderingAccountOperationPredicate

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

func (RemoteRenderingAccountOperationPredicate) Matches

type RemoteRenderingAccountsCreateOperationResponse

type RemoteRenderingAccountsCreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RemoteRenderingAccount
}

type RemoteRenderingAccountsDeleteOperationResponse

type RemoteRenderingAccountsDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type RemoteRenderingAccountsGetOperationResponse

type RemoteRenderingAccountsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RemoteRenderingAccount
}

type RemoteRenderingAccountsListByResourceGroupCompleteResult

type RemoteRenderingAccountsListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RemoteRenderingAccount
}

type RemoteRenderingAccountsListByResourceGroupCustomPager added in v0.20240628.1153531

type RemoteRenderingAccountsListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type RemoteRenderingAccountsListByResourceGroupOperationResponse

type RemoteRenderingAccountsListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RemoteRenderingAccount
}

type RemoteRenderingAccountsListBySubscriptionCompleteResult

type RemoteRenderingAccountsListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RemoteRenderingAccount
}

type RemoteRenderingAccountsListBySubscriptionCustomPager added in v0.20240628.1153531

type RemoteRenderingAccountsListBySubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type RemoteRenderingAccountsListBySubscriptionOperationResponse

type RemoteRenderingAccountsListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RemoteRenderingAccount
}

type RemoteRenderingAccountsUpdateOperationResponse

type RemoteRenderingAccountsUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RemoteRenderingAccount
}

type ResourceClient

type ResourceClient struct {
	Client *resourcemanager.Client
}

func NewResourceClientWithBaseURI

func NewResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceClient, error)

func (ResourceClient) RemoteRenderingAccountsCreate

RemoteRenderingAccountsCreate ...

func (ResourceClient) RemoteRenderingAccountsDelete

func (c ResourceClient) RemoteRenderingAccountsDelete(ctx context.Context, id RemoteRenderingAccountId) (result RemoteRenderingAccountsDeleteOperationResponse, err error)

RemoteRenderingAccountsDelete ...

func (ResourceClient) RemoteRenderingAccountsGet

RemoteRenderingAccountsGet ...

func (ResourceClient) RemoteRenderingAccountsListByResourceGroup

func (c ResourceClient) RemoteRenderingAccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result RemoteRenderingAccountsListByResourceGroupOperationResponse, err error)

RemoteRenderingAccountsListByResourceGroup ...

func (ResourceClient) RemoteRenderingAccountsListByResourceGroupComplete

func (c ResourceClient) RemoteRenderingAccountsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (RemoteRenderingAccountsListByResourceGroupCompleteResult, error)

RemoteRenderingAccountsListByResourceGroupComplete retrieves all the results into a single object

func (ResourceClient) RemoteRenderingAccountsListByResourceGroupCompleteMatchingPredicate

func (c ResourceClient) RemoteRenderingAccountsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RemoteRenderingAccountOperationPredicate) (result RemoteRenderingAccountsListByResourceGroupCompleteResult, err error)

RemoteRenderingAccountsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ResourceClient) RemoteRenderingAccountsListBySubscription

func (c ResourceClient) RemoteRenderingAccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RemoteRenderingAccountsListBySubscriptionOperationResponse, err error)

RemoteRenderingAccountsListBySubscription ...

func (ResourceClient) RemoteRenderingAccountsListBySubscriptionComplete

func (c ResourceClient) RemoteRenderingAccountsListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (RemoteRenderingAccountsListBySubscriptionCompleteResult, error)

RemoteRenderingAccountsListBySubscriptionComplete retrieves all the results into a single object

func (ResourceClient) RemoteRenderingAccountsListBySubscriptionCompleteMatchingPredicate

func (c ResourceClient) RemoteRenderingAccountsListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RemoteRenderingAccountOperationPredicate) (result RemoteRenderingAccountsListBySubscriptionCompleteResult, err error)

RemoteRenderingAccountsListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ResourceClient) RemoteRenderingAccountsUpdate

RemoteRenderingAccountsUpdate ...

func (ResourceClient) SpatialAnchorsAccountsCreate

SpatialAnchorsAccountsCreate ...

func (ResourceClient) SpatialAnchorsAccountsDelete

func (c ResourceClient) SpatialAnchorsAccountsDelete(ctx context.Context, id SpatialAnchorsAccountId) (result SpatialAnchorsAccountsDeleteOperationResponse, err error)

SpatialAnchorsAccountsDelete ...

func (ResourceClient) SpatialAnchorsAccountsGet

SpatialAnchorsAccountsGet ...

func (ResourceClient) SpatialAnchorsAccountsListByResourceGroup

func (c ResourceClient) SpatialAnchorsAccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result SpatialAnchorsAccountsListByResourceGroupOperationResponse, err error)

SpatialAnchorsAccountsListByResourceGroup ...

func (ResourceClient) SpatialAnchorsAccountsListByResourceGroupComplete

func (c ResourceClient) SpatialAnchorsAccountsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (SpatialAnchorsAccountsListByResourceGroupCompleteResult, error)

SpatialAnchorsAccountsListByResourceGroupComplete retrieves all the results into a single object

func (ResourceClient) SpatialAnchorsAccountsListByResourceGroupCompleteMatchingPredicate

func (c ResourceClient) SpatialAnchorsAccountsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate SpatialAnchorsAccountOperationPredicate) (result SpatialAnchorsAccountsListByResourceGroupCompleteResult, err error)

SpatialAnchorsAccountsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ResourceClient) SpatialAnchorsAccountsListBySubscription

func (c ResourceClient) SpatialAnchorsAccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result SpatialAnchorsAccountsListBySubscriptionOperationResponse, err error)

SpatialAnchorsAccountsListBySubscription ...

func (ResourceClient) SpatialAnchorsAccountsListBySubscriptionComplete

func (c ResourceClient) SpatialAnchorsAccountsListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (SpatialAnchorsAccountsListBySubscriptionCompleteResult, error)

SpatialAnchorsAccountsListBySubscriptionComplete retrieves all the results into a single object

func (ResourceClient) SpatialAnchorsAccountsListBySubscriptionCompleteMatchingPredicate

func (c ResourceClient) SpatialAnchorsAccountsListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SpatialAnchorsAccountOperationPredicate) (result SpatialAnchorsAccountsListBySubscriptionCompleteResult, err error)

SpatialAnchorsAccountsListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ResourceClient) SpatialAnchorsAccountsUpdate

SpatialAnchorsAccountsUpdate ...

type Sku

type Sku struct {
	Capacity *int64   `json:"capacity,omitempty"`
	Family   *string  `json:"family,omitempty"`
	Name     string   `json:"name"`
	Size     *string  `json:"size,omitempty"`
	Tier     *SkuTier `json:"tier,omitempty"`
}

type SkuTier

type SkuTier string
const (
	SkuTierBasic    SkuTier = "Basic"
	SkuTierFree     SkuTier = "Free"
	SkuTierPremium  SkuTier = "Premium"
	SkuTierStandard SkuTier = "Standard"
)

func (*SkuTier) UnmarshalJSON

func (s *SkuTier) UnmarshalJSON(bytes []byte) error

type SpatialAnchorsAccount

type SpatialAnchorsAccount struct {
	Id         *string                        `json:"id,omitempty"`
	Identity   *identity.SystemAssigned       `json:"identity,omitempty"`
	Kind       *Sku                           `json:"kind,omitempty"`
	Location   string                         `json:"location"`
	Name       *string                        `json:"name,omitempty"`
	Plan       *identity.SystemAssigned       `json:"plan,omitempty"`
	Properties *MixedRealityAccountProperties `json:"properties,omitempty"`
	Sku        *Sku                           `json:"sku,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Tags       *map[string]string             `json:"tags,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type SpatialAnchorsAccountId

type SpatialAnchorsAccountId struct {
	SubscriptionId            string
	ResourceGroupName         string
	SpatialAnchorsAccountName string
}

SpatialAnchorsAccountId is a struct representing the Resource ID for a Spatial Anchors Account

func NewSpatialAnchorsAccountID

func NewSpatialAnchorsAccountID(subscriptionId string, resourceGroupName string, spatialAnchorsAccountName string) SpatialAnchorsAccountId

NewSpatialAnchorsAccountID returns a new SpatialAnchorsAccountId struct

func ParseSpatialAnchorsAccountID

func ParseSpatialAnchorsAccountID(input string) (*SpatialAnchorsAccountId, error)

ParseSpatialAnchorsAccountID parses 'input' into a SpatialAnchorsAccountId

func ParseSpatialAnchorsAccountIDInsensitively

func ParseSpatialAnchorsAccountIDInsensitively(input string) (*SpatialAnchorsAccountId, error)

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

func (*SpatialAnchorsAccountId) FromParseResult

func (id *SpatialAnchorsAccountId) FromParseResult(input resourceids.ParseResult) error

func (SpatialAnchorsAccountId) ID

ID returns the formatted Spatial Anchors Account ID

func (SpatialAnchorsAccountId) Segments

Segments returns a slice of Resource ID Segments which comprise this Spatial Anchors Account ID

func (SpatialAnchorsAccountId) String

func (id SpatialAnchorsAccountId) String() string

String returns a human-readable description of this Spatial Anchors Account ID

type SpatialAnchorsAccountOperationPredicate

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

func (SpatialAnchorsAccountOperationPredicate) Matches

type SpatialAnchorsAccountsCreateOperationResponse

type SpatialAnchorsAccountsCreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SpatialAnchorsAccount
}

type SpatialAnchorsAccountsDeleteOperationResponse

type SpatialAnchorsAccountsDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type SpatialAnchorsAccountsGetOperationResponse

type SpatialAnchorsAccountsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SpatialAnchorsAccount
}

type SpatialAnchorsAccountsListByResourceGroupCompleteResult

type SpatialAnchorsAccountsListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SpatialAnchorsAccount
}

type SpatialAnchorsAccountsListByResourceGroupCustomPager added in v0.20240628.1153531

type SpatialAnchorsAccountsListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type SpatialAnchorsAccountsListByResourceGroupOperationResponse

type SpatialAnchorsAccountsListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SpatialAnchorsAccount
}

type SpatialAnchorsAccountsListBySubscriptionCompleteResult

type SpatialAnchorsAccountsListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SpatialAnchorsAccount
}

type SpatialAnchorsAccountsListBySubscriptionCustomPager added in v0.20240628.1153531

type SpatialAnchorsAccountsListBySubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type SpatialAnchorsAccountsListBySubscriptionOperationResponse

type SpatialAnchorsAccountsListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SpatialAnchorsAccount
}

type SpatialAnchorsAccountsUpdateOperationResponse

type SpatialAnchorsAccountsUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SpatialAnchorsAccount
}

Jump to

Keyboard shortcuts

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