README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/purview/2020-12-01-preview/defaultaccount
Documentation
The defaultaccount
SDK allows for interaction with the Azure Resource Manager Service purview
(API Version 2020-12-01-preview
).
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/2020-12-01-preview/defaultaccount"
Client Initialization
client := defaultaccount.NewDefaultAccountClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DefaultAccountClient.Get
ctx := context.TODO()
read, err := client.Get(ctx, defaultaccount.DefaultGetOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DefaultAccountClient.Remove
ctx := context.TODO()
read, err := client.Remove(ctx, defaultaccount.DefaultRemoveOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DefaultAccountClient.Set
ctx := context.TODO()
payload := defaultaccount.DefaultAccountPayload{
// ...
}
read, err := client.Set(ctx, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForScopeType() []string
- type DefaultAccountClient
- func (c DefaultAccountClient) Get(ctx context.Context, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c DefaultAccountClient) Remove(ctx context.Context, options RemoveOperationOptions) (result RemoveOperationResponse, err error)
- func (c DefaultAccountClient) Set(ctx context.Context, input DefaultAccountPayload) (result SetOperationResponse, err error)
- type DefaultAccountPayload
- type GetOperationOptions
- type GetOperationResponse
- type RemoveOperationOptions
- type RemoveOperationResponse
- type ScopeType
- type SetOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForScopeType ¶
func PossibleValuesForScopeType() []string
Types ¶
type DefaultAccountClient ¶
type DefaultAccountClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewDefaultAccountClientWithBaseURI ¶
func NewDefaultAccountClientWithBaseURI(endpoint string) DefaultAccountClient
func (DefaultAccountClient) Get ¶
func (c DefaultAccountClient) Get(ctx context.Context, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (DefaultAccountClient) Remove ¶
func (c DefaultAccountClient) Remove(ctx context.Context, options RemoveOperationOptions) (result RemoveOperationResponse, err error)
Remove ...
func (DefaultAccountClient) Set ¶
func (c DefaultAccountClient) Set(ctx context.Context, input DefaultAccountPayload) (result SetOperationResponse, err error)
Set ...
type DefaultAccountPayload ¶
type DefaultAccountPayload struct { AccountName *string `json:"accountName,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` Scope *string `json:"scope,omitempty"` ScopeTenantId *string `json:"scopeTenantId,omitempty"` ScopeType *ScopeType `json:"scopeType,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` }
type GetOperationOptions ¶
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *DefaultAccountPayload }
type RemoveOperationOptions ¶
func DefaultRemoveOperationOptions ¶
func DefaultRemoveOperationOptions() RemoveOperationOptions
type RemoveOperationResponse ¶
type SetOperationResponse ¶
type SetOperationResponse struct { HttpResponse *http.Response Model *DefaultAccountPayload }
Click to show internal directories.
Click to hide internal directories.