Documentation ¶
Index ¶
- type AccountKeyRegenerateRequest
- type AccountKeys
- type AccountProperties
- type CheckNameAvailabilityRequest
- type CheckNameAvailabilityResponse
- type Client
- type ClientCheckNameAvailabilityLocalOptions
- type ClientCheckNameAvailabilityLocalResponse
- type CloudError
- type CloudErrorBody
- type CreatedByType
- type Identity
- type LogSpecification
- type MetricDimension
- type MetricSpecification
- type NameUnavailableReason
- type ObjectAnchorsAccount
- type ObjectAnchorsAccountIdentity
- type ObjectAnchorsAccountPage
- type ObjectAnchorsAccountsClient
- func (client *ObjectAnchorsAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectAnchorsAccountsClientCreateResponse, error)
- func (client *ObjectAnchorsAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectAnchorsAccountsClientDeleteResponse, error)
- func (client *ObjectAnchorsAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectAnchorsAccountsClientGetResponse, error)
- func (client *ObjectAnchorsAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectAnchorsAccountsClientListKeysResponse, error)
- func (client *ObjectAnchorsAccountsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[ObjectAnchorsAccountsClientListByResourceGroupResponse]
- func (client *ObjectAnchorsAccountsClient) NewListBySubscriptionPager(options *ObjectAnchorsAccountsClientListBySubscriptionOptions) *runtime.Pager[ObjectAnchorsAccountsClientListBySubscriptionResponse]
- func (client *ObjectAnchorsAccountsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectAnchorsAccountsClientRegenerateKeysResponse, error)
- func (client *ObjectAnchorsAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (ObjectAnchorsAccountsClientUpdateResponse, error)
- type ObjectAnchorsAccountsClientCreateOptions
- type ObjectAnchorsAccountsClientCreateResponse
- type ObjectAnchorsAccountsClientDeleteOptions
- type ObjectAnchorsAccountsClientDeleteResponse
- type ObjectAnchorsAccountsClientGetOptions
- type ObjectAnchorsAccountsClientGetResponse
- type ObjectAnchorsAccountsClientListByResourceGroupOptions
- type ObjectAnchorsAccountsClientListByResourceGroupResponse
- type ObjectAnchorsAccountsClientListBySubscriptionOptions
- type ObjectAnchorsAccountsClientListBySubscriptionResponse
- type ObjectAnchorsAccountsClientListKeysOptions
- type ObjectAnchorsAccountsClientListKeysResponse
- type ObjectAnchorsAccountsClientRegenerateKeysOptions
- type ObjectAnchorsAccountsClientRegenerateKeysResponse
- type ObjectAnchorsAccountsClientUpdateOptions
- type ObjectAnchorsAccountsClientUpdateResponse
- type Operation
- type OperationDisplay
- type OperationPage
- type OperationProperties
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type RemoteRenderingAccount
- type RemoteRenderingAccountPage
- type RemoteRenderingAccountsClient
- func (client *RemoteRenderingAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (RemoteRenderingAccountsClientCreateResponse, error)
- func (client *RemoteRenderingAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (RemoteRenderingAccountsClientDeleteResponse, error)
- func (client *RemoteRenderingAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (RemoteRenderingAccountsClientGetResponse, error)
- func (client *RemoteRenderingAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (RemoteRenderingAccountsClientListKeysResponse, error)
- func (client *RemoteRenderingAccountsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[RemoteRenderingAccountsClientListByResourceGroupResponse]
- func (client *RemoteRenderingAccountsClient) NewListBySubscriptionPager(options *RemoteRenderingAccountsClientListBySubscriptionOptions) *runtime.Pager[RemoteRenderingAccountsClientListBySubscriptionResponse]
- func (client *RemoteRenderingAccountsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (RemoteRenderingAccountsClientRegenerateKeysResponse, error)
- func (client *RemoteRenderingAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (RemoteRenderingAccountsClientUpdateResponse, error)
- type RemoteRenderingAccountsClientCreateOptions
- type RemoteRenderingAccountsClientCreateResponse
- type RemoteRenderingAccountsClientDeleteOptions
- type RemoteRenderingAccountsClientDeleteResponse
- type RemoteRenderingAccountsClientGetOptions
- type RemoteRenderingAccountsClientGetResponse
- type RemoteRenderingAccountsClientListByResourceGroupOptions
- type RemoteRenderingAccountsClientListByResourceGroupResponse
- type RemoteRenderingAccountsClientListBySubscriptionOptions
- type RemoteRenderingAccountsClientListBySubscriptionResponse
- type RemoteRenderingAccountsClientListKeysOptions
- type RemoteRenderingAccountsClientListKeysResponse
- type RemoteRenderingAccountsClientRegenerateKeysOptions
- type RemoteRenderingAccountsClientRegenerateKeysResponse
- type RemoteRenderingAccountsClientUpdateOptions
- type RemoteRenderingAccountsClientUpdateResponse
- type Resource
- type SKU
- type SKUTier
- type Serial
- type ServiceSpecification
- type SpatialAnchorsAccount
- type SpatialAnchorsAccountPage
- type SpatialAnchorsAccountsClient
- func (client *SpatialAnchorsAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (SpatialAnchorsAccountsClientCreateResponse, error)
- func (client *SpatialAnchorsAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, ...) (SpatialAnchorsAccountsClientDeleteResponse, error)
- func (client *SpatialAnchorsAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (SpatialAnchorsAccountsClientGetResponse, error)
- func (client *SpatialAnchorsAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (SpatialAnchorsAccountsClientListKeysResponse, error)
- func (client *SpatialAnchorsAccountsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[SpatialAnchorsAccountsClientListByResourceGroupResponse]
- func (client *SpatialAnchorsAccountsClient) NewListBySubscriptionPager(options *SpatialAnchorsAccountsClientListBySubscriptionOptions) *runtime.Pager[SpatialAnchorsAccountsClientListBySubscriptionResponse]
- func (client *SpatialAnchorsAccountsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, accountName string, ...) (SpatialAnchorsAccountsClientRegenerateKeysResponse, error)
- func (client *SpatialAnchorsAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, ...) (SpatialAnchorsAccountsClientUpdateResponse, error)
- type SpatialAnchorsAccountsClientCreateOptions
- type SpatialAnchorsAccountsClientCreateResponse
- type SpatialAnchorsAccountsClientDeleteOptions
- type SpatialAnchorsAccountsClientDeleteResponse
- type SpatialAnchorsAccountsClientGetOptions
- type SpatialAnchorsAccountsClientGetResponse
- type SpatialAnchorsAccountsClientListByResourceGroupOptions
- type SpatialAnchorsAccountsClientListByResourceGroupResponse
- type SpatialAnchorsAccountsClientListBySubscriptionOptions
- type SpatialAnchorsAccountsClientListBySubscriptionResponse
- type SpatialAnchorsAccountsClientListKeysOptions
- type SpatialAnchorsAccountsClientListKeysResponse
- type SpatialAnchorsAccountsClientRegenerateKeysOptions
- type SpatialAnchorsAccountsClientRegenerateKeysResponse
- type SpatialAnchorsAccountsClientUpdateOptions
- type SpatialAnchorsAccountsClientUpdateResponse
- type SystemData
- type TrackedResource
Examples ¶
- Client.CheckNameAvailabilityLocal
- ObjectAnchorsAccountsClient.Create
- ObjectAnchorsAccountsClient.Delete
- ObjectAnchorsAccountsClient.Get
- ObjectAnchorsAccountsClient.ListKeys
- ObjectAnchorsAccountsClient.NewListByResourceGroupPager
- ObjectAnchorsAccountsClient.NewListBySubscriptionPager
- ObjectAnchorsAccountsClient.RegenerateKeys
- ObjectAnchorsAccountsClient.Update
- OperationsClient.NewListPager
- RemoteRenderingAccountsClient.Create
- RemoteRenderingAccountsClient.Delete
- RemoteRenderingAccountsClient.Get
- RemoteRenderingAccountsClient.ListKeys
- RemoteRenderingAccountsClient.NewListByResourceGroupPager
- RemoteRenderingAccountsClient.NewListBySubscriptionPager
- RemoteRenderingAccountsClient.RegenerateKeys
- RemoteRenderingAccountsClient.Update
- SpatialAnchorsAccountsClient.Create
- SpatialAnchorsAccountsClient.Delete
- SpatialAnchorsAccountsClient.Get
- SpatialAnchorsAccountsClient.ListKeys
- SpatialAnchorsAccountsClient.NewListByResourceGroupPager
- SpatialAnchorsAccountsClient.NewListBySubscriptionPager
- SpatialAnchorsAccountsClient.RegenerateKeys
- SpatialAnchorsAccountsClient.Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeyRegenerateRequest ¶
type AccountKeyRegenerateRequest struct { // Serial of key to be regenerated Serial *Serial `json:"serial,omitempty"` }
AccountKeyRegenerateRequest - Request for account key regeneration
type AccountKeys ¶
type AccountKeys struct { // READ-ONLY; value of primary key. PrimaryKey *string `json:"primaryKey,omitempty" azure:"ro"` // READ-ONLY; value of secondary key. SecondaryKey *string `json:"secondaryKey,omitempty" azure:"ro"` }
AccountKeys - Developer Keys of account
type AccountProperties ¶ added in v0.2.0
type AccountProperties struct { // The name of the storage account associated with this accountId StorageAccountName *string `json:"storageAccountName,omitempty"` // READ-ONLY; Correspond domain name of certain Spatial Anchors Account AccountDomain *string `json:"accountDomain,omitempty" azure:"ro"` // READ-ONLY; unique id of certain account. AccountID *string `json:"accountId,omitempty" azure:"ro"` }
AccountProperties - Common Properties shared by Mixed Reality Accounts
type CheckNameAvailabilityRequest ¶
type CheckNameAvailabilityRequest struct { // REQUIRED; Resource Name To Verify Name *string `json:"name,omitempty"` // REQUIRED; Fully qualified resource type which includes provider namespace Type *string `json:"type,omitempty"` }
CheckNameAvailabilityRequest - Check Name Availability Request
type CheckNameAvailabilityResponse ¶
type CheckNameAvailabilityResponse struct { // REQUIRED; if name Available NameAvailable *bool `json:"nameAvailable,omitempty"` // detail message Message *string `json:"message,omitempty"` // Resource Name To Verify Reason *NameUnavailableReason `json:"reason,omitempty"` }
CheckNameAvailabilityResponse - Check Name Availability Response
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client contains the methods for the MixedRealityClient group. Don't use this type directly, use NewClient() instead.
func NewClient ¶ added in v0.2.0
func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)
NewClient creates a new instance of Client with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*Client) CheckNameAvailabilityLocal ¶ added in v0.2.0
func (client *Client) CheckNameAvailabilityLocal(ctx context.Context, location string, checkNameAvailability CheckNameAvailabilityRequest, options *ClientCheckNameAvailabilityLocalOptions) (ClientCheckNameAvailabilityLocalResponse, error)
CheckNameAvailabilityLocal - Check Name Availability for local uniqueness If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview location - The location in which uniqueness will be verified. checkNameAvailability - Check Name Availability Request. options - ClientCheckNameAvailabilityLocalOptions contains the optional parameters for the Client.CheckNameAvailabilityLocal method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CheckNameAvailabilityLocal(ctx, "eastus2euap", armmixedreality.CheckNameAvailabilityRequest{ Name: to.Ptr("MyAccount"), Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ClientCheckNameAvailabilityLocalOptions ¶ added in v0.2.0
type ClientCheckNameAvailabilityLocalOptions struct { }
ClientCheckNameAvailabilityLocalOptions contains the optional parameters for the Client.CheckNameAvailabilityLocal method.
type ClientCheckNameAvailabilityLocalResponse ¶ added in v0.2.0
type ClientCheckNameAvailabilityLocalResponse struct {
CheckNameAvailabilityResponse
}
ClientCheckNameAvailabilityLocalResponse contains the response from method Client.CheckNameAvailabilityLocal.
type CloudError ¶
type CloudError struct { // An Error response. Error *CloudErrorBody `json:"error,omitempty"` }
CloudError - An Error response.
type CloudErrorBody ¶
type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBody `json:"details,omitempty"` // A message describing the error, intended to be suitable for displaying in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` }
CloudErrorBody - An error response from Azure.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type Identity ¶
type Identity struct { // The identity type. Type *string `json:"type,omitempty"` // READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
Identity for the resource.
type LogSpecification ¶
type LogSpecification struct { // Blob duration of the log BlobDuration *string `json:"blobDuration,omitempty"` // Localized friendly display name of the log DisplayName *string `json:"displayName,omitempty"` // Name of the log Name *string `json:"name,omitempty"` }
LogSpecification - Specifications of the Log for Azure Monitoring
type MetricDimension ¶
type MetricDimension struct { // Localized friendly display name of the dimension DisplayName *string `json:"displayName,omitempty"` // Internal name of the dimension. InternalName *string `json:"internalName,omitempty"` // Name of the dimension Name *string `json:"name,omitempty"` // Flag to indicate export for Shoebox ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` }
MetricDimension - Specifications of the Dimension of metrics
type MetricSpecification ¶
type MetricSpecification struct { // Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. AggregationType *string `json:"aggregationType,omitempty"` // Metric category Category *string `json:"category,omitempty"` // Dimensions of the metric Dimensions []*MetricDimension `json:"dimensions,omitempty"` // Localized friendly description of the metric DisplayDescription *string `json:"displayDescription,omitempty"` // Localized friendly display name of the metric DisplayName *string `json:"displayName,omitempty"` // Flag to indicate use of regional Mdm accounts EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` // Flag to determine is Zero is returned for time duration where no metric is emitted FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Internal metric name. InternalMetricName *string `json:"internalMetricName,omitempty"` // Locked aggregation type of the metric LockedAggregationType *string `json:"lockedAggregationType,omitempty"` // Metric filter regex pattern MetricFilterPattern *string `json:"metricFilterPattern,omitempty"` // Name of the metric Name *string `json:"name,omitempty"` // Source mdm account SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` // Source mdm namespace SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` // Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count. SupportedAggregationTypes []*string `json:"supportedAggregationTypes,omitempty"` // Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D SupportedTimeGrainTypes []*string `json:"supportedTimeGrainTypes,omitempty"` // Unit that makes sense for the metric Unit *string `json:"unit,omitempty"` }
MetricSpecification - Specifications of the Metrics for Azure Monitoring
type NameUnavailableReason ¶
type NameUnavailableReason string
NameUnavailableReason - reason of name unavailable.
const ()
func PossibleNameUnavailableReasonValues ¶
func PossibleNameUnavailableReasonValues() []NameUnavailableReason
PossibleNameUnavailableReasonValues returns the possible values for the NameUnavailableReason const type.
type ObjectAnchorsAccount ¶
type ObjectAnchorsAccount struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` Identity *ObjectAnchorsAccountIdentity `json:"identity,omitempty"` // The kind of account, if supported Kind *SKU `json:"kind,omitempty"` // The plan associated with this account Plan *Identity `json:"plan,omitempty"` // Property bag. Properties *AccountProperties `json:"properties,omitempty"` // The sku associated with this account SKU *SKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system metadata related to an object anchors account. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ObjectAnchorsAccount Response.
func (ObjectAnchorsAccount) MarshalJSON ¶
func (o ObjectAnchorsAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ObjectAnchorsAccount.
type ObjectAnchorsAccountIdentity ¶
type ObjectAnchorsAccountIdentity struct { // The identity type. Type *string `json:"type,omitempty"` // READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
type ObjectAnchorsAccountPage ¶
type ObjectAnchorsAccountPage struct { // URL to get the next set of resource list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of resources supported by the Resource Provider. Value []*ObjectAnchorsAccount `json:"value,omitempty"` }
ObjectAnchorsAccountPage - Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.
type ObjectAnchorsAccountsClient ¶
type ObjectAnchorsAccountsClient struct {
// contains filtered or unexported fields
}
ObjectAnchorsAccountsClient contains the methods for the ObjectAnchorsAccounts group. Don't use this type directly, use NewObjectAnchorsAccountsClient() instead.
func NewObjectAnchorsAccountsClient ¶
func NewObjectAnchorsAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ObjectAnchorsAccountsClient, error)
NewObjectAnchorsAccountsClient creates a new instance of ObjectAnchorsAccountsClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ObjectAnchorsAccountsClient) Create ¶
func (client *ObjectAnchorsAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, objectAnchorsAccount ObjectAnchorsAccount, options *ObjectAnchorsAccountsClientCreateOptions) (ObjectAnchorsAccountsClientCreateResponse, error)
Create - Creating or Updating an object anchors Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. objectAnchorsAccount - Object Anchors Account parameter. options - ObjectAnchorsAccountsClientCreateOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Create(ctx, "MyResourceGroup", "MyAccount", armmixedreality.ObjectAnchorsAccount{ Location: to.Ptr("eastus2euap"), Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ Type: to.Ptr("SystemAssigned"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ObjectAnchorsAccountsClient) Delete ¶
func (client *ObjectAnchorsAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, options *ObjectAnchorsAccountsClientDeleteOptions) (ObjectAnchorsAccountsClientDeleteResponse, error)
Delete - Delete an Object Anchors Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - ObjectAnchorsAccountsClientDeleteOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ObjectAnchorsAccountsClient) Get ¶
func (client *ObjectAnchorsAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, options *ObjectAnchorsAccountsClientGetOptions) (ObjectAnchorsAccountsClientGetResponse, error)
Get - Retrieve an Object Anchors Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - ObjectAnchorsAccountsClientGetOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ObjectAnchorsAccountsClient) ListKeys ¶
func (client *ObjectAnchorsAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, options *ObjectAnchorsAccountsClientListKeysOptions) (ObjectAnchorsAccountsClientListKeysResponse, error)
ListKeys - List Both of the 2 Keys of an object anchors Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - ObjectAnchorsAccountsClientListKeysOptions contains the optional parameters for the ObjectAnchorsAccountsClient.ListKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/ListKeys.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListKeys(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ObjectAnchorsAccountsClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *ObjectAnchorsAccountsClient) NewListByResourceGroupPager(resourceGroupName string, options *ObjectAnchorsAccountsClientListByResourceGroupOptions) *runtime.Pager[ObjectAnchorsAccountsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List Resources by Resource Group If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. options - ObjectAnchorsAccountsClientListByResourceGroupOptions contains the optional parameters for the ObjectAnchorsAccountsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/GetByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("MyResourceGroup", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ObjectAnchorsAccountsClient) NewListBySubscriptionPager ¶ added in v0.4.0
func (client *ObjectAnchorsAccountsClient) NewListBySubscriptionPager(options *ObjectAnchorsAccountsClientListBySubscriptionOptions) *runtime.Pager[ObjectAnchorsAccountsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List Object Anchors Accounts by Subscription If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview options - ObjectAnchorsAccountsClientListBySubscriptionOptions contains the optional parameters for the ObjectAnchorsAccountsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/GetBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ObjectAnchorsAccountsClient) RegenerateKeys ¶
func (client *ObjectAnchorsAccountsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, accountName string, regenerate AccountKeyRegenerateRequest, options *ObjectAnchorsAccountsClientRegenerateKeysOptions) (ObjectAnchorsAccountsClientRegenerateKeysResponse, error)
RegenerateKeys - Regenerate specified Key of an object anchors Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. regenerate - Required information for key regeneration. options - ObjectAnchorsAccountsClientRegenerateKeysOptions contains the optional parameters for the ObjectAnchorsAccountsClient.RegenerateKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/RegenerateKey.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.RegenerateKeys(ctx, "MyResourceGroup", "MyAccount", armmixedreality.AccountKeyRegenerateRequest{ Serial: to.Ptr(armmixedreality.SerialPrimary), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ObjectAnchorsAccountsClient) Update ¶
func (client *ObjectAnchorsAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, objectAnchorsAccount ObjectAnchorsAccount, options *ObjectAnchorsAccountsClientUpdateOptions) (ObjectAnchorsAccountsClientUpdateResponse, error)
Update - Updating an Object Anchors Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. objectAnchorsAccount - Object Anchors Account parameter. options - ObjectAnchorsAccountsClientUpdateOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewObjectAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "MyResourceGroup", "MyAccount", armmixedreality.ObjectAnchorsAccount{ Location: to.Ptr("eastus2euap"), Tags: map[string]*string{ "hero": to.Ptr("romeo"), "heroine": to.Ptr("juliet"), }, Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ Type: to.Ptr("SystemAssigned"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ObjectAnchorsAccountsClientCreateOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientCreateOptions struct { }
ObjectAnchorsAccountsClientCreateOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Create method.
type ObjectAnchorsAccountsClientCreateResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientCreateResponse struct {
ObjectAnchorsAccount
}
ObjectAnchorsAccountsClientCreateResponse contains the response from method ObjectAnchorsAccountsClient.Create.
type ObjectAnchorsAccountsClientDeleteOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientDeleteOptions struct { }
ObjectAnchorsAccountsClientDeleteOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Delete method.
type ObjectAnchorsAccountsClientDeleteResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientDeleteResponse struct { }
ObjectAnchorsAccountsClientDeleteResponse contains the response from method ObjectAnchorsAccountsClient.Delete.
type ObjectAnchorsAccountsClientGetOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientGetOptions struct { }
ObjectAnchorsAccountsClientGetOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Get method.
type ObjectAnchorsAccountsClientGetResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientGetResponse struct {
ObjectAnchorsAccount
}
ObjectAnchorsAccountsClientGetResponse contains the response from method ObjectAnchorsAccountsClient.Get.
type ObjectAnchorsAccountsClientListByResourceGroupOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientListByResourceGroupOptions struct { }
ObjectAnchorsAccountsClientListByResourceGroupOptions contains the optional parameters for the ObjectAnchorsAccountsClient.ListByResourceGroup method.
type ObjectAnchorsAccountsClientListByResourceGroupResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientListByResourceGroupResponse struct {
ObjectAnchorsAccountPage
}
ObjectAnchorsAccountsClientListByResourceGroupResponse contains the response from method ObjectAnchorsAccountsClient.ListByResourceGroup.
type ObjectAnchorsAccountsClientListBySubscriptionOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientListBySubscriptionOptions struct { }
ObjectAnchorsAccountsClientListBySubscriptionOptions contains the optional parameters for the ObjectAnchorsAccountsClient.ListBySubscription method.
type ObjectAnchorsAccountsClientListBySubscriptionResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientListBySubscriptionResponse struct {
ObjectAnchorsAccountPage
}
ObjectAnchorsAccountsClientListBySubscriptionResponse contains the response from method ObjectAnchorsAccountsClient.ListBySubscription.
type ObjectAnchorsAccountsClientListKeysOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientListKeysOptions struct { }
ObjectAnchorsAccountsClientListKeysOptions contains the optional parameters for the ObjectAnchorsAccountsClient.ListKeys method.
type ObjectAnchorsAccountsClientListKeysResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientListKeysResponse struct {
AccountKeys
}
ObjectAnchorsAccountsClientListKeysResponse contains the response from method ObjectAnchorsAccountsClient.ListKeys.
type ObjectAnchorsAccountsClientRegenerateKeysOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientRegenerateKeysOptions struct { }
ObjectAnchorsAccountsClientRegenerateKeysOptions contains the optional parameters for the ObjectAnchorsAccountsClient.RegenerateKeys method.
type ObjectAnchorsAccountsClientRegenerateKeysResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientRegenerateKeysResponse struct {
AccountKeys
}
ObjectAnchorsAccountsClientRegenerateKeysResponse contains the response from method ObjectAnchorsAccountsClient.RegenerateKeys.
type ObjectAnchorsAccountsClientUpdateOptions ¶ added in v0.2.0
type ObjectAnchorsAccountsClientUpdateOptions struct { }
ObjectAnchorsAccountsClientUpdateOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Update method.
type ObjectAnchorsAccountsClientUpdateResponse ¶ added in v0.2.0
type ObjectAnchorsAccountsClientUpdateResponse struct {
ObjectAnchorsAccount
}
ObjectAnchorsAccountsClientUpdateResponse contains the response from method ObjectAnchorsAccountsClient.Update.
type Operation ¶
type Operation struct { // The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // Whether or not this is a data plane operation IsDataAction *bool `json:"isDataAction,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // The origin Origin *string `json:"origin,omitempty"` // Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` }
Operation - REST API operation
type OperationDisplay ¶
type OperationDisplay struct { // REQUIRED; Description of operation Description *string `json:"description,omitempty"` // REQUIRED; Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` // REQUIRED; Service provider: Microsoft.ResourceProvider Provider *string `json:"provider,omitempty"` // REQUIRED; Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The object that represents the operation.
type OperationPage ¶
type OperationPage struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of operations supported by the Resource Provider. Value []*Operation `json:"value,omitempty"` }
OperationPage - Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.
type OperationProperties ¶
type OperationProperties struct { // Service specification. ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationProperties - Operation properties.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Exposing Available Operations If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/proxy/ExposingAvailableOperations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationPage
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type RemoteRenderingAccount ¶
type RemoteRenderingAccount struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // The identity associated with this account Identity *Identity `json:"identity,omitempty"` // The kind of account, if supported Kind *SKU `json:"kind,omitempty"` // The plan associated with this account Plan *Identity `json:"plan,omitempty"` // Property bag. Properties *AccountProperties `json:"properties,omitempty"` // The sku associated with this account SKU *SKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; System metadata for this account SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
RemoteRenderingAccount Response.
func (RemoteRenderingAccount) MarshalJSON ¶
func (r RemoteRenderingAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RemoteRenderingAccount.
type RemoteRenderingAccountPage ¶
type RemoteRenderingAccountPage struct { // URL to get the next set of resource list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of resources supported by the Resource Provider. Value []*RemoteRenderingAccount `json:"value,omitempty"` }
RemoteRenderingAccountPage - Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.
type RemoteRenderingAccountsClient ¶
type RemoteRenderingAccountsClient struct {
// contains filtered or unexported fields
}
RemoteRenderingAccountsClient contains the methods for the RemoteRenderingAccounts group. Don't use this type directly, use NewRemoteRenderingAccountsClient() instead.
func NewRemoteRenderingAccountsClient ¶
func NewRemoteRenderingAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RemoteRenderingAccountsClient, error)
NewRemoteRenderingAccountsClient creates a new instance of RemoteRenderingAccountsClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RemoteRenderingAccountsClient) Create ¶
func (client *RemoteRenderingAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, remoteRenderingAccount RemoteRenderingAccount, options *RemoteRenderingAccountsClientCreateOptions) (RemoteRenderingAccountsClientCreateResponse, error)
Create - Creating or Updating a Remote Rendering Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. remoteRenderingAccount - Remote Rendering Account parameter. options - RemoteRenderingAccountsClientCreateOptions contains the optional parameters for the RemoteRenderingAccountsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Create(ctx, "MyResourceGroup", "MyAccount", armmixedreality.RemoteRenderingAccount{ Location: to.Ptr("eastus2euap"), Identity: &armmixedreality.Identity{ Type: to.Ptr("SystemAssigned"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RemoteRenderingAccountsClient) Delete ¶
func (client *RemoteRenderingAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, options *RemoteRenderingAccountsClientDeleteOptions) (RemoteRenderingAccountsClientDeleteResponse, error)
Delete - Delete a Remote Rendering Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - RemoteRenderingAccountsClientDeleteOptions contains the optional parameters for the RemoteRenderingAccountsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*RemoteRenderingAccountsClient) Get ¶
func (client *RemoteRenderingAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, options *RemoteRenderingAccountsClientGetOptions) (RemoteRenderingAccountsClientGetResponse, error)
Get - Retrieve a Remote Rendering Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - RemoteRenderingAccountsClientGetOptions contains the optional parameters for the RemoteRenderingAccountsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RemoteRenderingAccountsClient) ListKeys ¶
func (client *RemoteRenderingAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, options *RemoteRenderingAccountsClientListKeysOptions) (RemoteRenderingAccountsClientListKeysResponse, error)
ListKeys - List Both of the 2 Keys of a Remote Rendering Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - RemoteRenderingAccountsClientListKeysOptions contains the optional parameters for the RemoteRenderingAccountsClient.ListKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/ListKeys.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListKeys(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RemoteRenderingAccountsClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *RemoteRenderingAccountsClient) NewListByResourceGroupPager(resourceGroupName string, options *RemoteRenderingAccountsClientListByResourceGroupOptions) *runtime.Pager[RemoteRenderingAccountsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List Resources by Resource Group If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. options - RemoteRenderingAccountsClientListByResourceGroupOptions contains the optional parameters for the RemoteRenderingAccountsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/GetByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("MyResourceGroup", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*RemoteRenderingAccountsClient) NewListBySubscriptionPager ¶ added in v0.4.0
func (client *RemoteRenderingAccountsClient) NewListBySubscriptionPager(options *RemoteRenderingAccountsClientListBySubscriptionOptions) *runtime.Pager[RemoteRenderingAccountsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List Remote Rendering Accounts by Subscription If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview options - RemoteRenderingAccountsClientListBySubscriptionOptions contains the optional parameters for the RemoteRenderingAccountsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/GetBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*RemoteRenderingAccountsClient) RegenerateKeys ¶
func (client *RemoteRenderingAccountsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, accountName string, regenerate AccountKeyRegenerateRequest, options *RemoteRenderingAccountsClientRegenerateKeysOptions) (RemoteRenderingAccountsClientRegenerateKeysResponse, error)
RegenerateKeys - Regenerate specified Key of a Remote Rendering Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. regenerate - Required information for key regeneration. options - RemoteRenderingAccountsClientRegenerateKeysOptions contains the optional parameters for the RemoteRenderingAccountsClient.RegenerateKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/RegenerateKey.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.RegenerateKeys(ctx, "MyResourceGroup", "MyAccount", armmixedreality.AccountKeyRegenerateRequest{ Serial: to.Ptr(armmixedreality.SerialPrimary), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*RemoteRenderingAccountsClient) Update ¶
func (client *RemoteRenderingAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, remoteRenderingAccount RemoteRenderingAccount, options *RemoteRenderingAccountsClientUpdateOptions) (RemoteRenderingAccountsClientUpdateResponse, error)
Update - Updating a Remote Rendering Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. remoteRenderingAccount - Remote Rendering Account parameter. options - RemoteRenderingAccountsClientUpdateOptions contains the optional parameters for the RemoteRenderingAccountsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewRemoteRenderingAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "MyResourceGroup", "MyAccount", armmixedreality.RemoteRenderingAccount{ Location: to.Ptr("eastus2euap"), Tags: map[string]*string{ "hero": to.Ptr("romeo"), "heroine": to.Ptr("juliet"), }, Identity: &armmixedreality.Identity{ Type: to.Ptr("SystemAssigned"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type RemoteRenderingAccountsClientCreateOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientCreateOptions struct { }
RemoteRenderingAccountsClientCreateOptions contains the optional parameters for the RemoteRenderingAccountsClient.Create method.
type RemoteRenderingAccountsClientCreateResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientCreateResponse struct {
RemoteRenderingAccount
}
RemoteRenderingAccountsClientCreateResponse contains the response from method RemoteRenderingAccountsClient.Create.
type RemoteRenderingAccountsClientDeleteOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientDeleteOptions struct { }
RemoteRenderingAccountsClientDeleteOptions contains the optional parameters for the RemoteRenderingAccountsClient.Delete method.
type RemoteRenderingAccountsClientDeleteResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientDeleteResponse struct { }
RemoteRenderingAccountsClientDeleteResponse contains the response from method RemoteRenderingAccountsClient.Delete.
type RemoteRenderingAccountsClientGetOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientGetOptions struct { }
RemoteRenderingAccountsClientGetOptions contains the optional parameters for the RemoteRenderingAccountsClient.Get method.
type RemoteRenderingAccountsClientGetResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientGetResponse struct {
RemoteRenderingAccount
}
RemoteRenderingAccountsClientGetResponse contains the response from method RemoteRenderingAccountsClient.Get.
type RemoteRenderingAccountsClientListByResourceGroupOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientListByResourceGroupOptions struct { }
RemoteRenderingAccountsClientListByResourceGroupOptions contains the optional parameters for the RemoteRenderingAccountsClient.ListByResourceGroup method.
type RemoteRenderingAccountsClientListByResourceGroupResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientListByResourceGroupResponse struct {
RemoteRenderingAccountPage
}
RemoteRenderingAccountsClientListByResourceGroupResponse contains the response from method RemoteRenderingAccountsClient.ListByResourceGroup.
type RemoteRenderingAccountsClientListBySubscriptionOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientListBySubscriptionOptions struct { }
RemoteRenderingAccountsClientListBySubscriptionOptions contains the optional parameters for the RemoteRenderingAccountsClient.ListBySubscription method.
type RemoteRenderingAccountsClientListBySubscriptionResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientListBySubscriptionResponse struct {
RemoteRenderingAccountPage
}
RemoteRenderingAccountsClientListBySubscriptionResponse contains the response from method RemoteRenderingAccountsClient.ListBySubscription.
type RemoteRenderingAccountsClientListKeysOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientListKeysOptions struct { }
RemoteRenderingAccountsClientListKeysOptions contains the optional parameters for the RemoteRenderingAccountsClient.ListKeys method.
type RemoteRenderingAccountsClientListKeysResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientListKeysResponse struct {
AccountKeys
}
RemoteRenderingAccountsClientListKeysResponse contains the response from method RemoteRenderingAccountsClient.ListKeys.
type RemoteRenderingAccountsClientRegenerateKeysOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientRegenerateKeysOptions struct { }
RemoteRenderingAccountsClientRegenerateKeysOptions contains the optional parameters for the RemoteRenderingAccountsClient.RegenerateKeys method.
type RemoteRenderingAccountsClientRegenerateKeysResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientRegenerateKeysResponse struct {
AccountKeys
}
RemoteRenderingAccountsClientRegenerateKeysResponse contains the response from method RemoteRenderingAccountsClient.RegenerateKeys.
type RemoteRenderingAccountsClientUpdateOptions ¶ added in v0.2.0
type RemoteRenderingAccountsClientUpdateOptions struct { }
RemoteRenderingAccountsClientUpdateOptions contains the optional parameters for the RemoteRenderingAccountsClient.Update method.
type RemoteRenderingAccountsClientUpdateResponse ¶ added in v0.2.0
type RemoteRenderingAccountsClientUpdateResponse struct {
RemoteRenderingAccount
}
RemoteRenderingAccountsClientUpdateResponse contains the response from method RemoteRenderingAccountsClient.Update.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type SKU ¶
type SKU struct { // REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code Name *string `json:"name,omitempty"` // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the // resource this may be omitted. Capacity *int32 `json:"capacity,omitempty"` // If the service has different generations of hardware, for the same SKU, then that can be captured here. Family *string `json:"family,omitempty"` // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Size *string `json:"size,omitempty"` // This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required // on a PUT. Tier *SKUTier `json:"tier,omitempty"` }
SKU - The resource model definition representing SKU
type SKUTier ¶
type SKUTier string
SKUTier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
func PossibleSKUTierValues ¶
func PossibleSKUTierValues() []SKUTier
PossibleSKUTierValues returns the possible values for the SKUTier const type.
type Serial ¶
type Serial int32
Serial - Serial of key to be regenerated
func PossibleSerialValues ¶
func PossibleSerialValues() []Serial
PossibleSerialValues returns the possible values for the Serial const type.
type ServiceSpecification ¶
type ServiceSpecification struct { // Specifications of the Log for Azure Monitoring LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` // Specifications of the Metrics for Azure Monitoring MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` }
ServiceSpecification - Service specification payload
type SpatialAnchorsAccount ¶
type SpatialAnchorsAccount struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // The identity associated with this account Identity *Identity `json:"identity,omitempty"` // The kind of account, if supported Kind *SKU `json:"kind,omitempty"` // The plan associated with this account Plan *Identity `json:"plan,omitempty"` // Property bag. Properties *AccountProperties `json:"properties,omitempty"` // The sku associated with this account SKU *SKU `json:"sku,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; System metadata for this account SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
SpatialAnchorsAccount Response.
func (SpatialAnchorsAccount) MarshalJSON ¶
func (s SpatialAnchorsAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SpatialAnchorsAccount.
type SpatialAnchorsAccountPage ¶
type SpatialAnchorsAccountPage struct { // URL to get the next set of resource list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of resources supported by the Resource Provider. Value []*SpatialAnchorsAccount `json:"value,omitempty"` }
SpatialAnchorsAccountPage - Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.
type SpatialAnchorsAccountsClient ¶
type SpatialAnchorsAccountsClient struct {
// contains filtered or unexported fields
}
SpatialAnchorsAccountsClient contains the methods for the SpatialAnchorsAccounts group. Don't use this type directly, use NewSpatialAnchorsAccountsClient() instead.
func NewSpatialAnchorsAccountsClient ¶
func NewSpatialAnchorsAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SpatialAnchorsAccountsClient, error)
NewSpatialAnchorsAccountsClient creates a new instance of SpatialAnchorsAccountsClient with the specified values. subscriptionID - The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SpatialAnchorsAccountsClient) Create ¶
func (client *SpatialAnchorsAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, spatialAnchorsAccount SpatialAnchorsAccount, options *SpatialAnchorsAccountsClientCreateOptions) (SpatialAnchorsAccountsClientCreateResponse, error)
Create - Creating or Updating a Spatial Anchors Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. spatialAnchorsAccount - Spatial Anchors Account parameter. options - SpatialAnchorsAccountsClientCreateOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Create(ctx, "MyResourceGroup", "MyAccount", armmixedreality.SpatialAnchorsAccount{ Location: to.Ptr("eastus2euap"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SpatialAnchorsAccountsClient) Delete ¶
func (client *SpatialAnchorsAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, options *SpatialAnchorsAccountsClientDeleteOptions) (SpatialAnchorsAccountsClientDeleteResponse, error)
Delete - Delete a Spatial Anchors Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - SpatialAnchorsAccountsClientDeleteOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*SpatialAnchorsAccountsClient) Get ¶
func (client *SpatialAnchorsAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, options *SpatialAnchorsAccountsClientGetOptions) (SpatialAnchorsAccountsClientGetResponse, error)
Get - Retrieve a Spatial Anchors Account. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - SpatialAnchorsAccountsClientGetOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SpatialAnchorsAccountsClient) ListKeys ¶
func (client *SpatialAnchorsAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, options *SpatialAnchorsAccountsClientListKeysOptions) (SpatialAnchorsAccountsClientListKeysResponse, error)
ListKeys - List Both of the 2 Keys of a Spatial Anchors Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. options - SpatialAnchorsAccountsClientListKeysOptions contains the optional parameters for the SpatialAnchorsAccountsClient.ListKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/ListKeys.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListKeys(ctx, "MyResourceGroup", "MyAccount", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SpatialAnchorsAccountsClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *SpatialAnchorsAccountsClient) NewListByResourceGroupPager(resourceGroupName string, options *SpatialAnchorsAccountsClientListByResourceGroupOptions) *runtime.Pager[SpatialAnchorsAccountsClientListByResourceGroupResponse]
NewListByResourceGroupPager - List Resources by Resource Group If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. options - SpatialAnchorsAccountsClientListByResourceGroupOptions contains the optional parameters for the SpatialAnchorsAccountsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/GetByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("MyResourceGroup", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SpatialAnchorsAccountsClient) NewListBySubscriptionPager ¶ added in v0.4.0
func (client *SpatialAnchorsAccountsClient) NewListBySubscriptionPager(options *SpatialAnchorsAccountsClientListBySubscriptionOptions) *runtime.Pager[SpatialAnchorsAccountsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List Spatial Anchors Accounts by Subscription If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview options - SpatialAnchorsAccountsClientListBySubscriptionOptions contains the optional parameters for the SpatialAnchorsAccountsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/GetBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SpatialAnchorsAccountsClient) RegenerateKeys ¶
func (client *SpatialAnchorsAccountsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, accountName string, regenerate AccountKeyRegenerateRequest, options *SpatialAnchorsAccountsClientRegenerateKeysOptions) (SpatialAnchorsAccountsClientRegenerateKeysResponse, error)
RegenerateKeys - Regenerate specified Key of a Spatial Anchors Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. regenerate - Required information for key regeneration. options - SpatialAnchorsAccountsClientRegenerateKeysOptions contains the optional parameters for the SpatialAnchorsAccountsClient.RegenerateKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/RegenerateKey.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.RegenerateKeys(ctx, "MyResourceGroup", "MyAccount", armmixedreality.AccountKeyRegenerateRequest{ Serial: to.Ptr(armmixedreality.SerialPrimary), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SpatialAnchorsAccountsClient) Update ¶
func (client *SpatialAnchorsAccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, spatialAnchorsAccount SpatialAnchorsAccount, options *SpatialAnchorsAccountsClientUpdateOptions) (SpatialAnchorsAccountsClientUpdateResponse, error)
Update - Updating a Spatial Anchors Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-03-01-preview resourceGroupName - Name of an Azure resource group. accountName - Name of an Mixed Reality Account. spatialAnchorsAccount - Spatial Anchors Account parameter. options - SpatialAnchorsAccountsClientUpdateOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmixedreality.NewSpatialAnchorsAccountsClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "MyResourceGroup", "MyAccount", armmixedreality.SpatialAnchorsAccount{ Location: to.Ptr("eastus2euap"), Tags: map[string]*string{ "hero": to.Ptr("romeo"), "heroine": to.Ptr("juliet"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type SpatialAnchorsAccountsClientCreateOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientCreateOptions struct { }
SpatialAnchorsAccountsClientCreateOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Create method.
type SpatialAnchorsAccountsClientCreateResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientCreateResponse struct {
SpatialAnchorsAccount
}
SpatialAnchorsAccountsClientCreateResponse contains the response from method SpatialAnchorsAccountsClient.Create.
type SpatialAnchorsAccountsClientDeleteOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientDeleteOptions struct { }
SpatialAnchorsAccountsClientDeleteOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Delete method.
type SpatialAnchorsAccountsClientDeleteResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientDeleteResponse struct { }
SpatialAnchorsAccountsClientDeleteResponse contains the response from method SpatialAnchorsAccountsClient.Delete.
type SpatialAnchorsAccountsClientGetOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientGetOptions struct { }
SpatialAnchorsAccountsClientGetOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Get method.
type SpatialAnchorsAccountsClientGetResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientGetResponse struct {
SpatialAnchorsAccount
}
SpatialAnchorsAccountsClientGetResponse contains the response from method SpatialAnchorsAccountsClient.Get.
type SpatialAnchorsAccountsClientListByResourceGroupOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientListByResourceGroupOptions struct { }
SpatialAnchorsAccountsClientListByResourceGroupOptions contains the optional parameters for the SpatialAnchorsAccountsClient.ListByResourceGroup method.
type SpatialAnchorsAccountsClientListByResourceGroupResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientListByResourceGroupResponse struct {
SpatialAnchorsAccountPage
}
SpatialAnchorsAccountsClientListByResourceGroupResponse contains the response from method SpatialAnchorsAccountsClient.ListByResourceGroup.
type SpatialAnchorsAccountsClientListBySubscriptionOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientListBySubscriptionOptions struct { }
SpatialAnchorsAccountsClientListBySubscriptionOptions contains the optional parameters for the SpatialAnchorsAccountsClient.ListBySubscription method.
type SpatialAnchorsAccountsClientListBySubscriptionResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientListBySubscriptionResponse struct {
SpatialAnchorsAccountPage
}
SpatialAnchorsAccountsClientListBySubscriptionResponse contains the response from method SpatialAnchorsAccountsClient.ListBySubscription.
type SpatialAnchorsAccountsClientListKeysOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientListKeysOptions struct { }
SpatialAnchorsAccountsClientListKeysOptions contains the optional parameters for the SpatialAnchorsAccountsClient.ListKeys method.
type SpatialAnchorsAccountsClientListKeysResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientListKeysResponse struct {
AccountKeys
}
SpatialAnchorsAccountsClientListKeysResponse contains the response from method SpatialAnchorsAccountsClient.ListKeys.
type SpatialAnchorsAccountsClientRegenerateKeysOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientRegenerateKeysOptions struct { }
SpatialAnchorsAccountsClientRegenerateKeysOptions contains the optional parameters for the SpatialAnchorsAccountsClient.RegenerateKeys method.
type SpatialAnchorsAccountsClientRegenerateKeysResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientRegenerateKeysResponse struct {
AccountKeys
}
SpatialAnchorsAccountsClientRegenerateKeysResponse contains the response from method SpatialAnchorsAccountsClient.RegenerateKeys.
type SpatialAnchorsAccountsClientUpdateOptions ¶ added in v0.2.0
type SpatialAnchorsAccountsClientUpdateOptions struct { }
SpatialAnchorsAccountsClientUpdateOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Update method.
type SpatialAnchorsAccountsClientUpdateResponse ¶ added in v0.2.0
type SpatialAnchorsAccountsClientUpdateResponse struct {
SpatialAnchorsAccount
}
SpatialAnchorsAccountsClientUpdateResponse contains the response from method SpatialAnchorsAccountsClient.Update.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
Source Files ¶
- build.go
- zz_generated_client.go
- zz_generated_constants.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_objectanchorsaccounts_client.go
- zz_generated_operations_client.go
- zz_generated_remoterenderingaccounts_client.go
- zz_generated_response_types.go
- zz_generated_spatialanchorsaccounts_client.go
- zz_generated_time_rfc3339.go