From 0937cf047fe3d4d98ef1b0d5415e5fa18db10eb9 Mon Sep 17 00:00:00 2001 From: Dylan Morley <5038454+dylanmorley@users.noreply.github.com> Date: Thu, 5 Aug 2021 04:00:52 +0100 Subject: [PATCH] Supporting workspace mode for application_insights_resource (#12818) As per issue #7667, updating the application_insights_resource to enable support of workspace mode, available with updated package 2020-02-02 in the Go SDK at v56.0. Updated the insights API from 2015-05-01 to 2020-02-02 Fixed upgrade issues (enum changes ) Supporting workspace ID as an optional parameter when creating AI resources Added workspace_id to data source resource Documentation updates --- ...cation_insights_analytics_item_resource.go | 18 +-- .../application_insights_api_key_resource.go | 2 +- .../application_insights_data_source.go | 11 ++ .../application_insights_data_source_test.go | 11 +- .../application_insights_resource.go | 17 ++- .../application_insights_resource_test.go | 45 ++++++ ..._insights_smart_detection_rule_resource.go | 2 +- .../application_insights_webtests_resource.go | 6 +- .../applicationinsights/client/client.go | 2 +- .../mgmt/2015-05-01/insights/CHANGELOG.md | 16 -- .../mgmt/2015-05-01/insights/_meta.json | 11 -- .../mgmt/2020-02-02/insights/CHANGELOG.md | 2 + .../mgmt/2020-02-02/insights/_meta.json | 11 ++ .../insights/analyticsitems.go | 12 +- .../insights/annotations.go | 12 +- .../insights/apikeys.go | 12 +- .../insights/client.go | 2 +- .../insights/componentavailablefeatures.go | 3 +- .../componentcurrentbillingfeatures.go | 6 +- .../insights/componentfeaturecapabilities.go | 3 +- .../insights/componentquotastatus.go | 3 +- .../insights/components.go | 37 ++--- .../insights/enums.go | 143 ++++++++++-------- .../insights/exportconfigurations.go | 15 +- .../insights/favorites.go | 15 +- .../insights/models.go | 84 ++++++++-- .../insights/myworkbooks.go | 15 +- .../insights/operations.go | 0 .../proactivedetectionconfigurations.go | 9 +- .../insights/version.go | 2 +- .../insights/webtestlocations.go | 3 +- .../insights/webtests.go | 18 +-- .../insights/workbooks.go | 15 +- .../insights/workitemconfigurations.go | 18 +-- vendor/modules.txt | 2 +- .../docs/d/application_insights.html.markdown | 1 + .../docs/r/application_insights.html.markdown | 36 +++++ 37 files changed, 371 insertions(+), 249 deletions(-) delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/_meta.json create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/CHANGELOG.md create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/_meta.json rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/analyticsitems.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/annotations.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/apikeys.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/client.go (98%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/componentavailablefeatures.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/componentcurrentbillingfeatures.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/componentfeaturecapabilities.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/componentquotastatus.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/components.go (96%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/enums.go (57%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/exportconfigurations.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/favorites.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/models.go (95%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/myworkbooks.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/operations.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/proactivedetectionconfigurations.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/version.go (90%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/webtestlocations.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/webtests.go (97%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/workbooks.go (96%) rename vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/{2015-05-01 => 2020-02-02}/insights/workitemconfigurations.go (97%) diff --git a/azurerm/internal/services/applicationinsights/application_insights_analytics_item_resource.go b/azurerm/internal/services/applicationinsights/application_insights_analytics_item_resource.go index 106a30c53e63..850f2c30b627 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_analytics_item_resource.go +++ b/azurerm/internal/services/applicationinsights/application_insights_analytics_item_resource.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" + "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/pluginsdk" @@ -68,10 +68,10 @@ func resourceApplicationInsightsAnalyticsItem() *pluginsdk.Resource { Required: true, ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ - string(insights.Query), - string(insights.Function), - string(insights.Folder), - string(insights.Recent), + string(insights.ItemTypeQuery), + string(insights.ItemTypeFunction), + string(insights.ItemTypeFolder), + string(insights.ItemTypeRecent), }, false), }, @@ -147,9 +147,9 @@ func resourceApplicationInsightsAnalyticsItemCreateUpdate(d *pluginsdk.ResourceD var itemScopePath insights.ItemScopePath if itemScope == insights.ItemScopeUser { - itemScopePath = insights.MyanalyticsItems + itemScopePath = insights.ItemScopePathMyanalyticsItems } else { - itemScopePath = insights.AnalyticsItems + itemScopePath = insights.ItemScopePathAnalyticsItems } result, err := client.Put(ctx, resourceGroupName, appInsightsName, itemScopePath, properties, &overwrite) if err != nil { @@ -228,11 +228,11 @@ func ResourcesArmApplicationInsightsAnalyticsItemParseID(id string) (string, str // /myanalyticsItems/ [for user scope items] // Pull out the itemID and note the scope used itemID := resourceID.Path["analyticsItems"] - itemScopePath := insights.AnalyticsItems + itemScopePath := insights.ItemScopePathAnalyticsItems if itemID == "" { // no "analyticsItems" component - try "myanalyticsItems" and set scope path itemID = resourceID.Path["myanalyticsItems"] - itemScopePath = insights.MyanalyticsItems + itemScopePath = insights.ItemScopePathMyanalyticsItems } return resourceGroupName, appInsightsName, itemScopePath, itemID, nil diff --git a/azurerm/internal/services/applicationinsights/application_insights_api_key_resource.go b/azurerm/internal/services/applicationinsights/application_insights_api_key_resource.go index 370bbc41f474..573f42719fa2 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_api_key_resource.go +++ b/azurerm/internal/services/applicationinsights/application_insights_api_key_resource.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" + "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" diff --git a/azurerm/internal/services/applicationinsights/application_insights_data_source.go b/azurerm/internal/services/applicationinsights/application_insights_data_source.go index da7325f0539f..ef92db33d73c 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_data_source.go +++ b/azurerm/internal/services/applicationinsights/application_insights_data_source.go @@ -63,6 +63,11 @@ func dataSourceApplicationInsights() *pluginsdk.Resource { Computed: true, }, + "workspace_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "tags": { Type: pluginsdk.TypeMap, Computed: true, @@ -104,6 +109,12 @@ func dataSourceArmApplicationInsightsRead(d *pluginsdk.ResourceData, meta interf retentionInDays = int(*props.RetentionInDays) } d.Set("retention_in_days", retentionInDays) + + workspaceId := "" + if props.WorkspaceResourceID != nil { + workspaceId = *props.WorkspaceResourceID + } + d.Set("workspace_id", workspaceId) } return tags.FlattenAndSet(d, resp.Tags) } diff --git a/azurerm/internal/services/applicationinsights/application_insights_data_source_test.go b/azurerm/internal/services/applicationinsights/application_insights_data_source_test.go index c70375206c4f..b04ca882f2ea 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_data_source_test.go +++ b/azurerm/internal/services/applicationinsights/application_insights_data_source_test.go @@ -21,6 +21,7 @@ func TestAccApplicationInsightsDataSource_basic(t *testing.T) { check.That(data.ResourceName).Key("instrumentation_key").Exists(), check.That(data.ResourceName).Key("app_id").Exists(), check.That(data.ResourceName).Key("location").Exists(), + check.That(data.ResourceName).Key("workspace_id").Exists(), check.That(data.ResourceName).Key("application_type").HasValue("other"), check.That(data.ResourceName).Key("tags.%").HasValue("1"), check.That(data.ResourceName).Key("tags.foo").HasValue("bar"), @@ -40,12 +41,20 @@ resource "azurerm_resource_group" "test" { location = "%[2]s" } +resource "azurerm_log_analytics_workspace" "test" { + name = "acctest-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "PerGB2018" + retention_in_days = 30 +} + resource "azurerm_application_insights" "test" { name = "acctestappinsights-%[1]d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name application_type = "other" - + workspace_id = azurerm_log_analytics_workspace.test.id tags = { "foo" = "bar" } diff --git a/azurerm/internal/services/applicationinsights/application_insights_resource.go b/azurerm/internal/services/applicationinsights/application_insights_resource.go index 994bb495b832..cb2a8d3466c5 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_resource.go +++ b/azurerm/internal/services/applicationinsights/application_insights_resource.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" + "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" @@ -63,6 +63,12 @@ func resourceApplicationInsights() *pluginsdk.Resource { }, false), }, + "workspace_id": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: azure.ValidateResourceIDOrEmpty, + }, + "retention_in_days": { Type: pluginsdk.TypeInt, Optional: true, @@ -167,6 +173,10 @@ func resourceApplicationInsightsCreateUpdate(d *pluginsdk.ResourceData, meta int DisableIPMasking: utils.Bool(disableIpMasking), } + if workspaceRaw, hasWorkspaceId := d.GetOk("workspace_id"); hasWorkspaceId { + applicationInsightsComponentProperties.WorkspaceResourceID = utils.String(workspaceRaw.(string)) + } + if v, ok := d.GetOk("retention_in_days"); ok { applicationInsightsComponentProperties.RetentionInDays = utils.Int32(int32(v.(int))) } @@ -259,6 +269,11 @@ func resourceApplicationInsightsRead(d *pluginsdk.ResourceData, meta interface{} d.Set("sampling_percentage", props.SamplingPercentage) d.Set("disable_ip_masking", props.DisableIPMasking) d.Set("connection_string", props.ConnectionString) + + if v := props.WorkspaceResourceID; v != nil { + d.Set("workspace_id", v) + } + if v := props.RetentionInDays; v != nil { d.Set("retention_in_days", v) } diff --git a/azurerm/internal/services/applicationinsights/application_insights_resource_test.go b/azurerm/internal/services/applicationinsights/application_insights_resource_test.go index 9ceb55cd8fe6..8f844afdb86d 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_resource_test.go +++ b/azurerm/internal/services/applicationinsights/application_insights_resource_test.go @@ -147,6 +147,22 @@ func TestAccApplicationInsights_basiciOS(t *testing.T) { }) } +func TestAccApplicationInsights_basicWorkspaceMode(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_application_insights", "test") + r := AppInsightsResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic_workspace_mode(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("workspace_id").Exists(), + ), + }, + data.ImportStep(), + }) +} + func (t AppInsightsResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := parse.ComponentID(state.ID) if err != nil { @@ -203,6 +219,35 @@ resource "azurerm_application_insights" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, applicationType) } +func (AppInsightsResource) basic_workspace_mode(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-appinsights-%d" + location = "%s" +} + +resource "azurerm_log_analytics_workspace" "test" { + name = "acctest-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "PerGB2018" + retention_in_days = 30 +} + +resource "azurerm_application_insights" "test" { + name = "acctestappinsights-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + workspace_id = azurerm_log_analytics_workspace.test.id + application_type = "web" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) +} + func (AppInsightsResource) requiresImport(data acceptance.TestData, applicationType string) string { template := AppInsightsResource{}.basic(data, applicationType) return fmt.Sprintf(` diff --git a/azurerm/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go b/azurerm/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go index 0f90a3e404d4..f607fa88f07a 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go +++ b/azurerm/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" + "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/applicationinsights/parse" diff --git a/azurerm/internal/services/applicationinsights/application_insights_webtests_resource.go b/azurerm/internal/services/applicationinsights/application_insights_webtests_resource.go index dc64d3f12d1b..4938398db315 100644 --- a/azurerm/internal/services/applicationinsights/application_insights_webtests_resource.go +++ b/azurerm/internal/services/applicationinsights/application_insights_webtests_resource.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" + "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" @@ -63,8 +63,8 @@ func resourceApplicationInsightsWebTests() *pluginsdk.Resource { Required: true, ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ - string(insights.Multistep), - string(insights.Ping), + string(insights.WebTestKindMultistep), + string(insights.WebTestKindPing), }, false), }, diff --git a/azurerm/internal/services/applicationinsights/client/client.go b/azurerm/internal/services/applicationinsights/client/client.go index f4907452f511..afc43a07ad21 100644 --- a/azurerm/internal/services/applicationinsights/client/client.go +++ b/azurerm/internal/services/applicationinsights/client/client.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" + "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" ) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md deleted file mode 100644 index 2c3469c874a8..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/CHANGELOG.md +++ /dev/null @@ -1,16 +0,0 @@ -# Change History - -## Additive Changes - -### New Funcs - -1. AnnotationsListResult.MarshalJSON() ([]byte, error) -1. ApplicationInsightsComponentAvailableFeatures.MarshalJSON() ([]byte, error) -1. ApplicationInsightsComponentFeature.MarshalJSON() ([]byte, error) -1. ApplicationInsightsComponentFeatureCapabilities.MarshalJSON() ([]byte, error) -1. ApplicationInsightsComponentFeatureCapability.MarshalJSON() ([]byte, error) -1. ApplicationInsightsComponentQuotaStatus.MarshalJSON() ([]byte, error) -1. ApplicationInsightsComponentWebTestLocation.MarshalJSON() ([]byte, error) -1. MyWorkbooksListResult.MarshalJSON() ([]byte, error) -1. WorkItemConfigurationsListResult.MarshalJSON() ([]byte, error) -1. WorkbooksListResult.MarshalJSON() ([]byte, error) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/_meta.json b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/_meta.json deleted file mode 100644 index a025c80f1f56..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/_meta.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", - "readme": "/_/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md", - "tag": "package-2015-05", - "use": "@microsoft.azure/autorest.go@2.1.183", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2015-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md", - "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" - } -} \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/CHANGELOG.md new file mode 100644 index 000000000000..52911e4cc5e4 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/CHANGELOG.md @@ -0,0 +1,2 @@ +# Change History + diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/_meta.json b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/_meta.json new file mode 100644 index 000000000000..9a849411015d --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/_meta.json @@ -0,0 +1,11 @@ +{ + "commit": "b47572ab2069865484c493a4f679d4e72f8b303d", + "readme": "/_/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md", + "tag": "package-2020-02-02", + "use": "@microsoft.azure/autorest.go@2.1.183", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2020-02-02 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md", + "additional_properties": { + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" + } +} \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/analyticsitems.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/analyticsitems.go index 4cc774485e47..2e08deb5b096 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/analyticsitems.go @@ -55,8 +55,7 @@ func (client AnalyticsItemsClient) Delete(ctx context.Context, resourceGroupName Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnalyticsItemsClient", "Delete", err.Error()) } @@ -151,8 +150,7 @@ func (client AnalyticsItemsClient) Get(ctx context.Context, resourceGroupName st Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnalyticsItemsClient", "Get", err.Error()) } @@ -251,8 +249,7 @@ func (client AnalyticsItemsClient) List(ctx context.Context, resourceGroupName s Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnalyticsItemsClient", "List", err.Error()) } @@ -357,8 +354,7 @@ func (client AnalyticsItemsClient) Put(ctx context.Context, resourceGroupName st Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnalyticsItemsClient", "Put", err.Error()) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/annotations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/annotations.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/annotations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/annotations.go index 44ba919dd8e0..aa31fd7d0e74 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/annotations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/annotations.go @@ -51,8 +51,7 @@ func (client AnnotationsClient) Create(ctx context.Context, resourceGroupName st if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnnotationsClient", "Create", err.Error()) @@ -140,8 +139,7 @@ func (client AnnotationsClient) Delete(ctx context.Context, resourceGroupName st if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnnotationsClient", "Delete", err.Error()) @@ -227,8 +225,7 @@ func (client AnnotationsClient) Get(ctx context.Context, resourceGroupName strin if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnnotationsClient", "Get", err.Error()) @@ -316,8 +313,7 @@ func (client AnnotationsClient) List(ctx context.Context, resourceGroupName stri if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.AnnotationsClient", "List", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/apikeys.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/apikeys.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/apikeys.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/apikeys.go index c82caeeab8fa..ca33d3c4c68d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/apikeys.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/apikeys.go @@ -51,8 +51,7 @@ func (client APIKeysClient) Create(ctx context.Context, resourceGroupName string if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.APIKeysClient", "Create", err.Error()) @@ -140,8 +139,7 @@ func (client APIKeysClient) Delete(ctx context.Context, resourceGroupName string if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.APIKeysClient", "Delete", err.Error()) @@ -228,8 +226,7 @@ func (client APIKeysClient) Get(ctx context.Context, resourceGroupName string, r if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.APIKeysClient", "Get", err.Error()) @@ -315,8 +312,7 @@ func (client APIKeysClient) List(ctx context.Context, resourceGroupName string, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.APIKeysClient", "List", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/client.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/client.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/client.go index 1bcbac325d9a..9203ed850c0c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/client.go @@ -1,4 +1,4 @@ -// Package insights implements the Azure ARM Insights service API version 2015-05-01. +// Package insights implements the Azure ARM Insights service API version . // // Composite Swagger for Application Insights Management Client package insights diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentavailablefeatures.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentavailablefeatures.go index 7b824be297a7..997a483b327f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentavailablefeatures.go @@ -50,8 +50,7 @@ func (client ComponentAvailableFeaturesClient) Get(ctx context.Context, resource if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentAvailableFeaturesClient", "Get", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentcurrentbillingfeatures.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentcurrentbillingfeatures.go index 19a1ce42b190..3416a616be9c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentcurrentbillingfeatures.go @@ -50,8 +50,7 @@ func (client ComponentCurrentBillingFeaturesClient) Get(ctx context.Context, res if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentCurrentBillingFeaturesClient", "Get", err.Error()) @@ -138,8 +137,7 @@ func (client ComponentCurrentBillingFeaturesClient) Update(ctx context.Context, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentCurrentBillingFeaturesClient", "Update", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentfeaturecapabilities.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentfeaturecapabilities.go index d4f7a3cc512e..0620681495e8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentfeaturecapabilities.go @@ -50,8 +50,7 @@ func (client ComponentFeatureCapabilitiesClient) Get(ctx context.Context, resour if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentFeatureCapabilitiesClient", "Get", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentquotastatus.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentquotastatus.go index 9a786872f5bc..98d79dda19cd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/componentquotastatus.go @@ -50,8 +50,7 @@ func (client ComponentQuotaStatusClient) Get(ctx context.Context, resourceGroupN if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentQuotaStatusClient", "Get", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/components.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/components.go similarity index 96% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/components.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/components.go index 4a7dab1e5367..edd860490ce2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/components.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/components.go @@ -51,8 +51,7 @@ func (client ComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroup if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: insightProperties, @@ -90,7 +89,7 @@ func (client ComponentsClient) CreateOrUpdatePreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -141,8 +140,7 @@ func (client ComponentsClient) Delete(ctx context.Context, resourceGroupName str if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentsClient", "Delete", err.Error()) @@ -178,7 +176,7 @@ func (client ComponentsClient) DeletePreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -226,8 +224,7 @@ func (client ComponentsClient) Get(ctx context.Context, resourceGroupName string if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentsClient", "Get", err.Error()) @@ -263,7 +260,7 @@ func (client ComponentsClient) GetPreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -313,8 +310,7 @@ func (client ComponentsClient) GetPurgeStatus(ctx context.Context, resourceGroup if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentsClient", "GetPurgeStatus", err.Error()) @@ -351,7 +347,7 @@ func (client ComponentsClient) GetPurgeStatusPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -433,7 +429,7 @@ func (client ComponentsClient) ListPreparer(ctx context.Context) (*http.Request, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -518,8 +514,7 @@ func (client ComponentsClient) ListByResourceGroup(ctx context.Context, resource if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentsClient", "ListByResourceGroup", err.Error()) @@ -559,7 +554,7 @@ func (client ComponentsClient) ListByResourceGroupPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -651,8 +646,7 @@ func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName stri if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: body, @@ -691,7 +685,7 @@ func (client ComponentsClient) PurgePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -743,8 +737,7 @@ func (client ComponentsClient) UpdateTags(ctx context.Context, resourceGroupName if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentsClient", "UpdateTags", err.Error()) @@ -780,7 +773,7 @@ func (client ComponentsClient) UpdateTagsPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2015-05-01" + const APIVersion = "2020-02-02" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/enums.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/enums.go similarity index 57% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/enums.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/enums.go index 7e437a00e2b3..f1909b5bbfbc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/enums.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/enums.go @@ -10,15 +10,15 @@ package insights type ApplicationType string const ( - // Other ... - Other ApplicationType = "other" - // Web ... - Web ApplicationType = "web" + // ApplicationTypeOther ... + ApplicationTypeOther ApplicationType = "other" + // ApplicationTypeWeb ... + ApplicationTypeWeb ApplicationType = "web" ) // PossibleApplicationTypeValues returns an array of possible values for the ApplicationType const type. func PossibleApplicationTypeValues() []ApplicationType { - return []ApplicationType{Other, Web} + return []ApplicationType{ApplicationTypeOther, ApplicationTypeWeb} } // CategoryType enumerates the values for category type. @@ -44,72 +44,72 @@ func PossibleCategoryTypeValues() []CategoryType { type FavoriteSourceType string const ( - // Events ... - Events FavoriteSourceType = "events" - // Funnel ... - Funnel FavoriteSourceType = "funnel" - // Impact ... - Impact FavoriteSourceType = "impact" - // Notebook ... - Notebook FavoriteSourceType = "notebook" - // Retention ... - Retention FavoriteSourceType = "retention" - // Segmentation ... - Segmentation FavoriteSourceType = "segmentation" - // Sessions ... - Sessions FavoriteSourceType = "sessions" - // Userflows ... - Userflows FavoriteSourceType = "userflows" + // FavoriteSourceTypeEvents ... + FavoriteSourceTypeEvents FavoriteSourceType = "events" + // FavoriteSourceTypeFunnel ... + FavoriteSourceTypeFunnel FavoriteSourceType = "funnel" + // FavoriteSourceTypeImpact ... + FavoriteSourceTypeImpact FavoriteSourceType = "impact" + // FavoriteSourceTypeNotebook ... + FavoriteSourceTypeNotebook FavoriteSourceType = "notebook" + // FavoriteSourceTypeRetention ... + FavoriteSourceTypeRetention FavoriteSourceType = "retention" + // FavoriteSourceTypeSegmentation ... + FavoriteSourceTypeSegmentation FavoriteSourceType = "segmentation" + // FavoriteSourceTypeSessions ... + FavoriteSourceTypeSessions FavoriteSourceType = "sessions" + // FavoriteSourceTypeUserflows ... + FavoriteSourceTypeUserflows FavoriteSourceType = "userflows" ) // PossibleFavoriteSourceTypeValues returns an array of possible values for the FavoriteSourceType const type. func PossibleFavoriteSourceTypeValues() []FavoriteSourceType { - return []FavoriteSourceType{Events, Funnel, Impact, Notebook, Retention, Segmentation, Sessions, Userflows} + return []FavoriteSourceType{FavoriteSourceTypeEvents, FavoriteSourceTypeFunnel, FavoriteSourceTypeImpact, FavoriteSourceTypeNotebook, FavoriteSourceTypeRetention, FavoriteSourceTypeSegmentation, FavoriteSourceTypeSessions, FavoriteSourceTypeUserflows} } // FavoriteType enumerates the values for favorite type. type FavoriteType string const ( - // Shared ... - Shared FavoriteType = "shared" - // User ... - User FavoriteType = "user" + // FavoriteTypeShared ... + FavoriteTypeShared FavoriteType = "shared" + // FavoriteTypeUser ... + FavoriteTypeUser FavoriteType = "user" ) // PossibleFavoriteTypeValues returns an array of possible values for the FavoriteType const type. func PossibleFavoriteTypeValues() []FavoriteType { - return []FavoriteType{Shared, User} + return []FavoriteType{FavoriteTypeShared, FavoriteTypeUser} } // FlowType enumerates the values for flow type. type FlowType string const ( - // Bluefield ... - Bluefield FlowType = "Bluefield" + // FlowTypeBluefield ... + FlowTypeBluefield FlowType = "Bluefield" ) // PossibleFlowTypeValues returns an array of possible values for the FlowType const type. func PossibleFlowTypeValues() []FlowType { - return []FlowType{Bluefield} + return []FlowType{FlowTypeBluefield} } // IngestionMode enumerates the values for ingestion mode. type IngestionMode string const ( - // ApplicationInsights ... - ApplicationInsights IngestionMode = "ApplicationInsights" - // ApplicationInsightsWithDiagnosticSettings ... - ApplicationInsightsWithDiagnosticSettings IngestionMode = "ApplicationInsightsWithDiagnosticSettings" - // LogAnalytics ... - LogAnalytics IngestionMode = "LogAnalytics" + // IngestionModeApplicationInsights ... + IngestionModeApplicationInsights IngestionMode = "ApplicationInsights" + // IngestionModeApplicationInsightsWithDiagnosticSettings ... + IngestionModeApplicationInsightsWithDiagnosticSettings IngestionMode = "ApplicationInsightsWithDiagnosticSettings" + // IngestionModeLogAnalytics ... + IngestionModeLogAnalytics IngestionMode = "LogAnalytics" ) // PossibleIngestionModeValues returns an array of possible values for the IngestionMode const type. func PossibleIngestionModeValues() []IngestionMode { - return []IngestionMode{ApplicationInsights, ApplicationInsightsWithDiagnosticSettings, LogAnalytics} + return []IngestionMode{IngestionModeApplicationInsights, IngestionModeApplicationInsightsWithDiagnosticSettings, IngestionModeLogAnalytics} } // ItemScope enumerates the values for item scope. @@ -131,34 +131,34 @@ func PossibleItemScopeValues() []ItemScope { type ItemScopePath string const ( - // AnalyticsItems ... - AnalyticsItems ItemScopePath = "analyticsItems" - // MyanalyticsItems ... - MyanalyticsItems ItemScopePath = "myanalyticsItems" + // ItemScopePathAnalyticsItems ... + ItemScopePathAnalyticsItems ItemScopePath = "analyticsItems" + // ItemScopePathMyanalyticsItems ... + ItemScopePathMyanalyticsItems ItemScopePath = "myanalyticsItems" ) // PossibleItemScopePathValues returns an array of possible values for the ItemScopePath const type. func PossibleItemScopePathValues() []ItemScopePath { - return []ItemScopePath{AnalyticsItems, MyanalyticsItems} + return []ItemScopePath{ItemScopePathAnalyticsItems, ItemScopePathMyanalyticsItems} } // ItemType enumerates the values for item type. type ItemType string const ( - // Folder ... - Folder ItemType = "folder" - // Function ... - Function ItemType = "function" - // Query ... - Query ItemType = "query" - // Recent ... - Recent ItemType = "recent" + // ItemTypeFolder ... + ItemTypeFolder ItemType = "folder" + // ItemTypeFunction ... + ItemTypeFunction ItemType = "function" + // ItemTypeQuery ... + ItemTypeQuery ItemType = "query" + // ItemTypeRecent ... + ItemTypeRecent ItemType = "recent" ) // PossibleItemTypeValues returns an array of possible values for the ItemType const type. func PossibleItemTypeValues() []ItemType { - return []ItemType{Folder, Function, Query, Recent} + return []ItemType{ItemTypeFolder, ItemTypeFunction, ItemTypeQuery, ItemTypeRecent} } // ItemTypeParameter enumerates the values for item type parameter. @@ -182,32 +182,47 @@ func PossibleItemTypeParameterValues() []ItemTypeParameter { return []ItemTypeParameter{ItemTypeParameterFolder, ItemTypeParameterFunction, ItemTypeParameterNone, ItemTypeParameterQuery, ItemTypeParameterRecent} } +// PublicNetworkAccessType enumerates the values for public network access type. +type PublicNetworkAccessType string + +const ( + // PublicNetworkAccessTypeDisabled Disables public connectivity to Application Insights through public DNS. + PublicNetworkAccessTypeDisabled PublicNetworkAccessType = "Disabled" + // PublicNetworkAccessTypeEnabled Enables connectivity to Application Insights through public DNS. + PublicNetworkAccessTypeEnabled PublicNetworkAccessType = "Enabled" +) + +// PossiblePublicNetworkAccessTypeValues returns an array of possible values for the PublicNetworkAccessType const type. +func PossiblePublicNetworkAccessTypeValues() []PublicNetworkAccessType { + return []PublicNetworkAccessType{PublicNetworkAccessTypeDisabled, PublicNetworkAccessTypeEnabled} +} + // PurgeState enumerates the values for purge state. type PurgeState string const ( - // Completed ... - Completed PurgeState = "completed" - // Pending ... - Pending PurgeState = "pending" + // PurgeStateCompleted ... + PurgeStateCompleted PurgeState = "completed" + // PurgeStatePending ... + PurgeStatePending PurgeState = "pending" ) // PossiblePurgeStateValues returns an array of possible values for the PurgeState const type. func PossiblePurgeStateValues() []PurgeState { - return []PurgeState{Completed, Pending} + return []PurgeState{PurgeStateCompleted, PurgeStatePending} } // RequestSource enumerates the values for request source. type RequestSource string const ( - // Rest ... - Rest RequestSource = "rest" + // RequestSourceRest ... + RequestSourceRest RequestSource = "rest" ) // PossibleRequestSourceValues returns an array of possible values for the RequestSource const type. func PossibleRequestSourceValues() []RequestSource { - return []RequestSource{Rest} + return []RequestSource{RequestSourceRest} } // SharedTypeKind enumerates the values for shared type kind. @@ -229,13 +244,13 @@ func PossibleSharedTypeKindValues() []SharedTypeKind { type WebTestKind string const ( - // Multistep ... - Multistep WebTestKind = "multistep" - // Ping ... - Ping WebTestKind = "ping" + // WebTestKindMultistep ... + WebTestKindMultistep WebTestKind = "multistep" + // WebTestKindPing ... + WebTestKindPing WebTestKind = "ping" ) // PossibleWebTestKindValues returns an array of possible values for the WebTestKind const type. func PossibleWebTestKindValues() []WebTestKind { - return []WebTestKind{Multistep, Ping} + return []WebTestKind{WebTestKindMultistep, WebTestKindPing} } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/exportconfigurations.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/exportconfigurations.go index 668a155a8370..8543b8d411df 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/exportconfigurations.go @@ -52,8 +52,7 @@ func (client ExportConfigurationsClient) Create(ctx context.Context, resourceGro if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ExportConfigurationsClient", "Create", err.Error()) @@ -141,8 +140,7 @@ func (client ExportConfigurationsClient) Delete(ctx context.Context, resourceGro if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ExportConfigurationsClient", "Delete", err.Error()) @@ -229,8 +227,7 @@ func (client ExportConfigurationsClient) Get(ctx context.Context, resourceGroupN if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ExportConfigurationsClient", "Get", err.Error()) @@ -316,8 +313,7 @@ func (client ExportConfigurationsClient) List(ctx context.Context, resourceGroup if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ExportConfigurationsClient", "List", err.Error()) @@ -404,8 +400,7 @@ func (client ExportConfigurationsClient) Update(ctx context.Context, resourceGro if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ExportConfigurationsClient", "Update", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/favorites.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/favorites.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/favorites.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/favorites.go index 9edd56e83328..732fca754804 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/favorites.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/favorites.go @@ -52,8 +52,7 @@ func (client FavoritesClient) Add(ctx context.Context, resourceGroupName string, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.FavoritesClient", "Add", err.Error()) @@ -145,8 +144,7 @@ func (client FavoritesClient) Delete(ctx context.Context, resourceGroupName stri if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.FavoritesClient", "Delete", err.Error()) @@ -232,8 +230,7 @@ func (client FavoritesClient) Get(ctx context.Context, resourceGroupName string, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.FavoritesClient", "Get", err.Error()) @@ -325,8 +322,7 @@ func (client FavoritesClient) List(ctx context.Context, resourceGroupName string if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.FavoritesClient", "List", err.Error()) @@ -427,8 +423,7 @@ func (client FavoritesClient) Update(ctx context.Context, resourceGroupName stri if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.FavoritesClient", "Update", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/models.go similarity index 95% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/models.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/models.go index 4a23033075cf..b8d4af6e0655 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/models.go @@ -17,7 +17,7 @@ import ( ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" +const fqdn = "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights" // Annotation annotation associated with an application insights resource. type Annotation struct { @@ -72,6 +72,8 @@ type ApplicationInsightsComponent struct { autorest.Response `json:"-"` // Kind - The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone. Kind *string `json:"kind,omitempty"` + // Etag - Resource etag + Etag *string `json:"etag,omitempty"` // ApplicationInsightsComponentProperties - Properties that define an Application Insights component resource. *ApplicationInsightsComponentProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id @@ -92,6 +94,9 @@ func (aic ApplicationInsightsComponent) MarshalJSON() ([]byte, error) { if aic.Kind != nil { objectMap["kind"] = aic.Kind } + if aic.Etag != nil { + objectMap["etag"] = aic.Etag + } if aic.ApplicationInsightsComponentProperties != nil { objectMap["properties"] = aic.ApplicationInsightsComponentProperties } @@ -122,6 +127,15 @@ func (aic *ApplicationInsightsComponent) UnmarshalJSON(body []byte) error { } aic.Kind = &kind } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + aic.Etag = &etag + } case "properties": if v != nil { var applicationInsightsComponentProperties ApplicationInsightsComponentProperties @@ -196,7 +210,7 @@ type ApplicationInsightsComponentAnalyticsItem struct { Version *string `json:"Version,omitempty"` // Scope - Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'ItemScopeShared', 'ItemScopeUser' Scope ItemScope `json:"Scope,omitempty"` - // Type - Enum indicating the type of the Analytics item. Possible values include: 'Query', 'Function', 'Folder', 'Recent' + // Type - Enum indicating the type of the Analytics item. Possible values include: 'ItemTypeQuery', 'ItemTypeFunction', 'ItemTypeFolder', 'ItemTypeRecent' Type ItemType `json:"Type,omitempty"` // TimeCreated - READ-ONLY; Date and time in UTC when this item was created. TimeCreated *string `json:"TimeCreated,omitempty"` @@ -427,7 +441,7 @@ type ApplicationInsightsComponentFavorite struct { Version *string `json:"Version,omitempty"` // FavoriteID - READ-ONLY; Internally assigned unique id of the favorite definition. FavoriteID *string `json:"FavoriteId,omitempty"` - // FavoriteType - Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'Shared', 'User' + // FavoriteType - Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'FavoriteTypeShared', 'FavoriteTypeUser' FavoriteType FavoriteType `json:"FavoriteType,omitempty"` // SourceType - The source of the favorite definition. SourceType *string `json:"SourceType,omitempty"` @@ -772,11 +786,13 @@ type ApplicationInsightsComponentProperties struct { ApplicationID *string `json:"ApplicationId,omitempty"` // AppID - READ-ONLY; Application Insights Unique ID for your Application. AppID *string `json:"AppId,omitempty"` - // ApplicationType - Type of application being monitored. Possible values include: 'Web', 'Other' + // Name - READ-ONLY; Application name. + Name *string `json:"Name,omitempty"` + // ApplicationType - Type of application being monitored. Possible values include: 'ApplicationTypeWeb', 'ApplicationTypeOther' ApplicationType ApplicationType `json:"Application_Type,omitempty"` - // FlowType - Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API. Possible values include: 'Bluefield' + // FlowType - Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API. Possible values include: 'FlowTypeBluefield' FlowType FlowType `json:"Flow_Type,omitempty"` - // RequestSource - Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'. Possible values include: 'Rest' + // RequestSource - Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'. Possible values include: 'RequestSourceRest' RequestSource RequestSource `json:"Request_Source,omitempty"` // InstrumentationKey - READ-ONLY; Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component. InstrumentationKey *string `json:"InstrumentationKey,omitempty"` @@ -800,10 +816,22 @@ type ApplicationInsightsComponentProperties struct { DisableIPMasking *bool `json:"DisableIpMasking,omitempty"` // ImmediatePurgeDataOn30Days - Purge data immediately after 30 days. ImmediatePurgeDataOn30Days *bool `json:"ImmediatePurgeDataOn30Days,omitempty"` + // WorkspaceResourceID - Resource Id of the log analytics workspace which the data will be ingested to. This property is required to create an application with this API version. Applications from older versions will not have this property. + WorkspaceResourceID *string `json:"WorkspaceResourceId,omitempty"` + // LaMigrationDate - READ-ONLY; The date which the component got migrated to LA, in ISO 8601 format. + LaMigrationDate *date.Time `json:"LaMigrationDate,omitempty"` // PrivateLinkScopedResources - READ-ONLY; List of linked private link scope resources. PrivateLinkScopedResources *[]PrivateLinkScopedResource `json:"PrivateLinkScopedResources,omitempty"` - // IngestionMode - Indicates the flow of the ingestion. Possible values include: 'ApplicationInsights', 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics' + // PublicNetworkAccessForIngestion - The network access type for accessing Application Insights ingestion. Possible values include: 'PublicNetworkAccessTypeEnabled', 'PublicNetworkAccessTypeDisabled' + PublicNetworkAccessForIngestion PublicNetworkAccessType `json:"publicNetworkAccessForIngestion,omitempty"` + // PublicNetworkAccessForQuery - The network access type for accessing Application Insights query. Possible values include: 'PublicNetworkAccessTypeEnabled', 'PublicNetworkAccessTypeDisabled' + PublicNetworkAccessForQuery PublicNetworkAccessType `json:"publicNetworkAccessForQuery,omitempty"` + // IngestionMode - Indicates the flow of the ingestion. Possible values include: 'IngestionModeApplicationInsights', 'IngestionModeApplicationInsightsWithDiagnosticSettings', 'IngestionModeLogAnalytics' IngestionMode IngestionMode `json:"IngestionMode,omitempty"` + // DisableLocalAuth - Disable Non-AAD based Auth. + DisableLocalAuth *bool `json:"DisableLocalAuth,omitempty"` + // ForceCustomerStorageForProfiler - Force users to create their own storage account for profiler and debugger. + ForceCustomerStorageForProfiler *bool `json:"ForceCustomerStorageForProfiler,omitempty"` } // MarshalJSON is the custom marshaler for ApplicationInsightsComponentProperties. @@ -833,9 +861,24 @@ func (aicp ApplicationInsightsComponentProperties) MarshalJSON() ([]byte, error) if aicp.ImmediatePurgeDataOn30Days != nil { objectMap["ImmediatePurgeDataOn30Days"] = aicp.ImmediatePurgeDataOn30Days } + if aicp.WorkspaceResourceID != nil { + objectMap["WorkspaceResourceId"] = aicp.WorkspaceResourceID + } + if aicp.PublicNetworkAccessForIngestion != "" { + objectMap["publicNetworkAccessForIngestion"] = aicp.PublicNetworkAccessForIngestion + } + if aicp.PublicNetworkAccessForQuery != "" { + objectMap["publicNetworkAccessForQuery"] = aicp.PublicNetworkAccessForQuery + } if aicp.IngestionMode != "" { objectMap["IngestionMode"] = aicp.IngestionMode } + if aicp.DisableLocalAuth != nil { + objectMap["DisableLocalAuth"] = aicp.DisableLocalAuth + } + if aicp.ForceCustomerStorageForProfiler != nil { + objectMap["ForceCustomerStorageForProfiler"] = aicp.ForceCustomerStorageForProfiler + } return json.Marshal(objectMap) } @@ -909,7 +952,7 @@ type ComponentPurgeResponse struct { // ComponentPurgeStatusResponse response containing status for a specific purge operation. type ComponentPurgeStatusResponse struct { autorest.Response `json:"-"` - // Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed' + // Status - Status of the operation represented by the requested Id. Possible values include: 'PurgeStatePending', 'PurgeStateCompleted' Status PurgeState `json:"status,omitempty"` } @@ -958,6 +1001,27 @@ type ErrorResponse struct { Message *string `json:"message,omitempty"` } +// ErrorResponseComponents ... +type ErrorResponseComponents struct { + // Error - Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. + Error *ErrorResponseComponentsError `json:"error,omitempty"` +} + +// ErrorResponseComponentsError error response indicates Insights service is not able to process the +// incoming request. The reason is provided in the error message. +type ErrorResponseComponentsError struct { + // Code - READ-ONLY; Error code. + Code *string `json:"code,omitempty"` + // Message - READ-ONLY; Error message indicating why the operation failed. + Message *string `json:"message,omitempty"` +} + +// MarshalJSON is the custom marshaler for ErrorResponseComponentsError. +func (erc ErrorResponseComponentsError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // InnerError inner error type InnerError struct { // Diagnosticcontext - Provides correlation for request @@ -1437,7 +1501,7 @@ func (tr TagsResource) MarshalJSON() ([]byte, error) { // WebTest an Application Insights web test definition. type WebTest struct { autorest.Response `json:"-"` - // Kind - The kind of web test that this web test watches. Choices are ping and multistep. Possible values include: 'Ping', 'Multistep' + // Kind - The kind of web test that this web test watches. Choices are ping and multistep. Possible values include: 'WebTestKindPing', 'WebTestKindMultistep' Kind WebTestKind `json:"kind,omitempty"` // WebTestProperties - Metadata describing a web test for an Azure resource. *WebTestProperties `json:"properties,omitempty"` @@ -1729,7 +1793,7 @@ type WebTestProperties struct { Frequency *int32 `json:"Frequency,omitempty"` // Timeout - Seconds until this WebTest will timeout and fail. Default value is 30. Timeout *int32 `json:"Timeout,omitempty"` - // WebTestKind - The kind of web test this is, valid choices are ping and multistep. Possible values include: 'Ping', 'Multistep' + // WebTestKind - The kind of web test this is, valid choices are ping and multistep. Possible values include: 'WebTestKindPing', 'WebTestKindMultistep' WebTestKind WebTestKind `json:"Kind,omitempty"` // RetryEnabled - Allow for retries should this WebTest fail. RetryEnabled *bool `json:"RetryEnabled,omitempty"` diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/myworkbooks.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/myworkbooks.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/myworkbooks.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/myworkbooks.go index 5110ff178a32..0f11b643e8bc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/myworkbooks.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/myworkbooks.go @@ -52,8 +52,7 @@ func (client MyWorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGrou Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: workbookProperties, Constraints: []validation.Constraint{{Target: "workbookProperties.MyWorkbookProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "workbookProperties.MyWorkbookProperties.DisplayName", Name: validation.Null, Rule: true, Chain: nil}, @@ -146,8 +145,7 @@ func (client MyWorkbooksClient) Delete(ctx context.Context, resourceGroupName st Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.MyWorkbooksClient", "Delete", err.Error()) } @@ -231,8 +229,7 @@ func (client MyWorkbooksClient) Get(ctx context.Context, resourceGroupName strin Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.MyWorkbooksClient", "Get", err.Error()) } @@ -320,8 +317,7 @@ func (client MyWorkbooksClient) ListByResourceGroup(ctx context.Context, resourc Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.MyWorkbooksClient", "ListByResourceGroup", err.Error()) } @@ -502,8 +498,7 @@ func (client MyWorkbooksClient) Update(ctx context.Context, resourceGroupName st Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.MyWorkbooksClient", "Update", err.Error()) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/operations.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/operations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/operations.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/proactivedetectionconfigurations.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/proactivedetectionconfigurations.go index 646c0107a4a4..78223d23395b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/proactivedetectionconfigurations.go @@ -52,8 +52,7 @@ func (client ProactiveDetectionConfigurationsClient) Get(ctx context.Context, re if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ProactiveDetectionConfigurationsClient", "Get", err.Error()) @@ -139,8 +138,7 @@ func (client ProactiveDetectionConfigurationsClient) List(ctx context.Context, r if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ProactiveDetectionConfigurationsClient", "List", err.Error()) @@ -229,8 +227,7 @@ func (client ProactiveDetectionConfigurationsClient) Update(ctx context.Context, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ProactiveDetectionConfigurationsClient", "Update", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/version.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/version.go similarity index 90% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/version.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/version.go index 3239335392d9..10d9415d4af7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/version.go @@ -10,7 +10,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + Version() + " insights/2015-05-01" + return "Azure-SDK-For-Go/" + Version() + " insights/2020-02-02" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/webtestlocations.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/webtestlocations.go index 84963a68379b..dcb3923ba146 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/webtestlocations.go @@ -50,8 +50,7 @@ func (client WebTestLocationsClient) List(ctx context.Context, resourceGroupName if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WebTestLocationsClient", "List", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtests.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/webtests.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtests.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/webtests.go index 04768305c609..cb9450fdee91 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtests.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/webtests.go @@ -51,8 +51,7 @@ func (client WebTestsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: webTestDefinition, @@ -147,8 +146,7 @@ func (client WebTestsClient) Delete(ctx context.Context, resourceGroupName strin Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WebTestsClient", "Delete", err.Error()) } @@ -230,8 +228,7 @@ func (client WebTestsClient) Get(ctx context.Context, resourceGroupName string, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WebTestsClient", "Get", err.Error()) @@ -435,8 +432,7 @@ func (client WebTestsClient) ListByComponent(ctx context.Context, componentName if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WebTestsClient", "ListByComponent", err.Error()) @@ -562,8 +558,7 @@ func (client WebTestsClient) ListByResourceGroup(ctx context.Context, resourceGr if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WebTestsClient", "ListByResourceGroup", err.Error()) @@ -690,8 +685,7 @@ func (client WebTestsClient) UpdateTags(ctx context.Context, resourceGroupName s if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WebTestsClient", "UpdateTags", err.Error()) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workbooks.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/workbooks.go similarity index 96% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workbooks.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/workbooks.go index b11fc21428fd..e30bd2ce8bb4 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workbooks.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/workbooks.go @@ -52,8 +52,7 @@ func (client WorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGroupN Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: workbookProperties, Constraints: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties.Name", Name: validation.Null, Rule: true, Chain: nil}, @@ -148,8 +147,7 @@ func (client WorkbooksClient) Delete(ctx context.Context, resourceGroupName stri Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkbooksClient", "Delete", err.Error()) } @@ -233,8 +231,7 @@ func (client WorkbooksClient) Get(ctx context.Context, resourceGroupName string, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkbooksClient", "Get", err.Error()) } @@ -322,8 +319,7 @@ func (client WorkbooksClient) ListByResourceGroup(ctx context.Context, resourceG Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkbooksClient", "ListByResourceGroup", err.Error()) } @@ -415,8 +411,7 @@ func (client WorkbooksClient) Update(ctx context.Context, resourceGroupName stri Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkbooksClient", "Update", err.Error()) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/workitemconfigurations.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/workitemconfigurations.go index 10c6e0ba0e4a..c46789bddc6e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights/workitemconfigurations.go @@ -52,8 +52,7 @@ func (client WorkItemConfigurationsClient) Create(ctx context.Context, resourceG if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkItemConfigurationsClient", "Create", err.Error()) @@ -142,8 +141,7 @@ func (client WorkItemConfigurationsClient) Delete(ctx context.Context, resourceG if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkItemConfigurationsClient", "Delete", err.Error()) @@ -228,8 +226,7 @@ func (client WorkItemConfigurationsClient) GetDefault(ctx context.Context, resou if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkItemConfigurationsClient", "GetDefault", err.Error()) @@ -316,8 +313,7 @@ func (client WorkItemConfigurationsClient) GetItem(ctx context.Context, resource if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkItemConfigurationsClient", "GetItem", err.Error()) @@ -403,8 +399,7 @@ func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGro if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkItemConfigurationsClient", "List", err.Error()) @@ -493,8 +488,7 @@ func (client WorkItemConfigurationsClient) UpdateItem(ctx context.Context, resou if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.WorkItemConfigurationsClient", "UpdateItem", err.Error()) diff --git a/vendor/modules.txt b/vendor/modules.txt index aa8b05cc6fd2..ba7a631c5dbf 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -16,7 +16,7 @@ github.com/Azure/azure-sdk-for-go/services/aad/mgmt/2017-04-01/aad github.com/Azure/azure-sdk-for-go/services/advisor/mgmt/2020-01-01/advisor github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2020-12-01/apimanagement github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2020-06-01/appconfiguration -github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights +github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2020-02-02/insights github.com/Azure/azure-sdk-for-go/services/attestation/mgmt/2018-09-01/attestation github.com/Azure/azure-sdk-for-go/services/azurestackhci/mgmt/2020-10-01/azurestackhci github.com/Azure/azure-sdk-for-go/services/batch/2020-03-01.11.0/batch diff --git a/website/docs/d/application_insights.html.markdown b/website/docs/d/application_insights.html.markdown index e20ec570c3aa..37762e045686 100644 --- a/website/docs/d/application_insights.html.markdown +++ b/website/docs/d/application_insights.html.markdown @@ -37,6 +37,7 @@ output "application_insights_instrumentation_key" { * `connection_string` - The connection string of the Application Insights component. (Sensitive) * `location` - The Azure location where the component exists. * `retention_in_days` - The retention period in days. +* `workspace_id` - The id of the associated Log Analytics workspace * `tags` - Tags applied to the component. ## Timeouts diff --git a/website/docs/r/application_insights.html.markdown b/website/docs/r/application_insights.html.markdown index 42cea34b3d03..3535701d6319 100644 --- a/website/docs/r/application_insights.html.markdown +++ b/website/docs/r/application_insights.html.markdown @@ -34,6 +34,40 @@ output "app_id" { } ``` +## Example Usage - Workspace Mode + +```hcl +resource "azurerm_resource_group" "example" { + name = "tf-test" + location = "West Europe" +} + +resource "azurerm_log_analytics_workspace" "example" { + name = "workspace-test" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + sku = "PerGB2018" + retention_in_days = 30 +} + +resource "azurerm_application_insights" "example" { + name = "tf-test-appinsights" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + workspace_id = azurerm_log_analytics_workspace.example.id + application_type = "web" +} + +output "instrumentation_key" { + value = azurerm_application_insights.example.instrumentation_key +} + +output "app_id" { + value = azurerm_application_insights.example.app_id +} +``` + + ## Argument Reference The following arguments are supported: @@ -60,6 +94,8 @@ The following arguments are supported: * `tags` - (Optional) A mapping of tags to assign to the resource. +* `workspace_id` - (Optional) Specifies the id of a log analytics workspace resource + ## Attributes Reference The following attributes are exported: