README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-12-01/feature
Documentation
The feature
SDK allows for interaction with the Azure Resource Manager Service purview
(API Version 2021-12-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/purview/2021-12-01/feature"
Client Initialization
client := feature.NewFeatureClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: FeatureClient.AccountGet
ctx := context.TODO()
id := feature.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue")
payload := feature.BatchFeatureRequest{
// ...
}
read, err := client.AccountGet(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: FeatureClient.SubscriptionGet
ctx := context.TODO()
id := feature.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
payload := feature.BatchFeatureRequest{
// ...
}
read, err := client.SubscriptionGet(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- type AccountGetOperationResponse
- type AccountId
- type BatchFeatureRequest
- type BatchFeatureStatus
- type FeatureClient
- type LocationId
- type SubscriptionGetOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAccountID ¶
ValidateAccountID checks that 'input' can be parsed as a Account ID
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
Types ¶
type AccountGetOperationResponse ¶
type AccountGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *BatchFeatureStatus }
type AccountId ¶
AccountId is a struct representing the Resource ID for a Account
func NewAccountID ¶
NewAccountID returns a new AccountId struct
func ParseAccountID ¶
ParseAccountID parses 'input' into a AccountId
func ParseAccountIDInsensitively ¶
ParseAccountIDInsensitively parses 'input' case-insensitively into a AccountId note: this method should only be used for API response data and not user input
func (AccountId) Segments ¶
func (id AccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Account ID
type BatchFeatureRequest ¶
type BatchFeatureRequest struct {
Features *[]string `json:"features,omitempty"`
}
type BatchFeatureStatus ¶
type FeatureClient ¶
type FeatureClient struct {
Client *resourcemanager.Client
}
func NewFeatureClientWithBaseURI ¶
func NewFeatureClientWithBaseURI(sdkApi sdkEnv.Api) (*FeatureClient, error)
func (FeatureClient) AccountGet ¶
func (c FeatureClient) AccountGet(ctx context.Context, id AccountId, input BatchFeatureRequest) (result AccountGetOperationResponse, err error)
AccountGet ...
func (FeatureClient) SubscriptionGet ¶
func (c FeatureClient) SubscriptionGet(ctx context.Context, id LocationId, input BatchFeatureRequest) (result SubscriptionGetOperationResponse, err error)
SubscriptionGet ...
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, locationName string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type SubscriptionGetOperationResponse ¶
type SubscriptionGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *BatchFeatureStatus }