serverazureadonlyauthentications

package
v0.20231023.1051734 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2022-11-01-preview/serverazureadonlyauthentications Documentation

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

Client Initialization

client := serverazureadonlyauthentications.NewServerAzureADOnlyAuthenticationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServerAzureADOnlyAuthenticationsClient.CreateOrUpdate

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

payload := serverazureadonlyauthentications.ServerAzureADOnlyAuthentication{
	// ...
}


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

Example Usage: ServerAzureADOnlyAuthenticationsClient.Delete

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

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

Example Usage: ServerAzureADOnlyAuthenticationsClient.Get

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

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: ServerAzureADOnlyAuthenticationsClient.ListByServer

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateServerID

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

ValidateServerID checks that 'input' can be parsed as a Server ID

Types

type AzureADOnlyAuthProperties

type AzureADOnlyAuthProperties struct {
	AzureADOnlyAuthentication bool `json:"azureADOnlyAuthentication"`
}

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerAzureADOnlyAuthentication
}

type ListByServerCompleteResult

type ListByServerCompleteResult struct {
	Items []ServerAzureADOnlyAuthentication
}

type ListByServerOperationResponse

type ListByServerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ServerAzureADOnlyAuthentication
}

type ServerAzureADOnlyAuthentication

type ServerAzureADOnlyAuthentication struct {
	Id         *string                    `json:"id,omitempty"`
	Name       *string                    `json:"name,omitempty"`
	Properties *AzureADOnlyAuthProperties `json:"properties,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

type ServerAzureADOnlyAuthenticationOperationPredicate

type ServerAzureADOnlyAuthenticationOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ServerAzureADOnlyAuthenticationOperationPredicate) Matches

type ServerAzureADOnlyAuthenticationsClient

type ServerAzureADOnlyAuthenticationsClient struct {
	Client *resourcemanager.Client
}

func NewServerAzureADOnlyAuthenticationsClientWithBaseURI

func NewServerAzureADOnlyAuthenticationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerAzureADOnlyAuthenticationsClient, error)

func (ServerAzureADOnlyAuthenticationsClient) CreateOrUpdate

CreateOrUpdate ...

func (ServerAzureADOnlyAuthenticationsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ServerAzureADOnlyAuthenticationsClient) Delete

Delete ...

func (ServerAzureADOnlyAuthenticationsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ServerAzureADOnlyAuthenticationsClient) Get

Get ...

func (ServerAzureADOnlyAuthenticationsClient) ListByServer

ListByServer ...

func (ServerAzureADOnlyAuthenticationsClient) ListByServerComplete

ListByServerComplete retrieves all the results into a single object

func (ServerAzureADOnlyAuthenticationsClient) ListByServerCompleteMatchingPredicate

ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ServerId

type ServerId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
}

ServerId is a struct representing the Resource ID for a Server

func NewServerID

func NewServerID(subscriptionId string, resourceGroupName string, serverName string) ServerId

NewServerID returns a new ServerId struct

func ParseServerID

func ParseServerID(input string) (*ServerId, error)

ParseServerID parses 'input' into a ServerId

func ParseServerIDInsensitively

func ParseServerIDInsensitively(input string) (*ServerId, error)

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

func (ServerId) ID

func (id ServerId) ID() string

ID returns the formatted Server ID

func (ServerId) Segments

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

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

func (ServerId) String

func (id ServerId) String() string

String returns a human-readable description of this Server ID

Jump to

Keyboard shortcuts

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