package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# 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
}
# Functions
NewRemoteRenderingAccountID returns a new RemoteRenderingAccountId struct.
No description provided by the author
NewSpatialAnchorsAccountID returns a new SpatialAnchorsAccountId struct.
ParseRemoteRenderingAccountID parses 'input' into a RemoteRenderingAccountId.
ParseRemoteRenderingAccountIDInsensitively parses 'input' case-insensitively into a RemoteRenderingAccountId note: this method should only be used for API response data and not user input.
ParseSpatialAnchorsAccountID parses 'input' into a SpatialAnchorsAccountId.
ParseSpatialAnchorsAccountIDInsensitively parses 'input' case-insensitively into a SpatialAnchorsAccountId note: this method should only be used for API response data and not user input.
No description provided by the author
ValidateRemoteRenderingAccountID checks that 'input' can be parsed as a Remote Rendering Account ID.
ValidateSpatialAnchorsAccountID checks that 'input' can be parsed as a Spatial Anchors Account ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
RemoteRenderingAccountId is a struct representing the Resource ID for a Remote Rendering Account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SpatialAnchorsAccountId is a struct representing the Resource ID for a Spatial Anchors Account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author