integrationaccounts

package
v0.20240617.1095803 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts Documentation

The integrationaccounts SDK allows for interaction with the Azure Resource Manager Service logic (API Version 2019-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts"

Client Initialization

client := integrationaccounts.NewIntegrationAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: IntegrationAccountsClient.CreateOrUpdate

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

payload := integrationaccounts.IntegrationAccount{
	// ...
}


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

Example Usage: IntegrationAccountsClient.Delete

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

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

Example Usage: IntegrationAccountsClient.Get

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

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: IntegrationAccountsClient.ListByResourceGroup

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

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

Example Usage: IntegrationAccountsClient.ListBySubscription

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

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

Example Usage: IntegrationAccountsClient.ListCallbackUrl

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

payload := integrationaccounts.GetCallbackUrlParameters{
	// ...
}


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

Example Usage: IntegrationAccountsClient.ListKeyVaultKeys

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

payload := integrationaccounts.ListKeyVaultKeysDefinition{
	// ...
}


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

Example Usage: IntegrationAccountsClient.LogTrackingEvents

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

payload := integrationaccounts.TrackingEventsDefinition{
	// ...
}


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

Example Usage: IntegrationAccountsClient.RegenerateAccessKey

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

payload := integrationaccounts.RegenerateActionParameter{
	// ...
}


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

Example Usage: IntegrationAccountsClient.Update

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

payload := integrationaccounts.IntegrationAccount{
	// ...
}


read, err := client.Update(ctx, id, 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 PossibleValuesForEventLevel

func PossibleValuesForEventLevel() []string

func PossibleValuesForIntegrationAccountSkuName

func PossibleValuesForIntegrationAccountSkuName() []string

func PossibleValuesForKeyType

func PossibleValuesForKeyType() []string

func PossibleValuesForTrackEventsOperationOptions

func PossibleValuesForTrackEventsOperationOptions() []string

func PossibleValuesForTrackingRecordType

func PossibleValuesForTrackingRecordType() []string

func PossibleValuesForWorkflowState

func PossibleValuesForWorkflowState() []string

func ValidateIntegrationAccountID

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

ValidateIntegrationAccountID checks that 'input' can be parsed as a Integration Account ID

Types

type CallbackUrl

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *IntegrationAccount
}

type DeleteOperationResponse

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

type EventLevel

type EventLevel string
const (
	EventLevelCritical      EventLevel = "Critical"
	EventLevelError         EventLevel = "Error"
	EventLevelInformational EventLevel = "Informational"
	EventLevelLogAlways     EventLevel = "LogAlways"
	EventLevelVerbose       EventLevel = "Verbose"
	EventLevelWarning       EventLevel = "Warning"
)

func (*EventLevel) UnmarshalJSON

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

type GetCallbackUrlParameters

type GetCallbackUrlParameters struct {
	KeyType  *KeyType `json:"keyType,omitempty"`
	NotAfter *string  `json:"notAfter,omitempty"`
}

func (*GetCallbackUrlParameters) GetNotAfterAsTime

func (o *GetCallbackUrlParameters) GetNotAfterAsTime() (*time.Time, error)

func (*GetCallbackUrlParameters) SetNotAfterAsTime

func (o *GetCallbackUrlParameters) SetNotAfterAsTime(input time.Time)

type GetOperationResponse

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

type IntegrationAccount

type IntegrationAccount struct {
	Id         *string                       `json:"id,omitempty"`
	Location   *string                       `json:"location,omitempty"`
	Name       *string                       `json:"name,omitempty"`
	Properties *IntegrationAccountProperties `json:"properties,omitempty"`
	Sku        *IntegrationAccountSku        `json:"sku,omitempty"`
	Tags       *map[string]string            `json:"tags,omitempty"`
	Type       *string                       `json:"type,omitempty"`
}

type IntegrationAccountId

type IntegrationAccountId struct {
	SubscriptionId         string
	ResourceGroupName      string
	IntegrationAccountName string
}

IntegrationAccountId is a struct representing the Resource ID for a Integration Account

func NewIntegrationAccountID

func NewIntegrationAccountID(subscriptionId string, resourceGroupName string, integrationAccountName string) IntegrationAccountId

NewIntegrationAccountID returns a new IntegrationAccountId struct

func ParseIntegrationAccountID

func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error)

ParseIntegrationAccountID parses 'input' into a IntegrationAccountId

func ParseIntegrationAccountIDInsensitively

func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId, error)

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

func (*IntegrationAccountId) FromParseResult

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

func (IntegrationAccountId) ID

func (id IntegrationAccountId) ID() string

ID returns the formatted Integration Account ID

func (IntegrationAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Integration Account ID

func (IntegrationAccountId) String

func (id IntegrationAccountId) String() string

String returns a human-readable description of this Integration Account ID

type IntegrationAccountOperationPredicate

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

func (IntegrationAccountOperationPredicate) Matches

type IntegrationAccountProperties

type IntegrationAccountProperties struct {
	IntegrationServiceEnvironment *ResourceReference `json:"integrationServiceEnvironment,omitempty"`
	State                         *WorkflowState     `json:"state,omitempty"`
}

type IntegrationAccountSku

type IntegrationAccountSku struct {
	Name IntegrationAccountSkuName `json:"name"`
}

type IntegrationAccountSkuName

type IntegrationAccountSkuName string
const (
	IntegrationAccountSkuNameBasic        IntegrationAccountSkuName = "Basic"
	IntegrationAccountSkuNameFree         IntegrationAccountSkuName = "Free"
	IntegrationAccountSkuNameNotSpecified IntegrationAccountSkuName = "NotSpecified"
	IntegrationAccountSkuNameStandard     IntegrationAccountSkuName = "Standard"
)

func (*IntegrationAccountSkuName) UnmarshalJSON

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

type IntegrationAccountsClient

type IntegrationAccountsClient struct {
	Client *resourcemanager.Client
}

func NewIntegrationAccountsClientWithBaseURI

func NewIntegrationAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountsClient, error)

func (IntegrationAccountsClient) CreateOrUpdate

CreateOrUpdate ...

func (IntegrationAccountsClient) Delete

Delete ...

func (IntegrationAccountsClient) Get

Get ...

func (IntegrationAccountsClient) ListByResourceGroup

ListByResourceGroup ...

func (IntegrationAccountsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (IntegrationAccountsClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (IntegrationAccountsClient) ListBySubscription

ListBySubscription ...

func (IntegrationAccountsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (IntegrationAccountsClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (IntegrationAccountsClient) ListCallbackUrl

ListCallbackUrl ...

func (IntegrationAccountsClient) ListKeyVaultKeys

ListKeyVaultKeys ...

func (IntegrationAccountsClient) LogTrackingEvents

LogTrackingEvents ...

func (IntegrationAccountsClient) RegenerateAccessKey

RegenerateAccessKey ...

func (IntegrationAccountsClient) Update

Update ...

type KeyType

type KeyType string
const (
	KeyTypeNotSpecified KeyType = "NotSpecified"
	KeyTypePrimary      KeyType = "Primary"
	KeyTypeSecondary    KeyType = "Secondary"
)

func (*KeyType) UnmarshalJSON

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

type KeyVaultKey

type KeyVaultKey struct {
	Attributes *KeyVaultKeyAttributes `json:"attributes,omitempty"`
	Kid        *string                `json:"kid,omitempty"`
}

type KeyVaultKeyAttributes

type KeyVaultKeyAttributes struct {
	Created *int64 `json:"created,omitempty"`
	Enabled *bool  `json:"enabled,omitempty"`
	Updated *int64 `json:"updated,omitempty"`
}

type KeyVaultKeyCollection

type KeyVaultKeyCollection struct {
	SkipToken *string        `json:"skipToken,omitempty"`
	Value     *[]KeyVaultKey `json:"value,omitempty"`
}

type KeyVaultReference

type KeyVaultReference struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []IntegrationAccount
}

type ListByResourceGroupOperationOptions

type ListByResourceGroupOperationOptions struct {
	Top *int64
}

func DefaultListByResourceGroupOperationOptions

func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions

func (ListByResourceGroupOperationOptions) ToHeaders

func (ListByResourceGroupOperationOptions) ToOData

func (ListByResourceGroupOperationOptions) ToQuery

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]IntegrationAccount
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []IntegrationAccount
}

type ListBySubscriptionOperationOptions

type ListBySubscriptionOperationOptions struct {
	Top *int64
}

func DefaultListBySubscriptionOperationOptions

func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions

func (ListBySubscriptionOperationOptions) ToHeaders

func (ListBySubscriptionOperationOptions) ToOData

func (ListBySubscriptionOperationOptions) ToQuery

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]IntegrationAccount
}

type ListCallbackUrlOperationResponse

type ListCallbackUrlOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CallbackUrl
}

type ListKeyVaultKeysDefinition

type ListKeyVaultKeysDefinition struct {
	KeyVault  KeyVaultReference `json:"keyVault"`
	SkipToken *string           `json:"skipToken,omitempty"`
}

type ListKeyVaultKeysOperationResponse

type ListKeyVaultKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *KeyVaultKeyCollection
}

type LogTrackingEventsOperationResponse

type LogTrackingEventsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type RegenerateAccessKeyOperationResponse

type RegenerateAccessKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *IntegrationAccount
}

type RegenerateActionParameter

type RegenerateActionParameter struct {
	KeyType *KeyType `json:"keyType,omitempty"`
}

type ResourceReference

type ResourceReference struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type TrackEventsOperationOptions

type TrackEventsOperationOptions string
const (
	TrackEventsOperationOptionsDisableSourceInfoEnrich TrackEventsOperationOptions = "DisableSourceInfoEnrich"
	TrackEventsOperationOptionsNone                    TrackEventsOperationOptions = "None"
)

func (*TrackEventsOperationOptions) UnmarshalJSON

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

type TrackingEvent

type TrackingEvent struct {
	Error      *TrackingEventErrorInfo `json:"error,omitempty"`
	EventLevel EventLevel              `json:"eventLevel"`
	EventTime  string                  `json:"eventTime"`
	Record     *interface{}            `json:"record,omitempty"`
	RecordType TrackingRecordType      `json:"recordType"`
}

func (*TrackingEvent) GetEventTimeAsTime

func (o *TrackingEvent) GetEventTimeAsTime() (*time.Time, error)

func (*TrackingEvent) SetEventTimeAsTime

func (o *TrackingEvent) SetEventTimeAsTime(input time.Time)

type TrackingEventErrorInfo

type TrackingEventErrorInfo struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type TrackingEventsDefinition

type TrackingEventsDefinition struct {
	Events             []TrackingEvent              `json:"events"`
	SourceType         string                       `json:"sourceType"`
	TrackEventsOptions *TrackEventsOperationOptions `json:"trackEventsOptions,omitempty"`
}

type TrackingRecordType

type TrackingRecordType string
const (
	TrackingRecordTypeASTwoMDN                             TrackingRecordType = "AS2MDN"
	TrackingRecordTypeASTwoMessage                         TrackingRecordType = "AS2Message"
	TrackingRecordTypeCustom                               TrackingRecordType = "Custom"
	TrackingRecordTypeEdifactFunctionalGroup               TrackingRecordType = "EdifactFunctionalGroup"
	TrackingRecordTypeEdifactFunctionalGroupAcknowledgment TrackingRecordType = "EdifactFunctionalGroupAcknowledgment"
	TrackingRecordTypeEdifactInterchange                   TrackingRecordType = "EdifactInterchange"
	TrackingRecordTypeEdifactInterchangeAcknowledgment     TrackingRecordType = "EdifactInterchangeAcknowledgment"
	TrackingRecordTypeEdifactTransactionSet                TrackingRecordType = "EdifactTransactionSet"
	TrackingRecordTypeEdifactTransactionSetAcknowledgment  TrackingRecordType = "EdifactTransactionSetAcknowledgment"
	TrackingRecordTypeNotSpecified                         TrackingRecordType = "NotSpecified"
	TrackingRecordTypeXOneTwoFunctionalGroup               TrackingRecordType = "X12FunctionalGroup"
	TrackingRecordTypeXOneTwoFunctionalGroupAcknowledgment TrackingRecordType = "X12FunctionalGroupAcknowledgment"
	TrackingRecordTypeXOneTwoInterchange                   TrackingRecordType = "X12Interchange"
	TrackingRecordTypeXOneTwoInterchangeAcknowledgment     TrackingRecordType = "X12InterchangeAcknowledgment"
	TrackingRecordTypeXOneTwoTransactionSet                TrackingRecordType = "X12TransactionSet"
	TrackingRecordTypeXOneTwoTransactionSetAcknowledgment  TrackingRecordType = "X12TransactionSetAcknowledgment"
)

func (*TrackingRecordType) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *IntegrationAccount
}

type WorkflowState

type WorkflowState string
const (
	WorkflowStateCompleted    WorkflowState = "Completed"
	WorkflowStateDeleted      WorkflowState = "Deleted"
	WorkflowStateDisabled     WorkflowState = "Disabled"
	WorkflowStateEnabled      WorkflowState = "Enabled"
	WorkflowStateNotSpecified WorkflowState = "NotSpecified"
	WorkflowStateSuspended    WorkflowState = "Suspended"
)

func (*WorkflowState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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