defaultaccount

package
v0.20230717.1131407 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 6 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/defaultaccount Documentation

The defaultaccount SDK allows for interaction with the Azure Resource Manager Service purview (API Version 2021-07-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-07-01/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