package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/keyvalues
Documentation
The keyvalues
SDK allows for interaction with the Azure Resource Manager Service appconfiguration
(API Version 2023-03-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/keyvalues"
Client Initialization
client := keyvalues.NewKeyValuesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: KeyValuesClient.CreateOrUpdate
ctx := context.TODO()
id := keyvalues.NewKeyValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue", "keyValueValue")
payload := keyvalues.KeyValue{
// ...
}
read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: KeyValuesClient.Delete
ctx := context.TODO()
id := keyvalues.NewKeyValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue", "keyValueValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: KeyValuesClient.Get
ctx := context.TODO()
id := keyvalues.NewKeyValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue", "keyValueValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
# Functions
NewKeyValueID returns a new KeyValueId struct.
No description provided by the author
ParseKeyValueID parses 'input' into a KeyValueId.
ParseKeyValueIDInsensitively parses 'input' case-insensitively into a KeyValueId note: this method should only be used for API response data and not user input.
ValidateKeyValueID checks that 'input' can be parsed as a Key Value ID.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KeyValueId is a struct representing the Resource ID for a Key Value.
No description provided by the author
No description provided by the author