accessconnector

package
v0.20230313.1115805 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/accessconnector Documentation

The accessconnector SDK allows for interaction with the Azure Resource Manager Service databricks (API Version 2022-04-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/databricks/2022-04-01-preview/accessconnector"

Client Initialization

client := accessconnector.NewAccessConnectorClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AccessConnectorClient.CreateOrUpdate

ctx := context.TODO()
id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue")

payload := accessconnector.AccessConnector{
	// ...
}


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

Example Usage: AccessConnectorClient.Delete

ctx := context.TODO()
id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue")

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

Example Usage: AccessConnectorClient.Get

ctx := context.TODO()
id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue")

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

Example Usage: AccessConnectorClient.ListByResourceGroup

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

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

Example Usage: AccessConnectorClient.ListBySubscription

ctx := context.TODO()
id := accessconnector.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: AccessConnectorClient.Update

ctx := context.TODO()
id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue")

payload := accessconnector.AccessConnectorUpdate{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateAccessConnectorID

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

ValidateAccessConnectorID checks that 'input' can be parsed as a Access Connector ID

Types

type AccessConnector

type AccessConnector struct {
	Id         *string                    `json:"id,omitempty"`
	Identity   *identity.SystemAssigned   `json:"identity,omitempty"`
	Location   string                     `json:"location"`
	Name       *string                    `json:"name,omitempty"`
	Properties *AccessConnectorProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData     `json:"systemData,omitempty"`
	Tags       *map[string]string         `json:"tags,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

type AccessConnectorClient

type AccessConnectorClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewAccessConnectorClientWithBaseURI

func NewAccessConnectorClientWithBaseURI(endpoint string) AccessConnectorClient

func (AccessConnectorClient) CreateOrUpdate

CreateOrUpdate ...

func (AccessConnectorClient) CreateOrUpdateThenPoll

func (c AccessConnectorClient) CreateOrUpdateThenPoll(ctx context.Context, id AccessConnectorId, input AccessConnector) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (AccessConnectorClient) Delete

Delete ...

func (AccessConnectorClient) DeleteThenPoll

func (c AccessConnectorClient) DeleteThenPoll(ctx context.Context, id AccessConnectorId) error

DeleteThenPoll performs Delete then polls until it's completed

func (AccessConnectorClient) Get

Get ...

func (AccessConnectorClient) ListByResourceGroup

ListByResourceGroup ...

func (AccessConnectorClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (AccessConnectorClient) ListByResourceGroupCompleteMatchingPredicate

func (c AccessConnectorClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AccessConnectorOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (AccessConnectorClient) ListBySubscription

ListBySubscription ...

func (AccessConnectorClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all of the results into a single object

func (AccessConnectorClient) ListBySubscriptionCompleteMatchingPredicate

func (c AccessConnectorClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AccessConnectorOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (AccessConnectorClient) Update

Update ...

func (AccessConnectorClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type AccessConnectorId

type AccessConnectorId struct {
	SubscriptionId      string
	ResourceGroupName   string
	AccessConnectorName string
}

AccessConnectorId is a struct representing the Resource ID for a Access Connector

func NewAccessConnectorID

func NewAccessConnectorID(subscriptionId string, resourceGroupName string, accessConnectorName string) AccessConnectorId

NewAccessConnectorID returns a new AccessConnectorId struct

func ParseAccessConnectorID

func ParseAccessConnectorID(input string) (*AccessConnectorId, error)

ParseAccessConnectorID parses 'input' into a AccessConnectorId

func ParseAccessConnectorIDInsensitively

func ParseAccessConnectorIDInsensitively(input string) (*AccessConnectorId, error)

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

func (AccessConnectorId) ID

func (id AccessConnectorId) ID() string

ID returns the formatted Access Connector ID

func (AccessConnectorId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Access Connector ID

func (AccessConnectorId) String

func (id AccessConnectorId) String() string

String returns a human-readable description of this Access Connector ID

type AccessConnectorOperationPredicate

type AccessConnectorOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (AccessConnectorOperationPredicate) Matches

type AccessConnectorProperties

type AccessConnectorProperties struct {
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
}

type AccessConnectorUpdate

type AccessConnectorUpdate struct {
	Identity *identity.SystemAssigned `json:"identity,omitempty"`
	Tags     *map[string]string       `json:"tags,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []AccessConnector
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]AccessConnector
	// contains filtered or unexported fields
}

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []AccessConnector
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]AccessConnector
	// contains filtered or unexported fields
}

func (ListBySubscriptionOperationResponse) HasMore

func (ListBySubscriptionOperationResponse) LoadMore

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateDeleted   ProvisioningState = "Deleted"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

Jump to

Keyboard shortcuts

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