workspacemanagedsqlserverserverencryptionprotector

package
v0.20240209.1120443 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverserverencryptionprotector Documentation

The workspacemanagedsqlserverserverencryptionprotector SDK allows for interaction with the Azure Resource Manager Service synapse (API Version 2021-06-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/synapse/2021-06-01/workspacemanagedsqlserverserverencryptionprotector"

Client Initialization

client := workspacemanagedsqlserverserverencryptionprotector.NewWorkspaceManagedSqlServerServerEncryptionProtectorClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceManagedSqlServerServerEncryptionProtectorClient.WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdate

ctx := context.TODO()
id := workspacemanagedsqlserverserverencryptionprotector.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")

payload := workspacemanagedsqlserverserverencryptionprotector.EncryptionProtector{
	// ...
}


if err := client.WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: WorkspaceManagedSqlServerServerEncryptionProtectorClient.WorkspaceManagedSqlServerEncryptionProtectorGet

ctx := context.TODO()
id := workspacemanagedsqlserverserverencryptionprotector.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")

read, err := client.WorkspaceManagedSqlServerEncryptionProtectorGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WorkspaceManagedSqlServerServerEncryptionProtectorClient.WorkspaceManagedSqlServerEncryptionProtectorList

ctx := context.TODO()
id := workspacemanagedsqlserverserverencryptionprotector.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")

// alternatively `client.WorkspaceManagedSqlServerEncryptionProtectorList(ctx, id)` can be used to do batched pagination
items, err := client.WorkspaceManagedSqlServerEncryptionProtectorListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: WorkspaceManagedSqlServerServerEncryptionProtectorClient.WorkspaceManagedSqlServerEncryptionProtectorRevalidate

ctx := context.TODO()
id := workspacemanagedsqlserverserverencryptionprotector.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")

if err := client.WorkspaceManagedSqlServerEncryptionProtectorRevalidateThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForServerKeyType

func PossibleValuesForServerKeyType() []string

func ValidateWorkspaceID

func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type EncryptionProtector

type EncryptionProtector struct {
	Id         *string                        `json:"id,omitempty"`
	Kind       *string                        `json:"kind,omitempty"`
	Location   *string                        `json:"location,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *EncryptionProtectorProperties `json:"properties,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type EncryptionProtectorOperationPredicate

type EncryptionProtectorOperationPredicate struct {
	Id       *string
	Kind     *string
	Location *string
	Name     *string
	Type     *string
}

func (EncryptionProtectorOperationPredicate) Matches

type EncryptionProtectorProperties

type EncryptionProtectorProperties struct {
	ServerKeyName *string       `json:"serverKeyName,omitempty"`
	ServerKeyType ServerKeyType `json:"serverKeyType"`
	Subregion     *string       `json:"subregion,omitempty"`
	Thumbprint    *string       `json:"thumbprint,omitempty"`
	Uri           *string       `json:"uri,omitempty"`
}

type ServerKeyType

type ServerKeyType string
const (
	ServerKeyTypeAzureKeyVault  ServerKeyType = "AzureKeyVault"
	ServerKeyTypeServiceManaged ServerKeyType = "ServiceManaged"
)

func (*ServerKeyType) UnmarshalJSON

func (s *ServerKeyType) UnmarshalJSON(bytes []byte) error

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input

func (*WorkspaceId) FromParseResult

func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

func (id WorkspaceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Workspace ID

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

type WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOperationResponse

type WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EncryptionProtector
}

type WorkspaceManagedSqlServerEncryptionProtectorGetOperationResponse

type WorkspaceManagedSqlServerEncryptionProtectorGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EncryptionProtector
}

type WorkspaceManagedSqlServerEncryptionProtectorListCompleteResult

type WorkspaceManagedSqlServerEncryptionProtectorListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EncryptionProtector
}

type WorkspaceManagedSqlServerEncryptionProtectorListOperationResponse

type WorkspaceManagedSqlServerEncryptionProtectorListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EncryptionProtector
}

type WorkspaceManagedSqlServerEncryptionProtectorRevalidateOperationResponse

type WorkspaceManagedSqlServerEncryptionProtectorRevalidateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type WorkspaceManagedSqlServerServerEncryptionProtectorClient

type WorkspaceManagedSqlServerServerEncryptionProtectorClient struct {
	Client *resourcemanager.Client
}

func NewWorkspaceManagedSqlServerServerEncryptionProtectorClientWithBaseURI

func NewWorkspaceManagedSqlServerServerEncryptionProtectorClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceManagedSqlServerServerEncryptionProtectorClient, error)

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdate

WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdate ...

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateThenPoll

func (c WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateThenPoll(ctx context.Context, id WorkspaceId, input EncryptionProtector) error

WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateThenPoll performs WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdate then polls until it's completed

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorGet

WorkspaceManagedSqlServerEncryptionProtectorGet ...

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorList

WorkspaceManagedSqlServerEncryptionProtectorList ...

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorListComplete

WorkspaceManagedSqlServerEncryptionProtectorListComplete retrieves all the results into a single object

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorListCompleteMatchingPredicate

func (c WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate EncryptionProtectorOperationPredicate) (result WorkspaceManagedSqlServerEncryptionProtectorListCompleteResult, err error)

WorkspaceManagedSqlServerEncryptionProtectorListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorRevalidate

WorkspaceManagedSqlServerEncryptionProtectorRevalidate ...

func (WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorRevalidateThenPoll

func (c WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorRevalidateThenPoll(ctx context.Context, id WorkspaceId) error

WorkspaceManagedSqlServerEncryptionProtectorRevalidateThenPoll performs WorkspaceManagedSqlServerEncryptionProtectorRevalidate then polls until it's completed

Jump to

Keyboard shortcuts

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