links

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

The links SDK allows for interaction with Azure Resource Manager servicelinker (API Version 2022-05-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/servicelinker/2022-05-01/links"

Client Initialization

client := links.NewLinksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LinksClient.LinkerDelete

ctx := context.TODO()
id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName")

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

Example Usage: LinksClient.LinkerListConfigurations

ctx := context.TODO()
id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName")

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

Example Usage: LinksClient.LinkerUpdate

ctx := context.TODO()
id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName")

payload := links.LinkerPatch{
	// ...
}


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

Example Usage: LinksClient.LinkerValidate

ctx := context.TODO()
id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAuthType

func PossibleValuesForAuthType() []string

func PossibleValuesForAzureResourceType

func PossibleValuesForAzureResourceType() []string

func PossibleValuesForClientType

func PossibleValuesForClientType() []string

func PossibleValuesForSecretType

func PossibleValuesForSecretType() []string

func PossibleValuesForTargetServiceType

func PossibleValuesForTargetServiceType() []string

func PossibleValuesForVNetSolutionType

func PossibleValuesForVNetSolutionType() []string

func PossibleValuesForValidationResultStatus

func PossibleValuesForValidationResultStatus() []string

func ValidateScopedLinkerID

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

ValidateScopedLinkerID checks that 'input' can be parsed as a Scoped Linker ID

Types

type AuthInfoBase

type AuthInfoBase interface {
	AuthInfoBase() BaseAuthInfoBaseImpl
}

func UnmarshalAuthInfoBaseImplementation

func UnmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error)

type AuthType

type AuthType string
const (
	AuthTypeSecret                      AuthType = "secret"
	AuthTypeServicePrincipalCertificate AuthType = "servicePrincipalCertificate"
	AuthTypeServicePrincipalSecret      AuthType = "servicePrincipalSecret"
	AuthTypeSystemAssignedIdentity      AuthType = "systemAssignedIdentity"
	AuthTypeUserAssignedIdentity        AuthType = "userAssignedIdentity"
)

func (*AuthType) UnmarshalJSON

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

type AzureKeyVaultProperties

type AzureKeyVaultProperties struct {
	ConnectAsKubernetesCsiDriver *bool `json:"connectAsKubernetesCsiDriver,omitempty"`

	Type AzureResourceType `json:"type"`
}

func (AzureKeyVaultProperties) AzureResourcePropertiesBase

func (s AzureKeyVaultProperties) AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl

func (AzureKeyVaultProperties) MarshalJSON

func (s AzureKeyVaultProperties) MarshalJSON() ([]byte, error)

type AzureResource

type AzureResource struct {
	Id                 *string                     `json:"id,omitempty"`
	ResourceProperties AzureResourcePropertiesBase `json:"resourceProperties"`

	Type TargetServiceType `json:"type"`
}

func (AzureResource) MarshalJSON

func (s AzureResource) MarshalJSON() ([]byte, error)

func (AzureResource) TargetServiceBase

func (s AzureResource) TargetServiceBase() BaseTargetServiceBaseImpl

func (*AzureResource) UnmarshalJSON

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

type AzureResourcePropertiesBase

type AzureResourcePropertiesBase interface {
	AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl
}

func UnmarshalAzureResourcePropertiesBaseImplementation

func UnmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureResourcePropertiesBase, error)

type AzureResourceType

type AzureResourceType string
const (
	AzureResourceTypeKeyVault AzureResourceType = "KeyVault"
)

func (*AzureResourceType) UnmarshalJSON

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

type BaseAuthInfoBaseImpl

type BaseAuthInfoBaseImpl struct {
	AuthType AuthType `json:"authType"`
}

func (BaseAuthInfoBaseImpl) AuthInfoBase

func (s BaseAuthInfoBaseImpl) AuthInfoBase() BaseAuthInfoBaseImpl

type BaseAzureResourcePropertiesBaseImpl

type BaseAzureResourcePropertiesBaseImpl struct {
	Type AzureResourceType `json:"type"`
}

func (BaseAzureResourcePropertiesBaseImpl) AzureResourcePropertiesBase

type BaseSecretInfoBaseImpl

type BaseSecretInfoBaseImpl struct {
	SecretType SecretType `json:"secretType"`
}

func (BaseSecretInfoBaseImpl) SecretInfoBase

type BaseTargetServiceBaseImpl

type BaseTargetServiceBaseImpl struct {
	Type TargetServiceType `json:"type"`
}

func (BaseTargetServiceBaseImpl) TargetServiceBase

type ClientType

type ClientType string
const (
	ClientTypeDjango                  ClientType = "django"
	ClientTypeDotnet                  ClientType = "dotnet"
	ClientTypeGo                      ClientType = "go"
	ClientTypeJava                    ClientType = "java"
	ClientTypeKafkaNegativespringBoot ClientType = "kafka-springBoot"
	ClientTypeNodejs                  ClientType = "nodejs"
	ClientTypeNone                    ClientType = "none"
	ClientTypePhp                     ClientType = "php"
	ClientTypePython                  ClientType = "python"
	ClientTypeRuby                    ClientType = "ruby"
	ClientTypeSpringBoot              ClientType = "springBoot"
)

func (*ClientType) UnmarshalJSON

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

type ConfluentBootstrapServer

type ConfluentBootstrapServer struct {
	Endpoint *string `json:"endpoint,omitempty"`

	Type TargetServiceType `json:"type"`
}

func (ConfluentBootstrapServer) MarshalJSON

func (s ConfluentBootstrapServer) MarshalJSON() ([]byte, error)

func (ConfluentBootstrapServer) TargetServiceBase

type ConfluentSchemaRegistry

type ConfluentSchemaRegistry struct {
	Endpoint *string `json:"endpoint,omitempty"`

	Type TargetServiceType `json:"type"`
}

func (ConfluentSchemaRegistry) MarshalJSON

func (s ConfluentSchemaRegistry) MarshalJSON() ([]byte, error)

func (ConfluentSchemaRegistry) TargetServiceBase

func (s ConfluentSchemaRegistry) TargetServiceBase() BaseTargetServiceBaseImpl

type KeyVaultSecretReferenceSecretInfo

type KeyVaultSecretReferenceSecretInfo struct {
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`

	SecretType SecretType `json:"secretType"`
}

func (KeyVaultSecretReferenceSecretInfo) MarshalJSON

func (s KeyVaultSecretReferenceSecretInfo) MarshalJSON() ([]byte, error)

func (KeyVaultSecretReferenceSecretInfo) SecretInfoBase

type KeyVaultSecretUriSecretInfo

type KeyVaultSecretUriSecretInfo struct {
	Value *string `json:"value,omitempty"`

	SecretType SecretType `json:"secretType"`
}

func (KeyVaultSecretUriSecretInfo) MarshalJSON

func (s KeyVaultSecretUriSecretInfo) MarshalJSON() ([]byte, error)

func (KeyVaultSecretUriSecretInfo) SecretInfoBase

type LinkerDeleteOperationResponse

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

type LinkerListConfigurationsOperationResponse

type LinkerListConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SourceConfigurationResult
}

type LinkerPatch

type LinkerPatch struct {
	Properties *LinkerProperties `json:"properties,omitempty"`
}

type LinkerProperties

type LinkerProperties struct {
	AuthInfo          AuthInfoBase      `json:"authInfo"`
	ClientType        *ClientType       `json:"clientType,omitempty"`
	ProvisioningState *string           `json:"provisioningState,omitempty"`
	Scope             *string           `json:"scope,omitempty"`
	SecretStore       *SecretStore      `json:"secretStore,omitempty"`
	TargetService     TargetServiceBase `json:"targetService"`
	VNetSolution      *VNetSolution     `json:"vNetSolution,omitempty"`
}

func (*LinkerProperties) UnmarshalJSON

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

type LinkerResource

type LinkerResource struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties LinkerProperties       `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type LinkerUpdateOperationResponse

type LinkerUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LinkerResource
}

type LinkerValidateOperationResponse

type LinkerValidateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ValidateOperationResult
}

type LinksClient

type LinksClient struct {
	Client *resourcemanager.Client
}

func NewLinksClientWithBaseURI

func NewLinksClientWithBaseURI(sdkApi sdkEnv.Api) (*LinksClient, error)

func (LinksClient) LinkerDelete

func (c LinksClient) LinkerDelete(ctx context.Context, id ScopedLinkerId) (result LinkerDeleteOperationResponse, err error)

LinkerDelete ...

func (LinksClient) LinkerDeleteThenPoll

func (c LinksClient) LinkerDeleteThenPoll(ctx context.Context, id ScopedLinkerId) error

LinkerDeleteThenPoll performs LinkerDelete then polls until it's completed

func (LinksClient) LinkerListConfigurations

func (c LinksClient) LinkerListConfigurations(ctx context.Context, id ScopedLinkerId) (result LinkerListConfigurationsOperationResponse, err error)

LinkerListConfigurations ...

func (LinksClient) LinkerUpdate

func (c LinksClient) LinkerUpdate(ctx context.Context, id ScopedLinkerId, input LinkerPatch) (result LinkerUpdateOperationResponse, err error)

LinkerUpdate ...

func (LinksClient) LinkerUpdateThenPoll

func (c LinksClient) LinkerUpdateThenPoll(ctx context.Context, id ScopedLinkerId, input LinkerPatch) error

LinkerUpdateThenPoll performs LinkerUpdate then polls until it's completed

func (LinksClient) LinkerValidate

func (c LinksClient) LinkerValidate(ctx context.Context, id ScopedLinkerId) (result LinkerValidateOperationResponse, err error)

LinkerValidate ...

func (LinksClient) LinkerValidateThenPoll

func (c LinksClient) LinkerValidateThenPoll(ctx context.Context, id ScopedLinkerId) error

LinkerValidateThenPoll performs LinkerValidate then polls until it's completed

type RawAuthInfoBaseImpl

type RawAuthInfoBaseImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawAuthInfoBaseImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawAuthInfoBaseImpl) AuthInfoBase

func (s RawAuthInfoBaseImpl) AuthInfoBase() BaseAuthInfoBaseImpl

type RawAzureResourcePropertiesBaseImpl

type RawAzureResourcePropertiesBaseImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawAzureResourcePropertiesBaseImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawAzureResourcePropertiesBaseImpl) AzureResourcePropertiesBase

type RawSecretInfoBaseImpl

type RawSecretInfoBaseImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawSecretInfoBaseImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawSecretInfoBaseImpl) SecretInfoBase

func (s RawSecretInfoBaseImpl) SecretInfoBase() BaseSecretInfoBaseImpl

type RawTargetServiceBaseImpl

type RawTargetServiceBaseImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawTargetServiceBaseImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawTargetServiceBaseImpl) TargetServiceBase

type ScopedLinkerId

type ScopedLinkerId struct {
	ResourceUri string
	LinkerName  string
}

ScopedLinkerId is a struct representing the Resource ID for a Scoped Linker

func NewScopedLinkerID

func NewScopedLinkerID(resourceUri string, linkerName string) ScopedLinkerId

NewScopedLinkerID returns a new ScopedLinkerId struct

func ParseScopedLinkerID

func ParseScopedLinkerID(input string) (*ScopedLinkerId, error)

ParseScopedLinkerID parses 'input' into a ScopedLinkerId

func ParseScopedLinkerIDInsensitively

func ParseScopedLinkerIDInsensitively(input string) (*ScopedLinkerId, error)

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

func (*ScopedLinkerId) FromParseResult

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

func (ScopedLinkerId) ID

func (id ScopedLinkerId) ID() string

ID returns the formatted Scoped Linker ID

func (ScopedLinkerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Scoped Linker ID

func (ScopedLinkerId) String

func (id ScopedLinkerId) String() string

String returns a human-readable description of this Scoped Linker ID

type SecretAuthInfo

type SecretAuthInfo struct {
	Name       *string        `json:"name,omitempty"`
	SecretInfo SecretInfoBase `json:"secretInfo"`

	AuthType AuthType `json:"authType"`
}

func (SecretAuthInfo) AuthInfoBase

func (s SecretAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl

func (SecretAuthInfo) MarshalJSON

func (s SecretAuthInfo) MarshalJSON() ([]byte, error)

func (*SecretAuthInfo) UnmarshalJSON

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

type SecretInfoBase

type SecretInfoBase interface {
	SecretInfoBase() BaseSecretInfoBaseImpl
}

func UnmarshalSecretInfoBaseImplementation

func UnmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error)

type SecretStore

type SecretStore struct {
	KeyVaultId *string `json:"keyVaultId,omitempty"`
}

type SecretType

type SecretType string
const (
	SecretTypeKeyVaultSecretReference SecretType = "keyVaultSecretReference"
	SecretTypeKeyVaultSecretUri       SecretType = "keyVaultSecretUri"
	SecretTypeRawValue                SecretType = "rawValue"
)

func (*SecretType) UnmarshalJSON

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

type ServicePrincipalCertificateAuthInfo

type ServicePrincipalCertificateAuthInfo struct {
	Certificate string `json:"certificate"`
	ClientId    string `json:"clientId"`
	PrincipalId string `json:"principalId"`

	AuthType AuthType `json:"authType"`
}

func (ServicePrincipalCertificateAuthInfo) AuthInfoBase

func (ServicePrincipalCertificateAuthInfo) MarshalJSON

func (s ServicePrincipalCertificateAuthInfo) MarshalJSON() ([]byte, error)

type ServicePrincipalSecretAuthInfo

type ServicePrincipalSecretAuthInfo struct {
	ClientId    string `json:"clientId"`
	PrincipalId string `json:"principalId"`
	Secret      string `json:"secret"`

	AuthType AuthType `json:"authType"`
}

func (ServicePrincipalSecretAuthInfo) AuthInfoBase

func (ServicePrincipalSecretAuthInfo) MarshalJSON

func (s ServicePrincipalSecretAuthInfo) MarshalJSON() ([]byte, error)

type SourceConfiguration

type SourceConfiguration struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type SourceConfigurationResult

type SourceConfigurationResult struct {
	Configurations *[]SourceConfiguration `json:"configurations,omitempty"`
}

type SystemAssignedIdentityAuthInfo

type SystemAssignedIdentityAuthInfo struct {
	AuthType AuthType `json:"authType"`
}

func (SystemAssignedIdentityAuthInfo) AuthInfoBase

func (SystemAssignedIdentityAuthInfo) MarshalJSON

func (s SystemAssignedIdentityAuthInfo) MarshalJSON() ([]byte, error)

type TargetServiceBase

type TargetServiceBase interface {
	TargetServiceBase() BaseTargetServiceBaseImpl
}

func UnmarshalTargetServiceBaseImplementation

func UnmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, error)

type TargetServiceType

type TargetServiceType string
const (
	TargetServiceTypeAzureResource            TargetServiceType = "AzureResource"
	TargetServiceTypeConfluentBootstrapServer TargetServiceType = "ConfluentBootstrapServer"
	TargetServiceTypeConfluentSchemaRegistry  TargetServiceType = "ConfluentSchemaRegistry"
)

func (*TargetServiceType) UnmarshalJSON

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

type UserAssignedIdentityAuthInfo

type UserAssignedIdentityAuthInfo struct {
	ClientId       *string `json:"clientId,omitempty"`
	SubscriptionId *string `json:"subscriptionId,omitempty"`

	AuthType AuthType `json:"authType"`
}

func (UserAssignedIdentityAuthInfo) AuthInfoBase

func (UserAssignedIdentityAuthInfo) MarshalJSON

func (s UserAssignedIdentityAuthInfo) MarshalJSON() ([]byte, error)

type VNetSolution

type VNetSolution struct {
	Type *VNetSolutionType `json:"type,omitempty"`
}

type VNetSolutionType

type VNetSolutionType string
const (
	VNetSolutionTypePrivateLink     VNetSolutionType = "privateLink"
	VNetSolutionTypeServiceEndpoint VNetSolutionType = "serviceEndpoint"
)

func (*VNetSolutionType) UnmarshalJSON

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

type ValidateOperationResult

type ValidateOperationResult struct {
	Properties *ValidateResult `json:"properties,omitempty"`
	ResourceId *string         `json:"resourceId,omitempty"`
	Status     *string         `json:"status,omitempty"`
}

type ValidateResult

type ValidateResult struct {
	AuthType              *AuthType               `json:"authType,omitempty"`
	IsConnectionAvailable *bool                   `json:"isConnectionAvailable,omitempty"`
	LinkerName            *string                 `json:"linkerName,omitempty"`
	ReportEndTimeUtc      *string                 `json:"reportEndTimeUtc,omitempty"`
	ReportStartTimeUtc    *string                 `json:"reportStartTimeUtc,omitempty"`
	SourceId              *string                 `json:"sourceId,omitempty"`
	TargetId              *string                 `json:"targetId,omitempty"`
	ValidationDetail      *[]ValidationResultItem `json:"validationDetail,omitempty"`
}

func (*ValidateResult) GetReportEndTimeUtcAsTime

func (o *ValidateResult) GetReportEndTimeUtcAsTime() (*time.Time, error)

func (*ValidateResult) GetReportStartTimeUtcAsTime

func (o *ValidateResult) GetReportStartTimeUtcAsTime() (*time.Time, error)

func (*ValidateResult) SetReportEndTimeUtcAsTime

func (o *ValidateResult) SetReportEndTimeUtcAsTime(input time.Time)

func (*ValidateResult) SetReportStartTimeUtcAsTime

func (o *ValidateResult) SetReportStartTimeUtcAsTime(input time.Time)

type ValidationResultItem

type ValidationResultItem struct {
	Description  *string                 `json:"description,omitempty"`
	ErrorCode    *string                 `json:"errorCode,omitempty"`
	ErrorMessage *string                 `json:"errorMessage,omitempty"`
	Name         *string                 `json:"name,omitempty"`
	Result       *ValidationResultStatus `json:"result,omitempty"`
}

type ValidationResultStatus

type ValidationResultStatus string
const (
	ValidationResultStatusFailure ValidationResultStatus = "failure"
	ValidationResultStatusSuccess ValidationResultStatus = "success"
	ValidationResultStatusWarning ValidationResultStatus = "warning"
)

func (*ValidationResultStatus) UnmarshalJSON

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

type ValueSecretInfo

type ValueSecretInfo struct {
	Value *string `json:"value,omitempty"`

	SecretType SecretType `json:"secretType"`
}

func (ValueSecretInfo) MarshalJSON

func (s ValueSecretInfo) MarshalJSON() ([]byte, error)

func (ValueSecretInfo) SecretInfoBase

func (s ValueSecretInfo) SecretInfoBase() BaseSecretInfoBaseImpl

Jump to

Keyboard shortcuts

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