messagingplan

package
v0.20220711.1122120 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2017-04-01/messagingplan Documentation

The messagingplan SDK allows for interaction with the Azure Resource Manager Service eventhub (API Version 2017-04-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/eventhub/2017-04-01/messagingplan"

Client Initialization

client := messagingplan.NewMessagingPlanClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MessagingPlanClient.NamespacesGetMessagingPlan

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

read, err := client.NamespacesGetMessagingPlan(ctx, id)
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 ValidateNamespaceID

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

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

Types

type MessagingPlan

type MessagingPlan struct {
	Id         *string                  `json:"id,omitempty"`
	Location   *string                  `json:"location,omitempty"`
	Name       *string                  `json:"name,omitempty"`
	Properties *MessagingPlanProperties `json:"properties,omitempty"`
	Tags       *map[string]string       `json:"tags,omitempty"`
	Type       *string                  `json:"type,omitempty"`
}

type MessagingPlanClient

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

func NewMessagingPlanClientWithBaseURI

func NewMessagingPlanClientWithBaseURI(endpoint string) MessagingPlanClient

func (MessagingPlanClient) NamespacesGetMessagingPlan

func (c MessagingPlanClient) NamespacesGetMessagingPlan(ctx context.Context, id NamespaceId) (result NamespacesGetMessagingPlanOperationResponse, err error)

NamespacesGetMessagingPlan ...

type MessagingPlanProperties

type MessagingPlanProperties struct {
	Revision             *int64  `json:"revision,omitempty"`
	SelectedEventHubUnit *int64  `json:"selectedEventHubUnit,omitempty"`
	Sku                  *int64  `json:"sku,omitempty"`
	UpdatedAt            *string `json:"updatedAt,omitempty"`
}

func (*MessagingPlanProperties) GetUpdatedAtAsTime

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

func (*MessagingPlanProperties) SetUpdatedAtAsTime

func (o *MessagingPlanProperties) SetUpdatedAtAsTime(input time.Time)

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

type NamespacesGetMessagingPlanOperationResponse

type NamespacesGetMessagingPlanOperationResponse struct {
	HttpResponse *http.Response
	Model        *MessagingPlan
}

Jump to

Keyboard shortcuts

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