From 433597849a897c8573994cbd81a883a18366aa06 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 3 Apr 2023 21:04:22 +0000 Subject: [PATCH] CodeGen from PR 23410 in Azure/azure-rest-api-specs Merge 227885777001a4e81587b67b5d68d27094b5b0a1 into 06dbe269f7d9c709cc225c92358b38c3c2b74d60 --- .../dashboard/armdashboard/CHANGELOG.md | 6 + .../dashboard/armdashboard/autorest.md | 6 +- .../dashboard/armdashboard/constants.go | 2 +- .../dashboard/armdashboard/go.mod | 14 +- .../dashboard/armdashboard/go.sum | 22 +- .../dashboard/armdashboard/grafana_client.go | 3 + .../grafana_client_example_test.go | 367 ------------------ .../operations_client_example_test.go | 57 --- ...endpointconnections_client_example_test.go | 144 ------- ...rivatelinkresources_client_example_test.go | 90 ----- .../dashboard/armdashboard/response_types.go | 2 + 11 files changed, 21 insertions(+), 692 deletions(-) delete mode 100644 sdk/resourcemanager/dashboard/armdashboard/grafana_client_example_test.go delete mode 100644 sdk/resourcemanager/dashboard/armdashboard/operations_client_example_test.go delete mode 100644 sdk/resourcemanager/dashboard/armdashboard/privateendpointconnections_client_example_test.go delete mode 100644 sdk/resourcemanager/dashboard/armdashboard/privatelinkresources_client_example_test.go diff --git a/sdk/resourcemanager/dashboard/armdashboard/CHANGELOG.md b/sdk/resourcemanager/dashboard/armdashboard/CHANGELOG.md index 22edfa31c12f..6f51d36f8315 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/CHANGELOG.md +++ b/sdk/resourcemanager/dashboard/armdashboard/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.2.0 (2023-04-03) +### Features Added + +- New field `AzureAsyncOperation` in struct `GrafanaClientUpdateResponse` + + ## 1.1.0 (2023-03-28) ### Features Added diff --git a/sdk/resourcemanager/dashboard/armdashboard/autorest.md b/sdk/resourcemanager/dashboard/armdashboard/autorest.md index f956d868febf..6b90a1c44416 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/autorest.md +++ b/sdk/resourcemanager/dashboard/armdashboard/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/dashboard/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/dashboard/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.2.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/dashboard/armdashboard/constants.go b/sdk/resourcemanager/dashboard/armdashboard/constants.go index 15baa7538a81..bf59504ee47e 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/constants.go +++ b/sdk/resourcemanager/dashboard/armdashboard/constants.go @@ -11,7 +11,7 @@ package armdashboard const ( moduleName = "armdashboard" - moduleVersion = "v1.1.0" + moduleVersion = "v1.2.0" ) type APIKey string diff --git a/sdk/resourcemanager/dashboard/armdashboard/go.mod b/sdk/resourcemanager/dashboard/armdashboard/go.mod index 2bc9d58e2e4e..53fd0f0d884c 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/go.mod +++ b/sdk/resourcemanager/dashboard/armdashboard/go.mod @@ -2,20 +2,12 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashbo 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/dashboard/armdashboard/go.sum b/sdk/resourcemanager/dashboard/armdashboard/go.sum index 8ba445a8c4da..b6bd7eaad1ba 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/go.sum +++ b/sdk/resourcemanager/dashboard/armdashboard/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/dashboard/armdashboard/grafana_client.go b/sdk/resourcemanager/dashboard/armdashboard/grafana_client.go index b9c69498b308..6f0aca076771 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/grafana_client.go +++ b/sdk/resourcemanager/dashboard/armdashboard/grafana_client.go @@ -410,6 +410,9 @@ func (client *GrafanaClient) updateCreateRequest(ctx context.Context, resourceGr // updateHandleResponse handles the Update response. func (client *GrafanaClient) updateHandleResponse(resp *http.Response) (GrafanaClientUpdateResponse, error) { result := GrafanaClientUpdateResponse{} + if val := resp.Header.Get("Azure-AsyncOperation"); val != "" { + result.AzureAsyncOperation = &val + } if err := runtime.UnmarshalAsJSON(resp, &result.ManagedGrafana); err != nil { return GrafanaClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/dashboard/armdashboard/grafana_client_example_test.go b/sdk/resourcemanager/dashboard/armdashboard/grafana_client_example_test.go deleted file mode 100644 index a9c3c5661dc4..000000000000 --- a/sdk/resourcemanager/dashboard/armdashboard/grafana_client_example_test.go +++ /dev/null @@ -1,367 +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 armdashboard_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/dashboard/armdashboard" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/Grafana_List.json -func ExampleGrafanaClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewGrafanaClient().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.ManagedGrafanaListResponse = armdashboard.ManagedGrafanaListResponse{ - // Value: []*armdashboard.ManagedGrafana{ - // { - // Name: to.Ptr("myWorkspace"), - // Type: to.Ptr("Microsoft.Dashboard/grafana"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"), - // Location: to.Ptr("West US"), - // Properties: &armdashboard.ManagedGrafanaProperties{ - // APIKey: to.Ptr(armdashboard.APIKeyEnabled), - // AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse), - // DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled), - // Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"), - // GrafanaIntegrations: &armdashboard.GrafanaIntegrations{ - // AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{ - // { - // AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"), - // }}, - // }, - // GrafanaVersion: to.Ptr("8.4.5"), - // OutboundIPs: []*string{ - // to.Ptr("192.168.0.1"), - // to.Ptr("192.168.0.2")}, - // ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded), - // ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled), - // }, - // SKU: &armdashboard.ResourceSKU{ - // Name: to.Ptr("Standard"), - // }, - // Tags: map[string]*string{ - // "Environment": to.Ptr("Dev"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/Grafana_ListByResourceGroup.json -func ExampleGrafanaClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewGrafanaClient().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.ManagedGrafanaListResponse = armdashboard.ManagedGrafanaListResponse{ - // Value: []*armdashboard.ManagedGrafana{ - // { - // Name: to.Ptr("myWorkspace"), - // Type: to.Ptr("Microsoft.Dashboard/grafana"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"), - // Location: to.Ptr("West US"), - // Properties: &armdashboard.ManagedGrafanaProperties{ - // APIKey: to.Ptr(armdashboard.APIKeyEnabled), - // AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse), - // DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled), - // Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"), - // GrafanaIntegrations: &armdashboard.GrafanaIntegrations{ - // AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{ - // { - // AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"), - // }}, - // }, - // GrafanaVersion: to.Ptr("8.4.5"), - // OutboundIPs: []*string{ - // to.Ptr("192.168.0.1"), - // to.Ptr("192.168.0.2")}, - // ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded), - // ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled), - // }, - // SKU: &armdashboard.ResourceSKU{ - // Name: to.Ptr("Standard"), - // }, - // Tags: map[string]*string{ - // "Environment": to.Ptr("Dev"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/Grafana_Get.json -func ExampleGrafanaClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGrafanaClient().Get(ctx, "myResourceGroup", "myWorkspace", 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.ManagedGrafana = armdashboard.ManagedGrafana{ - // Name: to.Ptr("myWorkspace"), - // Type: to.Ptr("Microsoft.Dashboard/grafana"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"), - // Location: to.Ptr("West US"), - // Properties: &armdashboard.ManagedGrafanaProperties{ - // APIKey: to.Ptr(armdashboard.APIKeyEnabled), - // AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse), - // DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled), - // Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"), - // GrafanaIntegrations: &armdashboard.GrafanaIntegrations{ - // AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{ - // { - // AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"), - // }}, - // }, - // GrafanaVersion: to.Ptr("8.4.5"), - // OutboundIPs: []*string{ - // to.Ptr("192.168.0.1"), - // to.Ptr("192.168.0.2")}, - // ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded), - // ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled), - // }, - // SKU: &armdashboard.ResourceSKU{ - // Name: to.Ptr("Standard"), - // }, - // SystemData: &armdashboard.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser), - // }, - // Tags: map[string]*string{ - // "Environment": to.Ptr("Dev"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/Grafana_Create.json -func ExampleGrafanaClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewGrafanaClient().BeginCreate(ctx, "myResourceGroup", "myWorkspace", armdashboard.ManagedGrafana{ - Identity: &armdashboard.ManagedServiceIdentity{ - Type: to.Ptr(armdashboard.ManagedServiceIdentityTypeSystemAssigned), - }, - Location: to.Ptr("West US"), - Properties: &armdashboard.ManagedGrafanaProperties{ - APIKey: to.Ptr(armdashboard.APIKeyEnabled), - DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled), - GrafanaIntegrations: &armdashboard.GrafanaIntegrations{ - AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{ - { - AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"), - }}, - }, - PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled), - ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled), - }, - SKU: &armdashboard.ResourceSKU{ - Name: to.Ptr("Standard"), - }, - Tags: map[string]*string{ - "Environment": to.Ptr("Dev"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %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.ManagedGrafana = armdashboard.ManagedGrafana{ - // Name: to.Ptr("myWorkspace"), - // Type: to.Ptr("Microsoft.Dashboard/grafana"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"), - // Identity: &armdashboard.ManagedServiceIdentity{ - // Type: to.Ptr(armdashboard.ManagedServiceIdentityTypeSystemAssigned), - // }, - // Location: to.Ptr("West US"), - // Properties: &armdashboard.ManagedGrafanaProperties{ - // APIKey: to.Ptr(armdashboard.APIKeyEnabled), - // AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse), - // DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled), - // Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"), - // GrafanaIntegrations: &armdashboard.GrafanaIntegrations{ - // AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{ - // { - // AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"), - // }}, - // }, - // GrafanaVersion: to.Ptr("8.4.5"), - // OutboundIPs: []*string{ - // to.Ptr("192.168.0.1"), - // to.Ptr("192.168.0.2")}, - // ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded), - // PublicNetworkAccess: to.Ptr(armdashboard.PublicNetworkAccessEnabled), - // ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled), - // }, - // SKU: &armdashboard.ResourceSKU{ - // Name: to.Ptr("Standard"), - // }, - // SystemData: &armdashboard.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-03T01:01:01.1075056Z"); return t}()), - // CreatedBy: to.Ptr("string"), - // CreatedByType: to.Ptr(armdashboard.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-04T02:03:01.1974346Z"); return t}()), - // LastModifiedBy: to.Ptr("string"), - // LastModifiedByType: to.Ptr(armdashboard.CreatedByTypeUser), - // }, - // Tags: map[string]*string{ - // "Environment": to.Ptr("Dev"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/Grafana_Update.json -func ExampleGrafanaClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGrafanaClient().Update(ctx, "myResourceGroup", "myWorkspace", armdashboard.ManagedGrafanaUpdateParameters{ - Properties: &armdashboard.ManagedGrafanaPropertiesUpdateParameters{ - APIKey: to.Ptr(armdashboard.APIKeyEnabled), - DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled), - GrafanaIntegrations: &armdashboard.GrafanaIntegrations{ - AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{ - { - AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"), - }}, - }, - }, - Tags: map[string]*string{ - "Environment": to.Ptr("Dev 2"), - }, - }, 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.ManagedGrafana = armdashboard.ManagedGrafana{ - // Name: to.Ptr("myWorkspace"), - // Type: to.Ptr("Microsoft.Dashboard/grafana"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace"), - // Location: to.Ptr("West US"), - // Properties: &armdashboard.ManagedGrafanaProperties{ - // APIKey: to.Ptr(armdashboard.APIKeyEnabled), - // AutoGeneratedDomainNameLabelScope: to.Ptr(armdashboard.AutoGeneratedDomainNameLabelScopeTenantReuse), - // DeterministicOutboundIP: to.Ptr(armdashboard.DeterministicOutboundIPEnabled), - // Endpoint: to.Ptr("https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com"), - // GrafanaIntegrations: &armdashboard.GrafanaIntegrations{ - // AzureMonitorWorkspaceIntegrations: []*armdashboard.AzureMonitorWorkspaceIntegration{ - // { - // AzureMonitorWorkspaceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"), - // }}, - // }, - // GrafanaVersion: to.Ptr("8.4.5"), - // OutboundIPs: []*string{ - // to.Ptr("192.168.0.1"), - // to.Ptr("192.168.0.2")}, - // ProvisioningState: to.Ptr(armdashboard.ProvisioningStateSucceeded), - // ZoneRedundancy: to.Ptr(armdashboard.ZoneRedundancyEnabled), - // }, - // SKU: &armdashboard.ResourceSKU{ - // Name: to.Ptr("Standard"), - // }, - // Tags: map[string]*string{ - // "Environment": to.Ptr("Dev 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/Grafana_Delete.json -func ExampleGrafanaClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewGrafanaClient().BeginDelete(ctx, "myResourceGroup", "myWorkspace", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/dashboard/armdashboard/operations_client_example_test.go b/sdk/resourcemanager/dashboard/armdashboard/operations_client_example_test.go deleted file mode 100644 index a1b8c8fc5769..000000000000 --- a/sdk/resourcemanager/dashboard/armdashboard/operations_client_example_test.go +++ /dev/null @@ -1,57 +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 armdashboard_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/Operations_List.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 := armdashboard.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.OperationListResult = armdashboard.OperationListResult{ - // Value: []*armdashboard.Operation{ - // { - // Name: to.Ptr("Microsoft.Dashboard/grafana/write"), - // ActionType: to.Ptr(armdashboard.ActionTypeInternal), - // Display: &armdashboard.OperationDisplay{ - // Description: to.Ptr("Write grafana workspace resource"), - // Operation: to.Ptr("write"), - // Provider: to.Ptr("Microsoft.Dashboard"), - // Resource: to.Ptr("grafana"), - // }, - // Origin: to.Ptr(armdashboard.OriginUser), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/dashboard/armdashboard/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/dashboard/armdashboard/privateendpointconnections_client_example_test.go deleted file mode 100644 index 8fe1c2746e56..000000000000 --- a/sdk/resourcemanager/dashboard/armdashboard/privateendpointconnections_client_example_test.go +++ /dev/null @@ -1,144 +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 armdashboard_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/PrivateEndpointConnections_Get.json -func ExamplePrivateEndpointConnectionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPrivateEndpointConnectionsClient().Get(ctx, "myResourceGroup", "myWorkspace", "myConnection", 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.PrivateEndpointConnection = armdashboard.PrivateEndpointConnection{ - // Name: to.Ptr("myConnection"), - // Type: to.Ptr("Microsoft.Dashboard/grafana/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection"), - // Properties: &armdashboard.PrivateEndpointConnectionProperties{ - // GroupIDs: []*string{ - // to.Ptr("grafana")}, - // PrivateEndpoint: &armdashboard.PrivateEndpoint{ - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armdashboard.PrivateLinkServiceConnectionState{ - // Description: to.Ptr("string"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr(armdashboard.PrivateEndpointServiceConnectionStatusPending), - // }, - // ProvisioningState: to.Ptr(armdashboard.PrivateEndpointConnectionProvisioningStateSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/PrivateEndpointConnections_Approve.json -func ExamplePrivateEndpointConnectionsClient_BeginApprove() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginApprove(ctx, "myResourceGroup", "myWorkspace", "myConnection", armdashboard.PrivateEndpointConnection{}, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/PrivateEndpointConnections_Delete.json -func ExamplePrivateEndpointConnectionsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginDelete(ctx, "myResourceGroup", "myWorkspace", "myConnection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/PrivateEndpointConnections_List.json -func ExamplePrivateEndpointConnectionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPrivateEndpointConnectionsClient().NewListPager("myResourceGroup", "myWorkspace", 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.PrivateEndpointConnectionListResult = armdashboard.PrivateEndpointConnectionListResult{ - // Value: []*armdashboard.PrivateEndpointConnection{ - // { - // Name: to.Ptr("myConnection"), - // Type: to.Ptr("Microsoft.Dashboard/grafana/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection"), - // Properties: &armdashboard.PrivateEndpointConnectionProperties{ - // GroupIDs: []*string{ - // to.Ptr("grafana")}, - // PrivateEndpoint: &armdashboard.PrivateEndpoint{ - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armdashboard.PrivateLinkServiceConnectionState{ - // Description: to.Ptr("string"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr(armdashboard.PrivateEndpointServiceConnectionStatusPending), - // }, - // ProvisioningState: to.Ptr(armdashboard.PrivateEndpointConnectionProvisioningStateSucceeded), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/dashboard/armdashboard/privatelinkresources_client_example_test.go b/sdk/resourcemanager/dashboard/armdashboard/privatelinkresources_client_example_test.go deleted file mode 100644 index e64e5b55d615..000000000000 --- a/sdk/resourcemanager/dashboard/armdashboard/privatelinkresources_client_example_test.go +++ /dev/null @@ -1,90 +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 armdashboard_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/PrivateLinkResources_List.json -func ExamplePrivateLinkResourcesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPrivateLinkResourcesClient().NewListPager("myResourceGroup", "myWorkspace", 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.PrivateLinkResourceListResult = armdashboard.PrivateLinkResourceListResult{ - // Value: []*armdashboard.PrivateLinkResource{ - // { - // Name: to.Ptr("grafana"), - // Type: to.Ptr("Microsoft.Dashboard/grafana/PrivateLinkResources"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana"), - // Properties: &armdashboard.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("grafana"), - // RequiredMembers: []*string{ - // to.Ptr("grafana")}, - // RequiredZoneNames: []*string{ - // to.Ptr("grafana.azure.com")}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7473936304533e6716fc4563401bf265dda4cb64/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/examples/PrivateLinkResources_Get.json -func ExamplePrivateLinkResourcesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdashboard.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPrivateLinkResourcesClient().Get(ctx, "myResourceGroup", "myWorkspace", "grafana", 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.PrivateLinkResource = armdashboard.PrivateLinkResource{ - // Name: to.Ptr("grafana"), - // Type: to.Ptr("Microsoft.Dashboard/grafana/PrivateLinkResources"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana"), - // Properties: &armdashboard.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("grafana"), - // RequiredMembers: []*string{ - // to.Ptr("grafana")}, - // RequiredZoneNames: []*string{ - // to.Ptr("grafana.azure.com")}, - // }, - // } -} diff --git a/sdk/resourcemanager/dashboard/armdashboard/response_types.go b/sdk/resourcemanager/dashboard/armdashboard/response_types.go index a7f80fa6ab4a..60c6994ca954 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/response_types.go +++ b/sdk/resourcemanager/dashboard/armdashboard/response_types.go @@ -37,6 +37,8 @@ type GrafanaClientListResponse struct { // GrafanaClientUpdateResponse contains the response from method GrafanaClient.Update. type GrafanaClientUpdateResponse struct { ManagedGrafana + // AzureAsyncOperation contains the information returned from the Azure-AsyncOperation header response. + AzureAsyncOperation *string } // OperationsClientListResponse contains the response from method OperationsClient.NewListPager.