defaultaccount

package
v0.20221025.1104718 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

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

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

Get ...

func (DefaultAccountClient) Remove

Remove ...

func (DefaultAccountClient) Set

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

type GetOperationOptions struct {
	Scope         *string
	ScopeTenantId *string
	ScopeType     *ScopeType
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *DefaultAccountPayload
}

type RemoveOperationOptions

type RemoveOperationOptions struct {
	Scope         *string
	ScopeTenantId *string
	ScopeType     *ScopeType
}

func DefaultRemoveOperationOptions

func DefaultRemoveOperationOptions() RemoveOperationOptions

type RemoveOperationResponse

type RemoveOperationResponse struct {
	HttpResponse *http.Response
}

type ScopeType

type ScopeType string
const (
	ScopeTypeSubscription ScopeType = "Subscription"
	ScopeTypeTenant       ScopeType = "Tenant"
)

type SetOperationResponse

type SetOperationResponse struct {
	HttpResponse *http.Response
	Model        *DefaultAccountPayload
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL