diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/CHANGELOG.md b/sdk/resourcemanager/mixedreality/armmixedreality/CHANGELOG.md index 26c0832c442e..e0386c9d2e49 100644 --- a/sdk/resourcemanager/mixedreality/armmixedreality/CHANGELOG.md +++ b/sdk/resourcemanager/mixedreality/armmixedreality/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 0.6.1 (2023-05-31) +### Other Changes + + ## 0.6.0 (2023-03-31) ### Features Added diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/autorest.md b/sdk/resourcemanager/mixedreality/armmixedreality/autorest.md index 08f0a01be0d0..9d1a5a008a9a 100644 --- a/sdk/resourcemanager/mixedreality/armmixedreality/autorest.md +++ b/sdk/resourcemanager/mixedreality/armmixedreality/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.6.0 +module-version: 0.6.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/client_example_test.go b/sdk/resourcemanager/mixedreality/armmixedreality/client_example_test.go deleted file mode 100644 index caa43950ed14..000000000000 --- a/sdk/resourcemanager/mixedreality/armmixedreality/client_example_test.go +++ /dev/null @@ -1,47 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armmixedreality_test - -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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json -func ExampleClient_CheckNameAvailabilityLocal() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CheckNameAvailabilityResponse = armmixedreality.CheckNameAvailabilityResponse{ - // Message: to.Ptr("..."), - // NameAvailable: to.Ptr(false), - // Reason: to.Ptr(armmixedreality.NameUnavailableReasonAlreadyExists), - // } -} diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/constants.go b/sdk/resourcemanager/mixedreality/armmixedreality/constants.go index d1baa630b9f2..bfa9ca668f0e 100644 --- a/sdk/resourcemanager/mixedreality/armmixedreality/constants.go +++ b/sdk/resourcemanager/mixedreality/armmixedreality/constants.go @@ -11,7 +11,7 @@ package armmixedreality const ( moduleName = "armmixedreality" - moduleVersion = "v0.6.0" + moduleVersion = "v0.6.1" ) // CreatedByType - The type of identity that created the resource. diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/go.mod b/sdk/resourcemanager/mixedreality/armmixedreality/go.mod index aeb3923eba63..721594b0add3 100644 --- a/sdk/resourcemanager/mixedreality/armmixedreality/go.mod +++ b/sdk/resourcemanager/mixedreality/armmixedreality/go.mod @@ -2,20 +2,12 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmix go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect - golang.org/x/crypto v0.6.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect golang.org/x/net v0.7.0 // indirect - golang.org/x/sys v0.5.0 // indirect golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/go.sum b/sdk/resourcemanager/mixedreality/armmixedreality/go.sum index 8ba445a8c4da..b6bd7eaad1ba 100644 --- a/sdk/resourcemanager/mixedreality/armmixedreality/go.sum +++ b/sdk/resourcemanager/mixedreality/armmixedreality/go.sum @@ -1,31 +1,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 h1:UE9n9rkJF62ArLb1F3DEjRt8O3jLwMWdSoypKV4f3MU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/models.go b/sdk/resourcemanager/mixedreality/armmixedreality/models.go index 2a72c64693d6..944bb890fc05 100644 --- a/sdk/resourcemanager/mixedreality/armmixedreality/models.go +++ b/sdk/resourcemanager/mixedreality/armmixedreality/models.go @@ -14,49 +14,49 @@ import "time" // AccountKeyRegenerateRequest - Request for account key regeneration type AccountKeyRegenerateRequest struct { // Serial of key to be regenerated - Serial *Serial `json:"serial,omitempty"` + Serial *Serial } // AccountKeys - Developer Keys of account type AccountKeys struct { // READ-ONLY; value of primary key. - PrimaryKey *string `json:"primaryKey,omitempty" azure:"ro"` + PrimaryKey *string // READ-ONLY; value of secondary key. - SecondaryKey *string `json:"secondaryKey,omitempty" azure:"ro"` + SecondaryKey *string } // AccountProperties - Common Properties shared by Mixed Reality Accounts type AccountProperties struct { // The name of the storage account associated with this accountId - StorageAccountName *string `json:"storageAccountName,omitempty"` + StorageAccountName *string // READ-ONLY; Correspond domain name of certain Spatial Anchors Account - AccountDomain *string `json:"accountDomain,omitempty" azure:"ro"` + AccountDomain *string // READ-ONLY; unique id of certain account. - AccountID *string `json:"accountId,omitempty" azure:"ro"` + AccountID *string } // CheckNameAvailabilityRequest - Check Name Availability Request type CheckNameAvailabilityRequest struct { // REQUIRED; Resource Name To Verify - Name *string `json:"name,omitempty"` + Name *string // REQUIRED; Fully qualified resource type which includes provider namespace - Type *string `json:"type,omitempty"` + Type *string } // CheckNameAvailabilityResponse - Check Name Availability Response type CheckNameAvailabilityResponse struct { // REQUIRED; if name Available - NameAvailable *bool `json:"nameAvailable,omitempty"` + NameAvailable *bool // detail message - Message *string `json:"message,omitempty"` + Message *string // Resource Name To Verify - Reason *NameUnavailableReason `json:"reason,omitempty"` + Reason *NameUnavailableReason } // ClientCheckNameAvailabilityLocalOptions contains the optional parameters for the Client.CheckNameAvailabilityLocal method. @@ -67,146 +67,146 @@ type ClientCheckNameAvailabilityLocalOptions struct { // Identity for the resource. type Identity struct { // The identity type. - Type *string `json:"type,omitempty"` + Type *string // READ-ONLY; The principal ID of resource identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant ID of resource. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // LogSpecification - Specifications of the Log for Azure Monitoring type LogSpecification struct { // Blob duration of the log - BlobDuration *string `json:"blobDuration,omitempty"` + BlobDuration *string // Localized friendly display name of the log - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Name of the log - Name *string `json:"name,omitempty"` + Name *string } // MetricDimension - Specifications of the Dimension of metrics type MetricDimension struct { // Localized friendly display name of the dimension - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Internal name of the dimension. - InternalName *string `json:"internalName,omitempty"` + InternalName *string // Name of the dimension - Name *string `json:"name,omitempty"` + Name *string // Flag to indicate export for Shoebox - ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` + ToBeExportedForShoebox *bool } // MetricSpecification - Specifications of the Metrics for Azure Monitoring type MetricSpecification struct { // Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. - AggregationType *string `json:"aggregationType,omitempty"` + AggregationType *string // Metric category - Category *string `json:"category,omitempty"` + Category *string // Dimensions of the metric - Dimensions []*MetricDimension `json:"dimensions,omitempty"` + Dimensions []*MetricDimension // Localized friendly description of the metric - DisplayDescription *string `json:"displayDescription,omitempty"` + DisplayDescription *string // Localized friendly display name of the metric - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string // Flag to indicate use of regional Mdm accounts - EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` + EnableRegionalMdmAccount *bool // Flag to determine is Zero is returned for time duration where no metric is emitted - FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + FillGapWithZero *bool // Internal metric name. - InternalMetricName *string `json:"internalMetricName,omitempty"` + InternalMetricName *string // Locked aggregation type of the metric - LockedAggregationType *string `json:"lockedAggregationType,omitempty"` + LockedAggregationType *string // Metric filter regex pattern - MetricFilterPattern *string `json:"metricFilterPattern,omitempty"` + MetricFilterPattern *string // Name of the metric - Name *string `json:"name,omitempty"` + Name *string // Source mdm account - SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + SourceMdmAccount *string // Source mdm namespace - SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + SourceMdmNamespace *string // Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count. - SupportedAggregationTypes []*string `json:"supportedAggregationTypes,omitempty"` + SupportedAggregationTypes []*string // Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D - SupportedTimeGrainTypes []*string `json:"supportedTimeGrainTypes,omitempty"` + SupportedTimeGrainTypes []*string // Unit that makes sense for the metric - Unit *string `json:"unit,omitempty"` + Unit *string } // ObjectAnchorsAccount Response. type ObjectAnchorsAccount struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` - Identity *ObjectAnchorsAccountIdentity `json:"identity,omitempty"` + Location *string + Identity *ObjectAnchorsAccountIdentity // The kind of account, if supported - Kind *SKU `json:"kind,omitempty"` + Kind *SKU // The plan associated with this account - Plan *Identity `json:"plan,omitempty"` + Plan *Identity // Property bag. - Properties *AccountProperties `json:"properties,omitempty"` + Properties *AccountProperties // The sku associated with this account - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // 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"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The system metadata related to an object anchors account. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } type ObjectAnchorsAccountIdentity struct { // The identity type. - Type *string `json:"type,omitempty"` + Type *string // READ-ONLY; The principal ID of resource identity. - PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + PrincipalID *string // READ-ONLY; The tenant ID of resource. - TenantID *string `json:"tenantId,omitempty" azure:"ro"` + TenantID *string } // 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 ObjectAnchorsAccountPage struct { // URL to get the next set of resource list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of resources supported by the Resource Provider. - Value []*ObjectAnchorsAccount `json:"value,omitempty"` + Value []*ObjectAnchorsAccount } // ObjectAnchorsAccountsClientCreateOptions contains the optional parameters for the ObjectAnchorsAccountsClient.Create method. @@ -256,50 +256,50 @@ type ObjectAnchorsAccountsClientUpdateOptions struct { // Operation - REST API operation type Operation struct { // The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + Display *OperationDisplay // Whether or not this is a data plane operation - IsDataAction *bool `json:"isDataAction,omitempty"` + IsDataAction *bool // Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` + Name *string // The origin - Origin *string `json:"origin,omitempty"` + Origin *string // Properties of the operation - Properties *OperationProperties `json:"properties,omitempty"` + Properties *OperationProperties } // OperationDisplay - The object that represents the operation. type OperationDisplay struct { // REQUIRED; Description of operation - Description *string `json:"description,omitempty"` + Description *string // REQUIRED; Operation type: Read, write, delete, etc. - Operation *string `json:"operation,omitempty"` + Operation *string // REQUIRED; Service provider: Microsoft.ResourceProvider - Provider *string `json:"provider,omitempty"` + Provider *string // REQUIRED; Resource on which the operation is performed: Profile, endpoint, etc. - Resource *string `json:"resource,omitempty"` + Resource *string } // 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 OperationPage struct { // URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of operations supported by the Resource Provider. - Value []*Operation `json:"value,omitempty"` + Value []*Operation } // OperationProperties - Operation properties. type OperationProperties struct { // Service specification. - ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` + ServiceSpecification *ServiceSpecification } // OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. @@ -310,47 +310,47 @@ type OperationsClientListOptions struct { // RemoteRenderingAccount Response. type RemoteRenderingAccount struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // The identity associated with this account - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The kind of account, if supported - Kind *SKU `json:"kind,omitempty"` + Kind *SKU // The plan associated with this account - Plan *Identity `json:"plan,omitempty"` + Plan *Identity // Property bag. - Properties *AccountProperties `json:"properties,omitempty"` + Properties *AccountProperties // The sku associated with this account - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // 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"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; System metadata for this account - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // 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 RemoteRenderingAccountPage struct { // URL to get the next set of resource list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of resources supported by the Resource Provider. - Value []*RemoteRenderingAccount `json:"value,omitempty"` + Value []*RemoteRenderingAccount } // RemoteRenderingAccountsClientCreateOptions contains the optional parameters for the RemoteRenderingAccountsClient.Create @@ -403,88 +403,88 @@ type RemoteRenderingAccountsClientUpdateOptions struct { // Resource - Common fields that are returned in the response for all Azure Resource Manager resources 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"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // SKU - The resource model definition representing SKU type SKU struct { // REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code - Name *string `json:"name,omitempty"` + Name *string // 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"` + Capacity *int32 // If the service has different generations of hardware, for the same SKU, then that can be captured here. - Family *string `json:"family,omitempty"` + Family *string // 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"` + Size *string // 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"` + Tier *SKUTier } // ServiceSpecification - Service specification payload type ServiceSpecification struct { // Specifications of the Log for Azure Monitoring - LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` + LogSpecifications []*LogSpecification // Specifications of the Metrics for Azure Monitoring - MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` + MetricSpecifications []*MetricSpecification } // SpatialAnchorsAccount Response. type SpatialAnchorsAccount struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // The identity associated with this account - Identity *Identity `json:"identity,omitempty"` + Identity *Identity // The kind of account, if supported - Kind *SKU `json:"kind,omitempty"` + Kind *SKU // The plan associated with this account - Plan *Identity `json:"plan,omitempty"` + Plan *Identity // Property bag. - Properties *AccountProperties `json:"properties,omitempty"` + Properties *AccountProperties // The sku associated with this account - SKU *SKU `json:"sku,omitempty"` + SKU *SKU // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // 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"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; System metadata for this account - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } // 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 SpatialAnchorsAccountPage struct { // URL to get the next set of resource list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + NextLink *string // List of resources supported by the Resource Provider. - Value []*SpatialAnchorsAccount `json:"value,omitempty"` + Value []*SpatialAnchorsAccount } // SpatialAnchorsAccountsClientCreateOptions contains the optional parameters for the SpatialAnchorsAccountsClient.Create @@ -537,39 +537,39 @@ type SpatialAnchorsAccountsClientUpdateOptions struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAt *time.Time // The identity that created the resource. - CreatedBy *string `json:"createdBy,omitempty"` + CreatedBy *string // The type of identity that created the resource. - CreatedByType *CreatedByType `json:"createdByType,omitempty"` + CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) - LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + LastModifiedAt *time.Time // The identity that last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + LastModifiedBy *string // The type of identity that last modified the resource. - LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` + LastModifiedByType *CreatedByType } // TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' // and a 'location' type TrackedResource struct { // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` + Location *string // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` + Tags map[string]*string // 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"` + ID *string // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` + Name *string // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` + Type *string } diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/objectanchorsaccounts_client_example_test.go b/sdk/resourcemanager/mixedreality/armmixedreality/objectanchorsaccounts_client_example_test.go deleted file mode 100644 index edd4883b3e9b..000000000000 --- a/sdk/resourcemanager/mixedreality/armmixedreality/objectanchorsaccounts_client_example_test.go +++ /dev/null @@ -1,323 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armmixedreality_test - -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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/GetBySubscription.json -func ExampleObjectAnchorsAccountsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewObjectAnchorsAccountsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ObjectAnchorsAccountPage = armmixedreality.ObjectAnchorsAccountPage{ - // Value: []*armmixedreality.ObjectAnchorsAccount{ - // { - // Name: to.Ptr("alpha"), - // Type: to.Ptr("Microsoft.MixedReality/objectAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/alpha"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }, - // { - // Name: to.Ptr("omega"), - // Type: to.Ptr("Microsoft.MixedReality/objectAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/omega"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/GetByResourceGroup.json -func ExampleObjectAnchorsAccountsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewObjectAnchorsAccountsClient().NewListByResourceGroupPager("MyResourceGroup", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ObjectAnchorsAccountPage = armmixedreality.ObjectAnchorsAccountPage{ - // Value: []*armmixedreality.ObjectAnchorsAccount{ - // { - // Name: to.Ptr("alpha"), - // Type: to.Ptr("Microsoft.MixedReality/objectAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/alpha"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }, - // { - // Name: to.Ptr("omega"), - // Type: to.Ptr("Microsoft.MixedReality/objectAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/omega"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Delete.json -func ExampleObjectAnchorsAccountsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewObjectAnchorsAccountsClient().Delete(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Get.json -func ExampleObjectAnchorsAccountsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewObjectAnchorsAccountsClient().Get(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ObjectAnchorsAccount = armmixedreality.ObjectAnchorsAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/objectAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Patch.json -func ExampleObjectAnchorsAccountsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewObjectAnchorsAccountsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ObjectAnchorsAccount = armmixedreality.ObjectAnchorsAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/objectAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // "hero": to.Ptr("romeo"), - // "heroine": to.Ptr("juliet"), - // }, - // Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Put.json -func ExampleObjectAnchorsAccountsClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewObjectAnchorsAccountsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ObjectAnchorsAccount = armmixedreality.ObjectAnchorsAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/objectAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/objectAnchorsAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.ObjectAnchorsAccountIdentity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/ListKeys.json -func ExampleObjectAnchorsAccountsClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewObjectAnchorsAccountsClient().ListKeys(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AccountKeys = armmixedreality.AccountKeys{ - // PrimaryKey: to.Ptr("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), - // SecondaryKey: to.Ptr("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/RegenerateKey.json -func ExampleObjectAnchorsAccountsClient_RegenerateKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewObjectAnchorsAccountsClient().RegenerateKeys(ctx, "MyResourceGroup", "MyAccount", armmixedreality.AccountKeyRegenerateRequest{ - Serial: to.Ptr(armmixedreality.SerialPrimary), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AccountKeys = armmixedreality.AccountKeys{ - // PrimaryKey: to.Ptr("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), - // SecondaryKey: to.Ptr("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), - // } -} diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/operations_client_example_test.go b/sdk/resourcemanager/mixedreality/armmixedreality/operations_client_example_test.go deleted file mode 100644 index fd2bd133b554..000000000000 --- a/sdk/resourcemanager/mixedreality/armmixedreality/operations_client_example_test.go +++ /dev/null @@ -1,82 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armmixedreality_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mixedreality/armmixedreality" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/proxy/ExposingAvailableOperations.json -func ExampleOperationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewOperationsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.OperationPage = armmixedreality.OperationPage{ - // Value: []*armmixedreality.Operation{ - // { - // Name: to.Ptr("Microsoft.MixedReality/register/action"), - // Display: &armmixedreality.OperationDisplay{ - // Description: to.Ptr("Registers a subscription for the Mixed Reality resource provider."), - // Operation: to.Ptr("Registers the Mixed Reality resource provider"), - // Provider: to.Ptr("Microsoft.MixedReality"), - // Resource: to.Ptr("Mixed Reality resource provider"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.MixedReality/SpatialAnchorsAccounts/delete"), - // Display: &armmixedreality.OperationDisplay{ - // Description: to.Ptr("Deletes the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"), - // Operation: to.Ptr("Delete Spatial Anchors Accounts"), - // Provider: to.Ptr("Microsoft.MixedReality"), - // Resource: to.Ptr("SpatialAnchorsAccounts"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.MixedReality/SpatialAnchorsAccounts/read"), - // Display: &armmixedreality.OperationDisplay{ - // Description: to.Ptr("Gets the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"), - // Operation: to.Ptr("Get Spatial Anchors Accounts"), - // Provider: to.Ptr("Microsoft.MixedReality"), - // Resource: to.Ptr("SpatialAnchorsAccounts"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.MixedReality/SpatialAnchorsAccounts/write"), - // Display: &armmixedreality.OperationDisplay{ - // Description: to.Ptr("Updates the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"), - // Operation: to.Ptr("Update Spatial Anchors Accounts"), - // Provider: to.Ptr("Microsoft.MixedReality"), - // Resource: to.Ptr("SpatialAnchorsAccounts"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/remoterenderingaccounts_client_example_test.go b/sdk/resourcemanager/mixedreality/armmixedreality/remoterenderingaccounts_client_example_test.go deleted file mode 100644 index 44573c1b4a25..000000000000 --- a/sdk/resourcemanager/mixedreality/armmixedreality/remoterenderingaccounts_client_example_test.go +++ /dev/null @@ -1,323 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armmixedreality_test - -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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/GetBySubscription.json -func ExampleRemoteRenderingAccountsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewRemoteRenderingAccountsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.RemoteRenderingAccountPage = armmixedreality.RemoteRenderingAccountPage{ - // Value: []*armmixedreality.RemoteRenderingAccount{ - // { - // Name: to.Ptr("alpha"), - // Type: to.Ptr("Microsoft.MixedReality/remoteRenderingAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/alpha"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.Identity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }, - // { - // Name: to.Ptr("omega"), - // Type: to.Ptr("Microsoft.MixedReality/remoteRenderingAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/omega"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.Identity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/GetByResourceGroup.json -func ExampleRemoteRenderingAccountsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewRemoteRenderingAccountsClient().NewListByResourceGroupPager("MyResourceGroup", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.RemoteRenderingAccountPage = armmixedreality.RemoteRenderingAccountPage{ - // Value: []*armmixedreality.RemoteRenderingAccount{ - // { - // Name: to.Ptr("alpha"), - // Type: to.Ptr("Microsoft.MixedReality/remoteRenderingAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/alpha"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.Identity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }, - // { - // Name: to.Ptr("omega"), - // Type: to.Ptr("Microsoft.MixedReality/remoteRenderingAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/omega"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.Identity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Delete.json -func ExampleRemoteRenderingAccountsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewRemoteRenderingAccountsClient().Delete(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Get.json -func ExampleRemoteRenderingAccountsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRemoteRenderingAccountsClient().Get(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemoteRenderingAccount = armmixedreality.RemoteRenderingAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/remoteRenderingAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.Identity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Patch.json -func ExampleRemoteRenderingAccountsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRemoteRenderingAccountsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemoteRenderingAccount = armmixedreality.RemoteRenderingAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/remoteRenderingAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // "hero": to.Ptr("romeo"), - // "heroine": to.Ptr("juliet"), - // }, - // Identity: &armmixedreality.Identity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Put.json -func ExampleRemoteRenderingAccountsClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRemoteRenderingAccountsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemoteRenderingAccount = armmixedreality.RemoteRenderingAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/remoteRenderingAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Identity: &armmixedreality.Identity{ - // Type: to.Ptr("SystemAssigned"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/ListKeys.json -func ExampleRemoteRenderingAccountsClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRemoteRenderingAccountsClient().ListKeys(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AccountKeys = armmixedreality.AccountKeys{ - // PrimaryKey: to.Ptr(""), - // SecondaryKey: to.Ptr(""), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/RegenerateKey.json -func ExampleRemoteRenderingAccountsClient_RegenerateKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRemoteRenderingAccountsClient().RegenerateKeys(ctx, "MyResourceGroup", "MyAccount", armmixedreality.AccountKeyRegenerateRequest{ - Serial: to.Ptr(armmixedreality.SerialPrimary), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AccountKeys = armmixedreality.AccountKeys{ - // PrimaryKey: to.Ptr("************"), - // SecondaryKey: to.Ptr("************"), - // } -} diff --git a/sdk/resourcemanager/mixedreality/armmixedreality/spatialanchorsaccounts_client_example_test.go b/sdk/resourcemanager/mixedreality/armmixedreality/spatialanchorsaccounts_client_example_test.go deleted file mode 100644 index 414b281c6821..000000000000 --- a/sdk/resourcemanager/mixedreality/armmixedreality/spatialanchorsaccounts_client_example_test.go +++ /dev/null @@ -1,296 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armmixedreality_test - -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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/GetBySubscription.json -func ExampleSpatialAnchorsAccountsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewSpatialAnchorsAccountsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SpatialAnchorsAccountPage = armmixedreality.SpatialAnchorsAccountPage{ - // Value: []*armmixedreality.SpatialAnchorsAccount{ - // { - // Name: to.Ptr("alpha"), - // Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/alpha"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }, - // { - // Name: to.Ptr("omega"), - // Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/omega"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/GetByResourceGroup.json -func ExampleSpatialAnchorsAccountsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewSpatialAnchorsAccountsClient().NewListByResourceGroupPager("MyResourceGroup", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SpatialAnchorsAccountPage = armmixedreality.SpatialAnchorsAccountPage{ - // Value: []*armmixedreality.SpatialAnchorsAccount{ - // { - // Name: to.Ptr("alpha"), - // Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/alpha"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }, - // { - // Name: to.Ptr("omega"), - // Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/omega"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Delete.json -func ExampleSpatialAnchorsAccountsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewSpatialAnchorsAccountsClient().Delete(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Get.json -func ExampleSpatialAnchorsAccountsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSpatialAnchorsAccountsClient().Get(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SpatialAnchorsAccount = armmixedreality.SpatialAnchorsAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Patch.json -func ExampleSpatialAnchorsAccountsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSpatialAnchorsAccountsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SpatialAnchorsAccount = armmixedreality.SpatialAnchorsAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // "hero": to.Ptr("romeo"), - // "heroine": to.Ptr("juliet"), - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/Put.json -func ExampleSpatialAnchorsAccountsClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSpatialAnchorsAccountsClient().Create(ctx, "MyResourceGroup", "MyAccount", armmixedreality.SpatialAnchorsAccount{ - Location: to.Ptr("eastus2euap"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SpatialAnchorsAccount = armmixedreality.SpatialAnchorsAccount{ - // Name: to.Ptr("MyAccount"), - // Type: to.Ptr("Microsoft.MixedReality/spatialAnchorsAccounts"), - // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount"), - // Location: to.Ptr("eastus2euap"), - // Tags: map[string]*string{ - // }, - // Properties: &armmixedreality.AccountProperties{ - // AccountDomain: to.Ptr("mixedreality.azure.com"), - // AccountID: to.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/ListKeys.json -func ExampleSpatialAnchorsAccountsClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSpatialAnchorsAccountsClient().ListKeys(ctx, "MyResourceGroup", "MyAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AccountKeys = armmixedreality.AccountKeys{ - // PrimaryKey: to.Ptr("************"), - // SecondaryKey: to.Ptr("************"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/spatial-anchors/RegenerateKey.json -func ExampleSpatialAnchorsAccountsClient_RegenerateKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armmixedreality.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSpatialAnchorsAccountsClient().RegenerateKeys(ctx, "MyResourceGroup", "MyAccount", armmixedreality.AccountKeyRegenerateRequest{ - Serial: to.Ptr(armmixedreality.SerialPrimary), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AccountKeys = armmixedreality.AccountKeys{ - // PrimaryKey: to.Ptr("************"), - // SecondaryKey: to.Ptr("************"), - // } -}