eventhubs

package
v2.96.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAccessRights

func PossibleValuesForAccessRights() []string

func PossibleValuesForEncodingCaptureDescription

func PossibleValuesForEncodingCaptureDescription() []string

func PossibleValuesForEntityStatus

func PossibleValuesForEntityStatus() []string

func ValidateEventhubAuthorizationRuleID

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

ValidateEventhubAuthorizationRuleID checks that 'input' can be parsed as a Eventhub Authorization Rule ID

func ValidateEventhubID

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

ValidateEventhubID checks that 'input' can be parsed as a Eventhub ID

func ValidateNamespaceID

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

ValidateNamespaceID checks that 'input' can be parsed as a Namespace ID

Types

type AccessRights

type AccessRights string
const (
	AccessRightsListen AccessRights = "Listen"
	AccessRightsManage AccessRights = "Manage"
	AccessRightsSend   AccessRights = "Send"
)

type AuthorizationRule

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

type AuthorizationRuleProperties

type AuthorizationRuleProperties struct {
	Rights []AccessRights `json:"rights"`
}

type CaptureDescription

type CaptureDescription struct {
	Destination       *Destination                `json:"destination,omitempty"`
	Enabled           *bool                       `json:"enabled,omitempty"`
	Encoding          *EncodingCaptureDescription `json:"encoding,omitempty"`
	IntervalInSeconds *int64                      `json:"intervalInSeconds,omitempty"`
	SizeLimitInBytes  *int64                      `json:"sizeLimitInBytes,omitempty"`
	SkipEmptyArchives *bool                       `json:"skipEmptyArchives,omitempty"`
}

type CreateOrUpdateResponse

type CreateOrUpdateResponse struct {
	HttpResponse *http.Response
	Model        *Eventhub
}

type DeleteAuthorizationRuleResponse

type DeleteAuthorizationRuleResponse struct {
	HttpResponse *http.Response
}

type DeleteResponse

type DeleteResponse struct {
	HttpResponse *http.Response
}

type Destination

type Destination struct {
	Name       *string                `json:"name,omitempty"`
	Properties *DestinationProperties `json:"properties,omitempty"`
}

type DestinationProperties

type DestinationProperties struct {
	ArchiveNameFormat        *string `json:"archiveNameFormat,omitempty"`
	BlobContainer            *string `json:"blobContainer,omitempty"`
	StorageAccountResourceId *string `json:"storageAccountResourceId,omitempty"`
}

type EncodingCaptureDescription

type EncodingCaptureDescription string
const (
	EncodingCaptureDescriptionAvro        EncodingCaptureDescription = "Avro"
	EncodingCaptureDescriptionAvroDeflate EncodingCaptureDescription = "AvroDeflate"
)

type EntityStatus

type EntityStatus string
const (
	EntityStatusActive          EntityStatus = "Active"
	EntityStatusCreating        EntityStatus = "Creating"
	EntityStatusDeleting        EntityStatus = "Deleting"
	EntityStatusDisabled        EntityStatus = "Disabled"
	EntityStatusReceiveDisabled EntityStatus = "ReceiveDisabled"
	EntityStatusRenaming        EntityStatus = "Renaming"
	EntityStatusRestoring       EntityStatus = "Restoring"
	EntityStatusSendDisabled    EntityStatus = "SendDisabled"
	EntityStatusUnknown         EntityStatus = "Unknown"
)

type EventHubsClient

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

func NewEventHubsClientWithBaseURI

func NewEventHubsClientWithBaseURI(endpoint string) EventHubsClient

func (EventHubsClient) CreateOrUpdate

func (c EventHubsClient) CreateOrUpdate(ctx context.Context, id EventhubId, input Eventhub) (result CreateOrUpdateResponse, err error)

CreateOrUpdate ...

func (EventHubsClient) Delete

func (c EventHubsClient) Delete(ctx context.Context, id EventhubId) (result DeleteResponse, err error)

Delete ...

func (EventHubsClient) DeleteAuthorizationRule

func (c EventHubsClient) DeleteAuthorizationRule(ctx context.Context, id EventhubAuthorizationRuleId) (result DeleteAuthorizationRuleResponse, err error)

DeleteAuthorizationRule ...

func (EventHubsClient) Get

func (c EventHubsClient) Get(ctx context.Context, id EventhubId) (result GetResponse, err error)

Get ...

func (EventHubsClient) GetAuthorizationRule

func (c EventHubsClient) GetAuthorizationRule(ctx context.Context, id EventhubAuthorizationRuleId) (result GetAuthorizationRuleResponse, err error)

GetAuthorizationRule ...

func (EventHubsClient) ListByNamespace

func (c EventHubsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOptions) (resp ListByNamespaceResponse, err error)

ListByNamespace ...

func (EventHubsClient) ListByNamespaceComplete

ListByNamespaceComplete retrieves all of the results into a single object

func (EventHubsClient) ListByNamespaceCompleteMatchingPredicate

func (c EventHubsClient) ListByNamespaceCompleteMatchingPredicate(ctx context.Context, id NamespaceId, options ListByNamespaceOptions, predicate EventhubPredicate) (resp ListByNamespaceCompleteResult, err error)

ListByNamespaceCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type Eventhub

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

type EventhubAuthorizationRuleId

type EventhubAuthorizationRuleId struct {
	SubscriptionId        string
	ResourceGroupName     string
	NamespaceName         string
	EventHubName          string
	AuthorizationRuleName string
}

EventhubAuthorizationRuleId is a struct representing the Resource ID for a Eventhub Authorization Rule

func NewEventhubAuthorizationRuleID

func NewEventhubAuthorizationRuleID(subscriptionId string, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) EventhubAuthorizationRuleId

NewEventhubAuthorizationRuleID returns a new EventhubAuthorizationRuleId struct

func ParseEventhubAuthorizationRuleID

func ParseEventhubAuthorizationRuleID(input string) (*EventhubAuthorizationRuleId, error)

ParseEventhubAuthorizationRuleID parses 'input' into a EventhubAuthorizationRuleId

func ParseEventhubAuthorizationRuleIDInsensitively

func ParseEventhubAuthorizationRuleIDInsensitively(input string) (*EventhubAuthorizationRuleId, error)

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

func (EventhubAuthorizationRuleId) ID

ID returns the formatted Eventhub Authorization Rule ID

func (EventhubAuthorizationRuleId) Segments

Segments returns a slice of Resource ID Segments which comprise this Eventhub Authorization Rule ID

func (EventhubAuthorizationRuleId) String

func (id EventhubAuthorizationRuleId) String() string

String returns a human-readable description of this Eventhub Authorization Rule ID

type EventhubId

type EventhubId struct {
	SubscriptionId    string
	ResourceGroupName string
	NamespaceName     string
	EventHubName      string
}

EventhubId is a struct representing the Resource ID for a Eventhub

func NewEventhubID

func NewEventhubID(subscriptionId string, resourceGroupName string, namespaceName string, eventHubName string) EventhubId

NewEventhubID returns a new EventhubId struct

func ParseEventhubID

func ParseEventhubID(input string) (*EventhubId, error)

ParseEventhubID parses 'input' into a EventhubId

func ParseEventhubIDInsensitively

func ParseEventhubIDInsensitively(input string) (*EventhubId, error)

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

func (EventhubId) ID

func (id EventhubId) ID() string

ID returns the formatted Eventhub ID

func (EventhubId) Segments

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

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

func (EventhubId) String

func (id EventhubId) String() string

String returns a human-readable description of this Eventhub ID

type EventhubPredicate

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

func (EventhubPredicate) Matches

func (p EventhubPredicate) Matches(input Eventhub) bool

type EventhubProperties

type EventhubProperties struct {
	CaptureDescription     *CaptureDescription `json:"captureDescription,omitempty"`
	CreatedAt              *string             `json:"createdAt,omitempty"`
	MessageRetentionInDays *int64              `json:"messageRetentionInDays,omitempty"`
	PartitionCount         *int64              `json:"partitionCount,omitempty"`
	PartitionIds           *[]string           `json:"partitionIds,omitempty"`
	Status                 *EntityStatus       `json:"status,omitempty"`
	UpdatedAt              *string             `json:"updatedAt,omitempty"`
}

func (EventhubProperties) GetCreatedAtAsTime

func (o EventhubProperties) GetCreatedAtAsTime() (*time.Time, error)

func (EventhubProperties) GetUpdatedAtAsTime

func (o EventhubProperties) GetUpdatedAtAsTime() (*time.Time, error)

func (EventhubProperties) SetCreatedAtAsTime

func (o EventhubProperties) SetCreatedAtAsTime(input time.Time)

func (EventhubProperties) SetUpdatedAtAsTime

func (o EventhubProperties) SetUpdatedAtAsTime(input time.Time)

type GetAuthorizationRuleResponse

type GetAuthorizationRuleResponse struct {
	HttpResponse *http.Response
	Model        *AuthorizationRule
}

type GetResponse

type GetResponse struct {
	HttpResponse *http.Response
	Model        *Eventhub
}

type ListByNamespaceCompleteResult

type ListByNamespaceCompleteResult struct {
	Items []Eventhub
}

type ListByNamespaceOptions

type ListByNamespaceOptions struct {
	Skip *int64
	Top  *int64
}

func DefaultListByNamespaceOptions

func DefaultListByNamespaceOptions() ListByNamespaceOptions

type ListByNamespaceResponse

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

func (ListByNamespaceResponse) HasMore

func (r ListByNamespaceResponse) HasMore() bool

func (ListByNamespaceResponse) LoadMore

type NamespaceId

type NamespaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	NamespaceName     string
}

NamespaceId is a struct representing the Resource ID for a Namespace

func NewNamespaceID

func NewNamespaceID(subscriptionId string, resourceGroupName string, namespaceName string) NamespaceId

NewNamespaceID returns a new NamespaceId struct

func ParseNamespaceID

func ParseNamespaceID(input string) (*NamespaceId, error)

ParseNamespaceID parses 'input' into a NamespaceId

func ParseNamespaceIDInsensitively

func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error)

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

func (NamespaceId) ID

func (id NamespaceId) ID() string

ID returns the formatted Namespace ID

func (NamespaceId) Segments

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

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

func (NamespaceId) String

func (id NamespaceId) String() string

String returns a human-readable description of this Namespace ID

Jump to

Keyboard shortcuts

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