From 4b1d1fdc78d09a462556dcf312e03c08b662b11e Mon Sep 17 00:00:00 2001 From: Zhenhua Hu Date: Mon, 15 Aug 2022 11:36:12 +0800 Subject: [PATCH] go mod --- .../method_grafanaget_autorest.go | 1 + .../method_grafanalist_autorest.go | 88 +++++++++---------- ...hod_grafanalistbyresourcegroup_autorest.go | 88 +++++++++---------- .../method_grafanaupdate_autorest.go | 1 + .../model_azuremonitorworkspaceintegration.go | 8 ++ .../model_grafanaintegrations.go | 8 ++ .../model_managedgrafanaproperties.go | 1 + ...anagedgrafanapropertiesupdateparameters.go | 1 + vendor/modules.txt | 1 + 9 files changed, 109 insertions(+), 88 deletions(-) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_azuremonitorworkspaceintegration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_grafanaintegrations.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaget_autorest.go index 892abefed3be..1e26d910497e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaget_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaget_autorest.go @@ -63,5 +63,6 @@ func (c GrafanaResourceClient) responderForGrafanaGet(resp *http.Response) (resu autorest.ByUnmarshallingJSON(&result.Model), autorest.ByClosing()) result.HttpResponse = resp + return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist_autorest.go index 5f525cdc7e22..d0475876773c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist_autorest.go @@ -60,50 +60,6 @@ func (c GrafanaResourceClient) GrafanaList(ctx context.Context, id commonids.Sub return } -// GrafanaListComplete retrieves all of the results into a single object -func (c GrafanaResourceClient) GrafanaListComplete(ctx context.Context, id commonids.SubscriptionId) (GrafanaListCompleteResult, error) { - return c.GrafanaListCompleteMatchingPredicate(ctx, id, ManagedGrafanaOperationPredicate{}) -} - -// GrafanaListCompleteMatchingPredicate retrieves all of the results and then applied the predicate -func (c GrafanaResourceClient) GrafanaListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ManagedGrafanaOperationPredicate) (resp GrafanaListCompleteResult, err error) { - items := make([]ManagedGrafana, 0) - - page, err := c.GrafanaList(ctx, id) - if err != nil { - err = fmt.Errorf("loading the initial page: %+v", err) - return - } - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - for page.HasMore() { - page, err = page.LoadMore(ctx) - if err != nil { - err = fmt.Errorf("loading the next page: %+v", err) - return - } - - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - } - - out := GrafanaListCompleteResult{ - Items: items, - } - return out, nil -} - // preparerForGrafanaList prepares the GrafanaList request. func (c GrafanaResourceClient) preparerForGrafanaList(ctx context.Context, id commonids.SubscriptionId) (*http.Request, error) { queryParameters := map[string]interface{}{ @@ -185,3 +141,47 @@ func (c GrafanaResourceClient) responderForGrafanaList(resp *http.Response) (res } return } + +// GrafanaListComplete retrieves all of the results into a single object +func (c GrafanaResourceClient) GrafanaListComplete(ctx context.Context, id commonids.SubscriptionId) (GrafanaListCompleteResult, error) { + return c.GrafanaListCompleteMatchingPredicate(ctx, id, ManagedGrafanaOperationPredicate{}) +} + +// GrafanaListCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c GrafanaResourceClient) GrafanaListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ManagedGrafanaOperationPredicate) (resp GrafanaListCompleteResult, err error) { + items := make([]ManagedGrafana, 0) + + page, err := c.GrafanaList(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := GrafanaListCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup_autorest.go index f16364e69abe..8551ca052467 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup_autorest.go @@ -60,50 +60,6 @@ func (c GrafanaResourceClient) GrafanaListByResourceGroup(ctx context.Context, i return } -// GrafanaListByResourceGroupComplete retrieves all of the results into a single object -func (c GrafanaResourceClient) GrafanaListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (GrafanaListByResourceGroupCompleteResult, error) { - return c.GrafanaListByResourceGroupCompleteMatchingPredicate(ctx, id, ManagedGrafanaOperationPredicate{}) -} - -// GrafanaListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate -func (c GrafanaResourceClient) GrafanaListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ManagedGrafanaOperationPredicate) (resp GrafanaListByResourceGroupCompleteResult, err error) { - items := make([]ManagedGrafana, 0) - - page, err := c.GrafanaListByResourceGroup(ctx, id) - if err != nil { - err = fmt.Errorf("loading the initial page: %+v", err) - return - } - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - for page.HasMore() { - page, err = page.LoadMore(ctx) - if err != nil { - err = fmt.Errorf("loading the next page: %+v", err) - return - } - - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - } - - out := GrafanaListByResourceGroupCompleteResult{ - Items: items, - } - return out, nil -} - // preparerForGrafanaListByResourceGroup prepares the GrafanaListByResourceGroup request. func (c GrafanaResourceClient) preparerForGrafanaListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (*http.Request, error) { queryParameters := map[string]interface{}{ @@ -185,3 +141,47 @@ func (c GrafanaResourceClient) responderForGrafanaListByResourceGroup(resp *http } return } + +// GrafanaListByResourceGroupComplete retrieves all of the results into a single object +func (c GrafanaResourceClient) GrafanaListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (GrafanaListByResourceGroupCompleteResult, error) { + return c.GrafanaListByResourceGroupCompleteMatchingPredicate(ctx, id, ManagedGrafanaOperationPredicate{}) +} + +// GrafanaListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c GrafanaResourceClient) GrafanaListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ManagedGrafanaOperationPredicate) (resp GrafanaListByResourceGroupCompleteResult, err error) { + items := make([]ManagedGrafana, 0) + + page, err := c.GrafanaListByResourceGroup(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := GrafanaListByResourceGroupCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaupdate_autorest.go index 0f5e1b737ac1..fe536e34c01e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaupdate_autorest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanaupdate_autorest.go @@ -64,5 +64,6 @@ func (c GrafanaResourceClient) responderForGrafanaUpdate(resp *http.Response) (r autorest.ByUnmarshallingJSON(&result.Model), autorest.ByClosing()) result.HttpResponse = resp + return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_azuremonitorworkspaceintegration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_azuremonitorworkspaceintegration.go new file mode 100644 index 000000000000..8136257d9505 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_azuremonitorworkspaceintegration.go @@ -0,0 +1,8 @@ +package grafanaresource + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureMonitorWorkspaceIntegration struct { + AzureMonitorWorkspaceResourceId *string `json:"azureMonitorWorkspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_grafanaintegrations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_grafanaintegrations.go new file mode 100644 index 000000000000..80a683ba9460 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_grafanaintegrations.go @@ -0,0 +1,8 @@ +package grafanaresource + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GrafanaIntegrations struct { + AzureMonitorWorkspaceIntegrations *[]AzureMonitorWorkspaceIntegration `json:"azureMonitorWorkspaceIntegrations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanaproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanaproperties.go index 64785964604f..e28f48018231 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanaproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanaproperties.go @@ -8,6 +8,7 @@ type ManagedGrafanaProperties struct { AutoGeneratedDomainNameLabelScope *AutoGeneratedDomainNameLabelScope `json:"autoGeneratedDomainNameLabelScope,omitempty"` DeterministicOutboundIP *DeterministicOutboundIP `json:"deterministicOutboundIP,omitempty"` Endpoint *string `json:"endpoint,omitempty"` + GrafanaIntegrations *GrafanaIntegrations `json:"grafanaIntegrations,omitempty"` GrafanaVersion *string `json:"grafanaVersion,omitempty"` OutboundIPs *[]string `json:"outboundIPs,omitempty"` PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanapropertiesupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanapropertiesupdateparameters.go index d5ca9077501d..2e4fb356e032 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanapropertiesupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource/model_managedgrafanapropertiesupdateparameters.go @@ -6,6 +6,7 @@ package grafanaresource type ManagedGrafanaPropertiesUpdateParameters struct { ApiKey *ApiKey `json:"apiKey,omitempty"` DeterministicOutboundIP *DeterministicOutboundIP `json:"deterministicOutboundIP,omitempty"` + GrafanaIntegrations *GrafanaIntegrations `json:"grafanaIntegrations,omitempty"` PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` ZoneRedundancy *ZoneRedundancy `json:"zoneRedundancy,omitempty"` } diff --git a/vendor/modules.txt b/vendor/modules.txt index 5b11f82b5b86..ea001086c596 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -210,6 +210,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublick github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2021-03-01/containerinstance github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports +github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2022-08-01/grafanaresource github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2021-04-01-preview/workspaces github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/application