From 9f29c7cafd2dc1c98ca4ccc5001159a4f6c6e9f8 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Wed, 11 Oct 2023 15:07:00 -0700 Subject: [PATCH] Prepare azappconfig for v1.0.0 release (#21747) * Prepare azappconfig for v1.0.0 release Cleaned up README and added testable examples. * skip examples when there's no connection string * remove testable output checks * remove printing from testable examples --- sdk/data/azappconfig/CHANGELOG.md | 7 +- sdk/data/azappconfig/README.md | 341 +++----------------------- sdk/data/azappconfig/examples_test.go | 244 ++++++++++++++++++ sdk/data/azappconfig/go.mod | 12 +- sdk/data/azappconfig/go.sum | 27 +- sdk/data/azappconfig/version.go | 2 +- 6 files changed, 311 insertions(+), 322 deletions(-) create mode 100644 sdk/data/azappconfig/examples_test.go diff --git a/sdk/data/azappconfig/CHANGELOG.md b/sdk/data/azappconfig/CHANGELOG.md index 1635a853c15c..b5c156a4b23c 100644 --- a/sdk/data/azappconfig/CHANGELOG.md +++ b/sdk/data/azappconfig/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 0.6.1 (Unreleased) - -### Features Added - -### Breaking Changes +## 1.0.0 (2023-10-11) ### Bugs Fixed * Check for a `Sync-Token` value before updating the cache. ### Other Changes +* Cleaned up docs and added examples. ## 0.6.0 (2023-09-20) diff --git a/sdk/data/azappconfig/README.md b/sdk/data/azappconfig/README.md index 0042571235db..382f4b649644 100644 --- a/sdk/data/azappconfig/README.md +++ b/sdk/data/azappconfig/README.md @@ -1,329 +1,46 @@ -# Azure App Configuration client library for Go +# Azure App Configuration Client Module for Go + Azure App Configuration is a managed service that helps developers centralize their application and feature settings simply and securely. It allows you to create and manage application configuration settings and retrieve their revisions from a specific point in time. -[Source code][appconfig_client_src] | [Package (pkg.go.dev)][goget_azappconfig] | [Product documentation][appconfig_docs] +[Source code][azappconfig_src] | [Package (pkg.go.dev)][azappconfig] | [Product documentation][appconfig_docs] ## Getting started -### Install packages -Install [azappconfig][goget_azappconfig] with `go get`: -```Bash -go get github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig -``` - -### Prerequisites -* An [Azure subscription][azure_sub] -* Go version 1.18 or higher -* An App Configuration store. If you need to create one, you can use the [Azure Cloud Shell][azure_cloud_shell] to create one with these commands (replace `"my-resource-group"` and `"my-app-config"` with your own, unique -names): - - (Optional) if you want a new resource group to hold the Azure App Configuration: - ```sh - az group create --name my-resource-group --location westus2 - ``` - Create the Key Vault: - ```Bash - az appconfig create --resource-group my-resource-group --name my-app-config --location westus2 - ``` +### Install the module - Output: - ```json - { - "creationDate": "...", - "endpoint": "https://my-app-config.azconfig.io", - "id": "/subscriptions/.../resourceGroups/my-resource-group/providers/Microsoft.AppConfiguration/configurationStores/my-app-config", - "location": "westus2", - "name": "my-app-config", - "provisioningState": "Succeeded", - "resourceGroup": "my-resource-group", - "tags": {}, - "type": "Microsoft.AppConfiguration/configurationStores" - } - ``` +Install `azappconfig` with `go get`: - > The `"endpoint"` property is the `endpointUrl` used by [Client][appconfig_client_src] - -### Authenticate the client -This document demonstrates using the connection string. However, [Client][appconfig_client_src] accepts any [azidentity][azure_identity] credential. See the [azidentity][azure_identity] documentation for more information about other credentials. - -#### Create a client -Constructing the client requires your App Configuration connection string, which you can get from the Azure Portal. ```Bash -export APPCONFIGURATION_CONNECTION_STRING="Endpoint=https://my-app-config.azconfig.io;Id=...;Secret=..." -``` - -```go -import ( - "os" - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" -) - -client, err = azappconfig.NewClientFromConnectionString(os.Getenv("APPCONFIGURATION_CONNECTION_STRING"), nil) -``` - -Or, using Default Azure Credential from Azure Identity: - -```go -import ( - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" -) - -credential, err := azidentity.NewDefaultAzureCredential(nil) - -client, err = azappconfig.NewClient("https://my-app-config.azconfig.io", credential, nil) -``` - -## Examples -This section contains code snippets covering common tasks: -* [Add a configuration setting](#add-a-configuration-setting "Add a configuration setting") -* [Get a configuration setting](#get-a-configuration-setting "Get a configuration setting") -* [Set a configuration setting](#set-a-configuration-setting "Set a configuration setting") -* [Set a configuration setting read only](#set-a-configuration-setting-read-only "Set a configuration setting read only") -* [List configuration setting revisions](#list-configuration-setting-revisions "List configuration setting revisions") -* [Delete a configuration setting](#set-a-configuration-setting "Delete a configuration setting") - -### Add a configuration setting - -```go -import ( - "fmt" - "os" - - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" -) - -func ExampleAddConfigurationSetting() { - connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") - client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) - if err != nil { - panic(err) - } - - // Create configuration setting - resp, err := client.AddSetting( - context.TODO(), - "key", - to.Ptr("value"), - &azappconfig.AddSettingOptions{ - Label: to.Ptr("label"), - }) - - if err != nil { - panic(err) - } - - fmt.Println(*resp.Key) - fmt.Println(*resp.Label) - fmt.Println(*resp.Value) -} -``` - -### Get a configuration setting - -```go -import ( - "fmt" - "os" - - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" -) - -func ExampleGetConfigurationSetting() { - connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") - client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) - if err != nil { - panic(err) - } - - // Get configuration setting - resp, err := client.GetSetting( - context.TODO(), - "key", - &azappconfig.GetSettingOptions{ - Label: to.Ptr("label"), - }) - - if err != nil { - panic(err) - } - - fmt.Println(*resp.Key) - fmt.Println(*resp.Label) - fmt.Println(*resp.Value) -} -``` - -### Set a configuration setting - -```go -import ( - "fmt" - "os" - - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" -) - -func ExampleSetConfigurationSetting() { - connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") - client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) - if err != nil { - panic(err) - } - - // Set configuration setting - resp, err := client.SetSetting( - context.TODO(), - "key", - to.Ptr("new_value"), - &azappconfig.SetSettingOptions{ - Label: to.Ptr("label"), - }) - - if err != nil { - panic(err) - } - - fmt.Println(*resp.Key) - fmt.Println(*resp.Label) - fmt.Println(*resp.Value) -} -``` - -### Set a configuration setting read only - -```go -import ( - "fmt" - "os" - - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" -) - -func ExampleSetConfigurationSettingReadOnly() { - connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") - client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) - if err != nil { - panic(err) - } - - // Set configuration setting read only - resp, err := client.SetReadOnly( - context.TODO(), - "key", - true, - &azappconfig.SetReadOnlyOptions{ - Label: to.Ptr("label"), - }) - - if err != nil { - panic(err) - } - - fmt.Println(*resp.Key) - fmt.Println(*resp.Label) - fmt.Println(*resp.Value) - fmt.Println(*resp.IsReadOnly) - - // Remove read only status - resp, err := client.SetReadOnly( - context.TODO(), - "key", - false, - &azappconfig.SetReadOnlyOptions{ - Label: to.Ptr("label"), - }) - - if err != nil { - panic(err) - } - - fmt.Println(*resp.Key) - fmt.Println(*resp.Label) - fmt.Println(*resp.Value) - fmt.Println(*resp.IsReadOnly) -} +go get github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig ``` -### List configuration setting revisions - -```go -import ( - "fmt" - "os" +### Prerequisites - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" -) +* An [Azure subscription][azure_sub] +* A supported Go version (the Azure SDK supports the two most recent Go releases) +* A Configuration store. If you need to create one, see the App Configuration documentation for instructions on doing so in the [Azure Portal][appconfig_portal] or with the [Azure CLI][appconfig_cli]. -func ExampleListRevisions() { - connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") - client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) - if err != nil { - panic(err) - } +### Authentication - revPgr := client.NewListRevisionsPager( - azappconfig.SettingSelector{ - KeyFilter: to.Ptr("*"), - LabelFilter: to.Ptr("*"), - Fields: azappconfig.AllSettingFields(), - }, - nil) +Azure App Configuration supports authenticating with Azure Active Directory and connection strings. To authenticate with Azure Active Directory, use the [azappconfig.NewClient][azappconfig_newclient] constructor and to authenticate with a connection string, use the [azappconfig.NewClientFromConnectionString][azappconfig_newclientfromconnectionstring] constructor. For simplicity, the examples demonstrate authenticating with a connection string. - for revPgr.More() { - if revResp, revErr := revPgr.NextPage(context.TODO()); revErr == nil { - for _, setting := range revResp.Settings { - fmt.Println(*setting.Key) - fmt.Println(*setting.Label) - fmt.Println(*setting.Value) - fmt.Println(*setting.IsReadOnly) - } - } - } -} -``` +See the [azidentity][azure_identity] documentation for more information about possible Azure Active Directory credential types. -### Delete a configuration setting +## Key concepts -```go -import ( - "fmt" - "os" +A [Setting][azappconfig_setting] is the fundamental resource within a Configuration Store. In its simplest form, it is a key and a value. However, there are additional properties such as the modifiable content type and tags fields that allow the value to be interpreted or associated in different ways. - "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" -) +The [Label][label_concept] property of a Setting provides a way to separate Settings into different dimensions. These dimensions are user defined and can take any form. Some common examples of dimensions to use for a label include regions, semantic versions, or environments. Many applications have a required set of configuration keys that have varying values as the application exists across different dimensions. -func ExampleDeleteConfigurationSetting() { - connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") - client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) - if err != nil { - panic(err) - } +For example, MaxRequests may be 100 in "NorthAmerica" and 200 in "WestEurope". By creating a Setting named MaxRequests with a label of "NorthAmerica" and another, only with a different value, with a "WestEurope" label, an application can seamlessly retrieve Settings as it runs in these two dimensions. - // Delete configuration setting - resp, err := client.DeleteSetting( - context.TODO(), - "key", - &azappconfig.DeleteSettingOptions{ - Label: to.Ptr("label"), - }) +## Examples - if err != nil { - panic(err) - } - fmt.Println(*resp.Key) - fmt.Println(*resp.Label) -} -``` +Examples for various scenarios can be found on [pkg.go.dev][azappconfig_examples] or in the `example*_test.go` files in our GitHub repo for [azappconfig][azappconfig_src]. ## Contributing + This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. @@ -339,12 +56,18 @@ For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact opencode@microsoft.com with any additional questions or comments. -[azure_cloud_shell]: https://shell.azure.com/bash [azure_identity]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azidentity [azure_sub]: https://azure.microsoft.com/free/ [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[appconfig_docs]: https://docs.microsoft.com/azure/azure-app-configuration/ -[goget_azappconfig]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig -[appconfig_client_src]: https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/data/azappconfig/client.go - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-go%2Fsdk%2Fkeyvault%2Fazkeys%2FREADME.png) +[appconfig_docs]: https://learn.microsoft.com/azure/azure-app-configuration/ +[appconfig_portal]: https://learn.microsoft.com/azure/azure-app-configuration/quickstart-azure-app-configuration-create?tabs=azure-portal +[appconfig_cli]: https://learn.microsoft.com/azure/azure-app-configuration/quickstart-azure-app-configuration-create?tabs=azure-cli +[label_concept]: https://learn.microsoft.com/azure/azure-app-configuration/concept-key-value#label-keys +[azappconfig]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig +[azappconfig_newclient]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig#NewClient +[azappconfig_newclientfromconnectionstring]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig#NewClientFromConnectionString +[azappconfig_examples]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig#pkg-examples +[azappconfig_setting]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig#Setting +[azappconfig_src]: https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/data/azappconfig + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-go%2Fsdk%2Fdata%2Fazappconfig%2FREADME.png) diff --git a/sdk/data/azappconfig/examples_test.go b/sdk/data/azappconfig/examples_test.go new file mode 100644 index 000000000000..0fa5f2a8d532 --- /dev/null +++ b/sdk/data/azappconfig/examples_test.go @@ -0,0 +1,244 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azappconfig_test + +import ( + "context" + "log" + "os" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig" +) + +func ExampleNewClient() { + credential, err := azidentity.NewDefaultAzureCredential(nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + client, err := azappconfig.NewClient("https://my-app-config.azconfig.io", credential, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = client // ignore + + // Output: +} + +func ExampleNewClientFromConnectionString() { + connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") + if connectionString == "" { + return + } + + client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = client // ignore + + // Output: +} + +func ExampleClient_AddSetting() { + connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") + if connectionString == "" { + return + } + + client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + // Create configuration setting + resp, err := client.AddSetting(context.TODO(), "example-key", to.Ptr("example-value"), &azappconfig.AddSettingOptions{ + Label: to.Ptr("example-label"), + }) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = resp // TODO: do something with resp + + // Output: +} + +func ExampleClient_GetSetting() { + connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") + if connectionString == "" { + return + } + + client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + // Get configuration setting + resp, err := client.GetSetting(context.TODO(), "example-key", &azappconfig.GetSettingOptions{ + Label: to.Ptr("example-label"), + }) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = resp // TODO: do something with resp + + // Output: +} + +func ExampleClient_SetSetting() { + connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") + if connectionString == "" { + return + } + + client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + // Set configuration setting + resp, err := client.SetSetting(context.TODO(), "example-key", to.Ptr("example-new-value"), &azappconfig.SetSettingOptions{ + Label: to.Ptr("example-label"), + }) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = resp // TODO: do something with resp + + // Output: +} + +func ExampleClient_SetReadOnly() { + connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") + if connectionString == "" { + return + } + + client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + // Set configuration setting read only + resp, err := client.SetReadOnly(context.TODO(), "example-key", true, &azappconfig.SetReadOnlyOptions{ + Label: to.Ptr("example-label"), + }) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = resp // TODO: do something with resp + + // Remove read only status + resp, err = client.SetReadOnly(context.TODO(), "example-key", false, &azappconfig.SetReadOnlyOptions{ + Label: to.Ptr("example-label"), + }) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = resp // TODO: do something with resp + + // Output: +} + +func ExampleClient_NewListRevisionsPager() { + connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") + if connectionString == "" { + return + } + + client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + pager := client.NewListRevisionsPager(azappconfig.SettingSelector{ + KeyFilter: to.Ptr("*"), + LabelFilter: to.Ptr("*"), + Fields: azappconfig.AllSettingFields(), + }, nil) + + for pager.More() { + page, err := pager.NextPage(context.TODO()) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + for _, setting := range page.Settings { + // each page contains all of the returned settings revisions that match the provided [SettingSelector] + + _ = setting // ignore + } + } + + // Output: +} + +func ExampleClient_DeleteSetting() { + connectionString := os.Getenv("APPCONFIGURATION_CONNECTION_STRING") + if connectionString == "" { + return + } + + client, err := azappconfig.NewClientFromConnectionString(connectionString, nil) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + // Delete configuration setting + resp, err := client.DeleteSetting(context.TODO(), "example-key", &azappconfig.DeleteSettingOptions{ + Label: to.Ptr("example-label"), + }) + + if err != nil { + // TODO: Update the following line with your application specific error handling logic + log.Fatalf("ERROR: %s", err) + } + + _ = resp // TODO: do something with resp + + // Output: +} diff --git a/sdk/data/azappconfig/go.mod b/sdk/data/azappconfig/go.mod index 1dd31d77a4e5..22ed101edc1e 100644 --- a/sdk/data/azappconfig/go.mod +++ b/sdk/data/azappconfig/go.mod @@ -3,16 +3,24 @@ module github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 github.com/stretchr/testify v1.8.4 ) require ( + github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/dnaeon/go-vcr v1.2.0 // indirect + github.com/golang-jwt/jwt/v5 v5.0.0 // indirect + github.com/google/uuid v1.3.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.14.0 // indirect golang.org/x/net v0.15.0 // indirect + golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/sdk/data/azappconfig/go.sum b/sdk/data/azappconfig/go.sum index 8e1a81e0b9e0..9498df88d3d2 100644 --- a/sdk/data/azappconfig/go.sum +++ b/sdk/data/azappconfig/go.sum @@ -1,23 +1,40 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2 h1:t5+QXLCK9SVi0PPdaY0PrFvYUo24KwA0QwxnaHRSVd4= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2/go.mod h1:bjGvMhVMb+EEm3VRNQawDMUyMMjo+S5ewNjflkep/0Q= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.8.0 h1:9kDVnTz3vbfweTqAUmk/a/pH5pWFCHtvRpHYC0G/dcA= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.8.0/go.mod h1:3Ug6Qzto9anB6mGlEdgYMDF5zHQ+wwhEaYR4s17PHMw= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.4.0 h1:BMAjVKJM0U/CYF27gA0ZMmXGkOcvfFtD0oHVZ1TIPRI= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.4.0/go.mod h1:1fXstnBMas5kzG+S3q8UoJcmyU6nUeunJcMDHcRYHhs= github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 h1:sXr+ck84g/ZlZUOZiNELInmMgOsuGwdjjVkEIde0OtY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0/go.mod h1:okt5dMMTOFjX/aovMlrjvvXoPMBVSPzk9185BT0+eZM= +github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1 h1:WpB/QDNLpMw72xHJc34BNNykqSOeEJDAWkhf0u12/Jk= +github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= +github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= +github.com/golang-jwt/jwt/v5 v5.0.0 h1:1n1XNM9hk7O9mnQoNBGolZvzebBQ7p93ULHRc28XJUE= +github.com/golang-jwt/jwt/v5 v5.0.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= +golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/data/azappconfig/version.go b/sdk/data/azappconfig/version.go index e1afddf9a0f4..767550c7797f 100644 --- a/sdk/data/azappconfig/version.go +++ b/sdk/data/azappconfig/version.go @@ -8,5 +8,5 @@ package azappconfig const ( moduleName = "azappconfig" - moduleVersion = "v0.6.1" + moduleVersion = "v1.0.0" )