azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2015-08-01/eventhub Index | Files | Directories

package eventhub

import "github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2015-08-01/eventhub"

Package eventhub implements the Azure ARM Eventhub service API version 2015-08-01.

Azure Event Hubs client

Index

Package Files

client.go consumergroups.go eventhubs.go models.go namespaces.go operations.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Eventhub
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AccessRights Uses

type AccessRights string

AccessRights enumerates the values for access rights.

const (
    // Listen ...
    Listen AccessRights = "Listen"
    // Manage ...
    Manage AccessRights = "Manage"
    // Send ...
    Send AccessRights = "Send"
)

func PossibleAccessRightsValues Uses

func PossibleAccessRightsValues() []AccessRights

PossibleAccessRightsValues returns an array of possible values for the AccessRights const type.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Eventhub.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CheckNameAvailabilityParameter Uses

type CheckNameAvailabilityParameter struct {
    // Name - Name to check the namespace name availability
    Name *string `json:"name,omitempty"`
}

CheckNameAvailabilityParameter parameter supplied to check Namespace name availability operation

type CheckNameAvailabilityResult Uses

type CheckNameAvailabilityResult struct {
    autorest.Response `json:"-"`
    // NameAvailable - Value indicating Namespace is availability, true if the Namespace is available; otherwise, false.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Reason - The reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'
    Reason UnavailableReason `json:"reason,omitempty"`
    // Message - READ-ONLY; The detailed info regarding the reason associated with the Namespace.
    Message *string `json:"message,omitempty"`
}

CheckNameAvailabilityResult the Result of the CheckNameAvailability operation

type ConsumerGroupCreateOrUpdateParameters Uses

type ConsumerGroupCreateOrUpdateParameters struct {
    // Location - Location of the resource.
    Location *string `json:"location,omitempty"`
    // Type - ARM type of the Namespace.
    Type *string `json:"type,omitempty"`
    // Name - Name of the consumer group.
    Name                     *string `json:"name,omitempty"`
    *ConsumerGroupProperties `json:"properties,omitempty"`
}

ConsumerGroupCreateOrUpdateParameters parameters supplied to the Create Or Update Consumer Group operation.

func (ConsumerGroupCreateOrUpdateParameters) MarshalJSON Uses

func (cgcoup ConsumerGroupCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConsumerGroupCreateOrUpdateParameters.

func (*ConsumerGroupCreateOrUpdateParameters) UnmarshalJSON Uses

func (cgcoup *ConsumerGroupCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConsumerGroupCreateOrUpdateParameters struct.

type ConsumerGroupListResult Uses

type ConsumerGroupListResult struct {
    autorest.Response `json:"-"`
    // Value - Result of the List Consumer Group operation.
    Value *[]ConsumerGroupResource `json:"value,omitempty"`
    // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of Consumer Group
    NextLink *string `json:"nextLink,omitempty"`
}

ConsumerGroupListResult the result to the List Consumer Group operation.

func (ConsumerGroupListResult) IsEmpty Uses

func (cglr ConsumerGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConsumerGroupListResultIterator Uses

type ConsumerGroupListResultIterator struct {
    // contains filtered or unexported fields
}

ConsumerGroupListResultIterator provides access to a complete listing of ConsumerGroupResource values.

func NewConsumerGroupListResultIterator Uses

func NewConsumerGroupListResultIterator(page ConsumerGroupListResultPage) ConsumerGroupListResultIterator

Creates a new instance of the ConsumerGroupListResultIterator type.

func (*ConsumerGroupListResultIterator) Next Uses

func (iter *ConsumerGroupListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ConsumerGroupListResultIterator) NextWithContext Uses

func (iter *ConsumerGroupListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ConsumerGroupListResultIterator) NotDone Uses

func (iter ConsumerGroupListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ConsumerGroupListResultIterator) Response Uses

func (iter ConsumerGroupListResultIterator) Response() ConsumerGroupListResult

Response returns the raw server response from the last page request.

func (ConsumerGroupListResultIterator) Value Uses

func (iter ConsumerGroupListResultIterator) Value() ConsumerGroupResource

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ConsumerGroupListResultPage Uses

type ConsumerGroupListResultPage struct {
    // contains filtered or unexported fields
}

ConsumerGroupListResultPage contains a page of ConsumerGroupResource values.

func NewConsumerGroupListResultPage Uses

func NewConsumerGroupListResultPage(getNextPage func(context.Context, ConsumerGroupListResult) (ConsumerGroupListResult, error)) ConsumerGroupListResultPage

Creates a new instance of the ConsumerGroupListResultPage type.

func (*ConsumerGroupListResultPage) Next Uses

func (page *ConsumerGroupListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ConsumerGroupListResultPage) NextWithContext Uses

func (page *ConsumerGroupListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ConsumerGroupListResultPage) NotDone Uses

func (page ConsumerGroupListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ConsumerGroupListResultPage) Response Uses

func (page ConsumerGroupListResultPage) Response() ConsumerGroupListResult

Response returns the raw server response from the last page request.

func (ConsumerGroupListResultPage) Values Uses

func (page ConsumerGroupListResultPage) Values() []ConsumerGroupResource

Values returns the slice of values for the current page or nil if there are no values.

type ConsumerGroupProperties Uses

type ConsumerGroupProperties struct {
    // CreatedAt - READ-ONLY; Exact time the message was created.
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // EventHubPath - READ-ONLY; The path of the Event Hub.
    EventHubPath *string `json:"eventHubPath,omitempty"`
    // UpdatedAt - READ-ONLY; The exact time the message was updated.
    UpdatedAt *date.Time `json:"updatedAt,omitempty"`
    // UserMetadata - The user metadata.
    UserMetadata *string `json:"userMetadata,omitempty"`
}

ConsumerGroupProperties properties supplied to the Create Or Update Consumer Group operation.

type ConsumerGroupResource Uses

type ConsumerGroupResource struct {
    autorest.Response        `json:"-"`
    *ConsumerGroupProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

ConsumerGroupResource single item in List or Get Consumer group operation

func (ConsumerGroupResource) MarshalJSON Uses

func (cgr ConsumerGroupResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConsumerGroupResource.

func (*ConsumerGroupResource) UnmarshalJSON Uses

func (cgr *ConsumerGroupResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConsumerGroupResource struct.

type ConsumerGroupsClient Uses

type ConsumerGroupsClient struct {
    BaseClient
}

ConsumerGroupsClient is the azure Event Hubs client

func NewConsumerGroupsClient Uses

func NewConsumerGroupsClient(subscriptionID string) ConsumerGroupsClient

NewConsumerGroupsClient creates an instance of the ConsumerGroupsClient client.

func NewConsumerGroupsClientWithBaseURI Uses

func NewConsumerGroupsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerGroupsClient

NewConsumerGroupsClientWithBaseURI creates an instance of the ConsumerGroupsClient client.

func (ConsumerGroupsClient) CreateOrUpdate Uses

func (client ConsumerGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, consumerGroupName string, parameters ConsumerGroupCreateOrUpdateParameters) (result ConsumerGroupResource, err error)

CreateOrUpdate creates or updates an Event Hubs consumer group as a nested resource within a Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name consumerGroupName - the consumer group name parameters - parameters supplied to create or update a consumer group resource.

func (ConsumerGroupsClient) CreateOrUpdatePreparer Uses

func (client ConsumerGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, consumerGroupName string, parameters ConsumerGroupCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConsumerGroupsClient) CreateOrUpdateResponder Uses

func (client ConsumerGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ConsumerGroupResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ConsumerGroupsClient) CreateOrUpdateSender Uses

func (client ConsumerGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ConsumerGroupsClient) Delete Uses

func (client ConsumerGroupsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, consumerGroupName string) (result autorest.Response, err error)

Delete deletes a consumer group from the specified Event Hub and resource group. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name consumerGroupName - the consumer group name

func (ConsumerGroupsClient) DeletePreparer Uses

func (client ConsumerGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, consumerGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ConsumerGroupsClient) DeleteResponder Uses

func (client ConsumerGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ConsumerGroupsClient) DeleteSender Uses

func (client ConsumerGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ConsumerGroupsClient) Get Uses

func (client ConsumerGroupsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, consumerGroupName string) (result ConsumerGroupResource, err error)

Get gets a description for the specified consumer group. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name consumerGroupName - the consumer group name

func (ConsumerGroupsClient) GetPreparer Uses

func (client ConsumerGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, consumerGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ConsumerGroupsClient) GetResponder Uses

func (client ConsumerGroupsClient) GetResponder(resp *http.Response) (result ConsumerGroupResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ConsumerGroupsClient) GetSender Uses

func (client ConsumerGroupsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ConsumerGroupsClient) ListAll Uses

func (client ConsumerGroupsClient) ListAll(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (result ConsumerGroupListResultPage, err error)

ListAll gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name

func (ConsumerGroupsClient) ListAllComplete Uses

func (client ConsumerGroupsClient) ListAllComplete(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (result ConsumerGroupListResultIterator, err error)

ListAllComplete enumerates all values, automatically crossing page boundaries as required.

func (ConsumerGroupsClient) ListAllPreparer Uses

func (client ConsumerGroupsClient) ListAllPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (ConsumerGroupsClient) ListAllResponder Uses

func (client ConsumerGroupsClient) ListAllResponder(resp *http.Response) (result ConsumerGroupListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (ConsumerGroupsClient) ListAllSender Uses

func (client ConsumerGroupsClient) ListAllSender(req *http.Request) (*http.Response, error)

ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.

type CreateOrUpdateParameters Uses

type CreateOrUpdateParameters struct {
    // Location - Location of the resource.
    Location *string `json:"location,omitempty"`
    // Type - ARM type of the Namespace.
    Type *string `json:"type,omitempty"`
    // Name - Name of the Event Hub.
    Name        *string `json:"name,omitempty"`
    *Properties `json:"properties,omitempty"`
}

CreateOrUpdateParameters parameters supplied to the Create Or Update Event Hub operation.

func (CreateOrUpdateParameters) MarshalJSON Uses

func (coup CreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreateOrUpdateParameters.

func (*CreateOrUpdateParameters) UnmarshalJSON Uses

func (coup *CreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CreateOrUpdateParameters struct.

type EntityStatus Uses

type EntityStatus string

EntityStatus enumerates the values for entity status.

const (
    // Active ...
    Active EntityStatus = "Active"
    // Creating ...
    Creating EntityStatus = "Creating"
    // Deleting ...
    Deleting EntityStatus = "Deleting"
    // Disabled ...
    Disabled EntityStatus = "Disabled"
    // ReceiveDisabled ...
    ReceiveDisabled EntityStatus = "ReceiveDisabled"
    // Renaming ...
    Renaming EntityStatus = "Renaming"
    // Restoring ...
    Restoring EntityStatus = "Restoring"
    // SendDisabled ...
    SendDisabled EntityStatus = "SendDisabled"
    // Unknown ...
    Unknown EntityStatus = "Unknown"
)

func PossibleEntityStatusValues Uses

func PossibleEntityStatusValues() []EntityStatus

PossibleEntityStatusValues returns an array of possible values for the EntityStatus const type.

type EventHubsClient Uses

type EventHubsClient struct {
    BaseClient
}

EventHubsClient is the azure Event Hubs client

func NewEventHubsClient Uses

func NewEventHubsClient(subscriptionID string) EventHubsClient

NewEventHubsClient creates an instance of the EventHubsClient client.

func NewEventHubsClientWithBaseURI Uses

func NewEventHubsClientWithBaseURI(baseURI string, subscriptionID string) EventHubsClient

NewEventHubsClientWithBaseURI creates an instance of the EventHubsClient client.

func (EventHubsClient) CreateOrUpdate Uses

func (client EventHubsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, parameters CreateOrUpdateParameters) (result ResourceType, err error)

CreateOrUpdate creates or updates a new Event Hub as a nested resource within a Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name parameters - parameters supplied to create an Event Hub resource.

func (EventHubsClient) CreateOrUpdateAuthorizationRule Uses

func (client EventHubsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRule creates or updates an AuthorizationRule for the specified Event Hub. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name authorizationRuleName - the authorization rule name. parameters - the shared access AuthorizationRule.

func (EventHubsClient) CreateOrUpdateAuthorizationRulePreparer Uses

func (client EventHubsClient) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (EventHubsClient) CreateOrUpdateAuthorizationRuleResponder Uses

func (client EventHubsClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRuleResponder handles the response to the CreateOrUpdateAuthorizationRule request. The method always closes the http.Response Body.

func (EventHubsClient) CreateOrUpdateAuthorizationRuleSender Uses

func (client EventHubsClient) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error)

CreateOrUpdateAuthorizationRuleSender sends the CreateOrUpdateAuthorizationRule request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) CreateOrUpdatePreparer Uses

func (client EventHubsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, parameters CreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EventHubsClient) CreateOrUpdateResponder Uses

func (client EventHubsClient) CreateOrUpdateResponder(resp *http.Response) (result ResourceType, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (EventHubsClient) CreateOrUpdateSender Uses

func (client EventHubsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) Delete Uses

func (client EventHubsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (result autorest.Response, err error)

Delete deletes an Event Hub from the specified Namespace and resource group. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name

func (EventHubsClient) DeleteAuthorizationRule Uses

func (client EventHubsClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (result autorest.Response, err error)

DeleteAuthorizationRule deletes an Event Hub AuthorizationRule. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name authorizationRuleName - the authorization rule name.

func (EventHubsClient) DeleteAuthorizationRulePreparer Uses

func (client EventHubsClient) DeleteAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (*http.Request, error)

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (EventHubsClient) DeleteAuthorizationRuleResponder Uses

func (client EventHubsClient) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAuthorizationRuleResponder handles the response to the DeleteAuthorizationRule request. The method always closes the http.Response Body.

func (EventHubsClient) DeleteAuthorizationRuleSender Uses

func (client EventHubsClient) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error)

DeleteAuthorizationRuleSender sends the DeleteAuthorizationRule request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) DeletePreparer Uses

func (client EventHubsClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EventHubsClient) DeleteResponder Uses

func (client EventHubsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (EventHubsClient) DeleteSender Uses

func (client EventHubsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) Get Uses

func (client EventHubsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (result ResourceType, err error)

Get gets an Event Hubs description for the specified Event Hub. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name

func (EventHubsClient) GetAuthorizationRule Uses

func (client EventHubsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRule gets an AuthorizationRule for an Event Hub by rule name. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name authorizationRuleName - the authorization rule name.

func (EventHubsClient) GetAuthorizationRulePreparer Uses

func (client EventHubsClient) GetAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (*http.Request, error)

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (EventHubsClient) GetAuthorizationRuleResponder Uses

func (client EventHubsClient) GetAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRuleResponder handles the response to the GetAuthorizationRule request. The method always closes the http.Response Body.

func (EventHubsClient) GetAuthorizationRuleSender Uses

func (client EventHubsClient) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error)

GetAuthorizationRuleSender sends the GetAuthorizationRule request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) GetPreparer Uses

func (client EventHubsClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EventHubsClient) GetResponder Uses

func (client EventHubsClient) GetResponder(resp *http.Response) (result ResourceType, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (EventHubsClient) GetSender Uses

func (client EventHubsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) ListAll Uses

func (client EventHubsClient) ListAll(ctx context.Context, resourceGroupName string, namespaceName string) (result ListResultPage, err error)

ListAll gets all the Event Hubs in a Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name

func (EventHubsClient) ListAllComplete Uses

func (client EventHubsClient) ListAllComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result ListResultIterator, err error)

ListAllComplete enumerates all values, automatically crossing page boundaries as required.

func (EventHubsClient) ListAllPreparer Uses

func (client EventHubsClient) ListAllPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (EventHubsClient) ListAllResponder Uses

func (client EventHubsClient) ListAllResponder(resp *http.Response) (result ListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (EventHubsClient) ListAllSender Uses

func (client EventHubsClient) ListAllSender(req *http.Request) (*http.Response, error)

ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) ListAuthorizationRules Uses

func (client EventHubsClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (result SharedAccessAuthorizationRuleListResultPage, err error)

ListAuthorizationRules gets the authorization rules for an Event Hub. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name

func (EventHubsClient) ListAuthorizationRulesComplete Uses

func (client EventHubsClient) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (result SharedAccessAuthorizationRuleListResultIterator, err error)

ListAuthorizationRulesComplete enumerates all values, automatically crossing page boundaries as required.

func (EventHubsClient) ListAuthorizationRulesPreparer Uses

func (client EventHubsClient) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (EventHubsClient) ListAuthorizationRulesResponder Uses

func (client EventHubsClient) ListAuthorizationRulesResponder(resp *http.Response) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRulesResponder handles the response to the ListAuthorizationRules request. The method always closes the http.Response Body.

func (EventHubsClient) ListAuthorizationRulesSender Uses

func (client EventHubsClient) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error)

ListAuthorizationRulesSender sends the ListAuthorizationRules request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) ListKeys Uses

func (client EventHubsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (result ResourceListKeys, err error)

ListKeys gets the ACS and SAS connection strings for the Event Hub. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name authorizationRuleName - the authorization rule name.

func (EventHubsClient) ListKeysPreparer Uses

func (client EventHubsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (EventHubsClient) ListKeysResponder Uses

func (client EventHubsClient) ListKeysResponder(resp *http.Response) (result ResourceListKeys, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (EventHubsClient) ListKeysSender Uses

func (client EventHubsClient) ListKeysSender(req *http.Request) (*http.Response, error)

ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) PostAuthorizationRule Uses

func (client EventHubsClient) PostAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error)

PostAuthorizationRule gets an AuthorizationRule for an Event Hub by rule name. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name authorizationRuleName - the authorization rule name.

func (EventHubsClient) PostAuthorizationRulePreparer Uses

func (client EventHubsClient) PostAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string) (*http.Request, error)

PostAuthorizationRulePreparer prepares the PostAuthorizationRule request.

func (EventHubsClient) PostAuthorizationRuleResponder Uses

func (client EventHubsClient) PostAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

PostAuthorizationRuleResponder handles the response to the PostAuthorizationRule request. The method always closes the http.Response Body.

func (EventHubsClient) PostAuthorizationRuleSender Uses

func (client EventHubsClient) PostAuthorizationRuleSender(req *http.Request) (*http.Response, error)

PostAuthorizationRuleSender sends the PostAuthorizationRule request. The method will close the http.Response Body if it receives an error.

func (EventHubsClient) RegenerateKeys Uses

func (client EventHubsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string, parameters RegenerateKeysParameters) (result ResourceListKeys, err error)

RegenerateKeys regenerates the ACS and SAS connection strings for the Event Hub. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name eventHubName - the Event Hub name authorizationRuleName - the authorization rule name. parameters - parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).

func (EventHubsClient) RegenerateKeysPreparer Uses

func (client EventHubsClient) RegenerateKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string, authorizationRuleName string, parameters RegenerateKeysParameters) (*http.Request, error)

RegenerateKeysPreparer prepares the RegenerateKeys request.

func (EventHubsClient) RegenerateKeysResponder Uses

func (client EventHubsClient) RegenerateKeysResponder(resp *http.Response) (result ResourceListKeys, err error)

RegenerateKeysResponder handles the response to the RegenerateKeys request. The method always closes the http.Response Body.

func (EventHubsClient) RegenerateKeysSender Uses

func (client EventHubsClient) RegenerateKeysSender(req *http.Request) (*http.Response, error)

RegenerateKeysSender sends the RegenerateKeys request. The method will close the http.Response Body if it receives an error.

type ListResult Uses

type ListResult struct {
    autorest.Response `json:"-"`
    // Value - Result of the List EventHubs operation.
    Value *[]ResourceType `json:"value,omitempty"`
    // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of EventHubs.
    NextLink *string `json:"nextLink,omitempty"`
}

ListResult the result of the List EventHubs operation.

func (ListResult) IsEmpty Uses

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListResultIterator Uses

type ListResultIterator struct {
    // contains filtered or unexported fields
}

ListResultIterator provides access to a complete listing of ResourceType values.

func NewListResultIterator Uses

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next Uses

func (iter *ListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultIterator) NextWithContext Uses

func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ListResultIterator) NotDone Uses

func (iter ListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListResultIterator) Response Uses

func (iter ListResultIterator) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultIterator) Value Uses

func (iter ListResultIterator) Value() ResourceType

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ListResultPage Uses

type ListResultPage struct {
    // contains filtered or unexported fields
}

ListResultPage contains a page of ResourceType values.

func NewListResultPage Uses

func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next Uses

func (page *ListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultPage) NextWithContext Uses

func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ListResultPage) NotDone Uses

func (page ListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListResultPage) Response Uses

func (page ListResultPage) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultPage) Values Uses

func (page ListResultPage) Values() []ResourceType

Values returns the slice of values for the current page or nil if there are no values.

type NamespaceCreateOrUpdateParameters Uses

type NamespaceCreateOrUpdateParameters struct {
    // Location - Namespace location.
    Location *string `json:"location,omitempty"`
    Sku      *Sku    `json:"sku,omitempty"`
    // Tags - Namespace tags.
    Tags                 map[string]*string `json:"tags"`
    *NamespaceProperties `json:"properties,omitempty"`
}

NamespaceCreateOrUpdateParameters parameters supplied to the Create Or Update Namespace operation.

func (NamespaceCreateOrUpdateParameters) MarshalJSON Uses

func (ncoup NamespaceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NamespaceCreateOrUpdateParameters.

func (*NamespaceCreateOrUpdateParameters) UnmarshalJSON Uses

func (ncoup *NamespaceCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for NamespaceCreateOrUpdateParameters struct.

type NamespaceListResult Uses

type NamespaceListResult struct {
    autorest.Response `json:"-"`
    // Value - Result of the List Namespace operation.
    Value *[]NamespaceResource `json:"value,omitempty"`
    // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of namespaces.
    NextLink *string `json:"nextLink,omitempty"`
}

NamespaceListResult the response of the List Namespace operation.

func (NamespaceListResult) IsEmpty Uses

func (nlr NamespaceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type NamespaceListResultIterator Uses

type NamespaceListResultIterator struct {
    // contains filtered or unexported fields
}

NamespaceListResultIterator provides access to a complete listing of NamespaceResource values.

func NewNamespaceListResultIterator Uses

func NewNamespaceListResultIterator(page NamespaceListResultPage) NamespaceListResultIterator

Creates a new instance of the NamespaceListResultIterator type.

func (*NamespaceListResultIterator) Next Uses

func (iter *NamespaceListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*NamespaceListResultIterator) NextWithContext Uses

func (iter *NamespaceListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (NamespaceListResultIterator) NotDone Uses

func (iter NamespaceListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (NamespaceListResultIterator) Response Uses

func (iter NamespaceListResultIterator) Response() NamespaceListResult

Response returns the raw server response from the last page request.

func (NamespaceListResultIterator) Value Uses

func (iter NamespaceListResultIterator) Value() NamespaceResource

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type NamespaceListResultPage Uses

type NamespaceListResultPage struct {
    // contains filtered or unexported fields
}

NamespaceListResultPage contains a page of NamespaceResource values.

func NewNamespaceListResultPage Uses

func NewNamespaceListResultPage(getNextPage func(context.Context, NamespaceListResult) (NamespaceListResult, error)) NamespaceListResultPage

Creates a new instance of the NamespaceListResultPage type.

func (*NamespaceListResultPage) Next Uses

func (page *NamespaceListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*NamespaceListResultPage) NextWithContext Uses

func (page *NamespaceListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (NamespaceListResultPage) NotDone Uses

func (page NamespaceListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (NamespaceListResultPage) Response Uses

func (page NamespaceListResultPage) Response() NamespaceListResult

Response returns the raw server response from the last page request.

func (NamespaceListResultPage) Values Uses

func (page NamespaceListResultPage) Values() []NamespaceResource

Values returns the slice of values for the current page or nil if there are no values.

type NamespaceProperties Uses

type NamespaceProperties struct {
    // Status - State of the Namespace. Possible values include: 'NamespaceStateUnknown', 'NamespaceStateCreating', 'NamespaceStateCreated', 'NamespaceStateActivating', 'NamespaceStateEnabling', 'NamespaceStateActive', 'NamespaceStateDisabling', 'NamespaceStateDisabled', 'NamespaceStateSoftDeleting', 'NamespaceStateSoftDeleted', 'NamespaceStateRemoving', 'NamespaceStateRemoved', 'NamespaceStateFailed'
    Status NamespaceState `json:"status,omitempty"`
    // ProvisioningState - Provisioning state of the Namespace.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // CreatedAt - The time the Namespace was created.
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // UpdatedAt - The time the Namespace was updated.
    UpdatedAt *date.Time `json:"updatedAt,omitempty"`
    // ServiceBusEndpoint - Endpoint you can use to perform Service Bus operations.
    ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"`
    // MetricID - READ-ONLY; Identifier for Azure Insights metrics
    MetricID *string `json:"metricId,omitempty"`
    // Enabled - Specifies whether this instance is enabled.
    Enabled *bool `json:"enabled,omitempty"`
}

NamespaceProperties properties of the Namespace supplied for create or update Namespace operation

type NamespaceResource Uses

type NamespaceResource struct {
    autorest.Response    `json:"-"`
    Sku                  *Sku `json:"sku,omitempty"`
    *NamespaceProperties `json:"properties,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

NamespaceResource single Namespace item in List or Get Operation

func (NamespaceResource) MarshalJSON Uses

func (nr NamespaceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NamespaceResource.

func (*NamespaceResource) UnmarshalJSON Uses

func (nr *NamespaceResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for NamespaceResource struct.

type NamespaceState Uses

type NamespaceState string

NamespaceState enumerates the values for namespace state.

const (
    // NamespaceStateActivating ...
    NamespaceStateActivating NamespaceState = "Activating"
    // NamespaceStateActive ...
    NamespaceStateActive NamespaceState = "Active"
    // NamespaceStateCreated ...
    NamespaceStateCreated NamespaceState = "Created"
    // NamespaceStateCreating ...
    NamespaceStateCreating NamespaceState = "Creating"
    // NamespaceStateDisabled ...
    NamespaceStateDisabled NamespaceState = "Disabled"
    // NamespaceStateDisabling ...
    NamespaceStateDisabling NamespaceState = "Disabling"
    // NamespaceStateEnabling ...
    NamespaceStateEnabling NamespaceState = "Enabling"
    // NamespaceStateFailed ...
    NamespaceStateFailed NamespaceState = "Failed"
    // NamespaceStateRemoved ...
    NamespaceStateRemoved NamespaceState = "Removed"
    // NamespaceStateRemoving ...
    NamespaceStateRemoving NamespaceState = "Removing"
    // NamespaceStateSoftDeleted ...
    NamespaceStateSoftDeleted NamespaceState = "SoftDeleted"
    // NamespaceStateSoftDeleting ...
    NamespaceStateSoftDeleting NamespaceState = "SoftDeleting"
    // NamespaceStateUnknown ...
    NamespaceStateUnknown NamespaceState = "Unknown"
)

func PossibleNamespaceStateValues Uses

func PossibleNamespaceStateValues() []NamespaceState

PossibleNamespaceStateValues returns an array of possible values for the NamespaceState const type.

type NamespaceUpdateParameter Uses

type NamespaceUpdateParameter struct {
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
    // Sku - The sku of the created Namespace
    Sku *Sku `json:"sku,omitempty"`
}

NamespaceUpdateParameter parameters supplied to the Patch/update Namespace operation.

func (NamespaceUpdateParameter) MarshalJSON Uses

func (nup NamespaceUpdateParameter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NamespaceUpdateParameter.

type NamespacesClient Uses

type NamespacesClient struct {
    BaseClient
}

NamespacesClient is the azure Event Hubs client

func NewNamespacesClient Uses

func NewNamespacesClient(subscriptionID string) NamespacesClient

NewNamespacesClient creates an instance of the NamespacesClient client.

func NewNamespacesClientWithBaseURI Uses

func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) NamespacesClient

NewNamespacesClientWithBaseURI creates an instance of the NamespacesClient client.

func (NamespacesClient) CheckNameAvailability Uses

func (client NamespacesClient) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityParameter) (result CheckNameAvailabilityResult, err error)

CheckNameAvailability check the give Namespace name availability. Parameters: parameters - parameters to check availability of the given Namespace name

func (NamespacesClient) CheckNameAvailabilityPreparer Uses

func (client NamespacesClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityParameter) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (NamespacesClient) CheckNameAvailabilityResponder Uses

func (client NamespacesClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (NamespacesClient) CheckNameAvailabilitySender Uses

func (client NamespacesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) CreateOrUpdate Uses

func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceCreateOrUpdateParameters) (result NamespacesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name parameters - parameters for creating a namespace resource.

func (NamespacesClient) CreateOrUpdateAuthorizationRule Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRule creates or updates an AuthorizationRule for a Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name authorizationRuleName - the authorization rule name. parameters - the shared access AuthorizationRule.

func (NamespacesClient) CreateOrUpdateAuthorizationRulePreparer Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (NamespacesClient) CreateOrUpdateAuthorizationRuleResponder Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRuleResponder handles the response to the CreateOrUpdateAuthorizationRule request. The method always closes the http.Response Body.

func (NamespacesClient) CreateOrUpdateAuthorizationRuleSender Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error)

CreateOrUpdateAuthorizationRuleSender sends the CreateOrUpdateAuthorizationRule request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) CreateOrUpdatePreparer Uses

func (client NamespacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (NamespacesClient) CreateOrUpdateResponder Uses

func (client NamespacesClient) CreateOrUpdateResponder(resp *http.Response) (result NamespaceResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (NamespacesClient) CreateOrUpdateSender Uses

func (client NamespacesClient) CreateOrUpdateSender(req *http.Request) (future NamespacesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) Delete Uses

func (client NamespacesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespacesDeleteFuture, err error)

Delete deletes an existing namespace. This operation also removes all associated resources under the namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name

func (NamespacesClient) DeleteAuthorizationRule Uses

func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result autorest.Response, err error)

DeleteAuthorizationRule deletes an AuthorizationRule for a Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name authorizationRuleName - the authorization rule name.

func (NamespacesClient) DeleteAuthorizationRulePreparer Uses

func (client NamespacesClient) DeleteAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (NamespacesClient) DeleteAuthorizationRuleResponder Uses

func (client NamespacesClient) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAuthorizationRuleResponder handles the response to the DeleteAuthorizationRule request. The method always closes the http.Response Body.

func (NamespacesClient) DeleteAuthorizationRuleSender Uses

func (client NamespacesClient) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error)

DeleteAuthorizationRuleSender sends the DeleteAuthorizationRule request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) DeletePreparer Uses

func (client NamespacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (NamespacesClient) DeleteResponder Uses

func (client NamespacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (NamespacesClient) DeleteSender Uses

func (client NamespacesClient) DeleteSender(req *http.Request) (future NamespacesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) Get Uses

func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespaceResource, err error)

Get gets the description of the specified namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name

func (NamespacesClient) GetAuthorizationRule Uses

func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRule gets an AuthorizationRule for a Namespace by rule name. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name authorizationRuleName - the authorization rule name.

func (NamespacesClient) GetAuthorizationRulePreparer Uses

func (client NamespacesClient) GetAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (NamespacesClient) GetAuthorizationRuleResponder Uses

func (client NamespacesClient) GetAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRuleResponder handles the response to the GetAuthorizationRule request. The method always closes the http.Response Body.

func (NamespacesClient) GetAuthorizationRuleSender Uses

func (client NamespacesClient) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error)

GetAuthorizationRuleSender sends the GetAuthorizationRule request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) GetPreparer Uses

func (client NamespacesClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (NamespacesClient) GetResponder Uses

func (client NamespacesClient) GetResponder(resp *http.Response) (result NamespaceResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (NamespacesClient) GetSender Uses

func (client NamespacesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) ListAuthorizationRules Uses

func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResultPage, err error)

ListAuthorizationRules gets a list of authorization rules for a Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name

func (NamespacesClient) ListAuthorizationRulesComplete Uses

func (client NamespacesClient) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResultIterator, err error)

ListAuthorizationRulesComplete enumerates all values, automatically crossing page boundaries as required.

func (NamespacesClient) ListAuthorizationRulesPreparer Uses

func (client NamespacesClient) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (NamespacesClient) ListAuthorizationRulesResponder Uses

func (client NamespacesClient) ListAuthorizationRulesResponder(resp *http.Response) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRulesResponder handles the response to the ListAuthorizationRules request. The method always closes the http.Response Body.

func (NamespacesClient) ListAuthorizationRulesSender Uses

func (client NamespacesClient) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error)

ListAuthorizationRulesSender sends the ListAuthorizationRules request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) ListByResourceGroup Uses

func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result NamespaceListResultPage, err error)

ListByResourceGroup lists the available Namespaces within a resource group. Parameters: resourceGroupName - name of the resource group within the azure subscription.

func (NamespacesClient) ListByResourceGroupComplete Uses

func (client NamespacesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result NamespaceListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (NamespacesClient) ListByResourceGroupPreparer Uses

func (client NamespacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (NamespacesClient) ListByResourceGroupResponder Uses

func (client NamespacesClient) ListByResourceGroupResponder(resp *http.Response) (result NamespaceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (NamespacesClient) ListByResourceGroupSender Uses

func (client NamespacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) ListBySubscription Uses

func (client NamespacesClient) ListBySubscription(ctx context.Context) (result NamespaceListResultPage, err error)

ListBySubscription lists all the available Namespaces within a subscription, irrespective of the resource groups.

func (NamespacesClient) ListBySubscriptionComplete Uses

func (client NamespacesClient) ListBySubscriptionComplete(ctx context.Context) (result NamespaceListResultIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (NamespacesClient) ListBySubscriptionPreparer Uses

func (client NamespacesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (NamespacesClient) ListBySubscriptionResponder Uses

func (client NamespacesClient) ListBySubscriptionResponder(resp *http.Response) (result NamespaceListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (NamespacesClient) ListBySubscriptionSender Uses

func (client NamespacesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) ListKeys Uses

func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result ResourceListKeys, err error)

ListKeys gets the primary and secondary connection strings for the Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name authorizationRuleName - the authorization rule name.

func (NamespacesClient) ListKeysPreparer Uses

func (client NamespacesClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (NamespacesClient) ListKeysResponder Uses

func (client NamespacesClient) ListKeysResponder(resp *http.Response) (result ResourceListKeys, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (NamespacesClient) ListKeysSender Uses

func (client NamespacesClient) ListKeysSender(req *http.Request) (*http.Response, error)

ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) RegenerateKeys Uses

func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters RegenerateKeysParameters) (result ResourceListKeys, err error)

RegenerateKeys regenerates the primary or secondary connection strings for the specified Namespace. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name authorizationRuleName - the authorization rule name. parameters - parameters required to regenerate the connection string.

func (NamespacesClient) RegenerateKeysPreparer Uses

func (client NamespacesClient) RegenerateKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters RegenerateKeysParameters) (*http.Request, error)

RegenerateKeysPreparer prepares the RegenerateKeys request.

func (NamespacesClient) RegenerateKeysResponder Uses

func (client NamespacesClient) RegenerateKeysResponder(resp *http.Response) (result ResourceListKeys, err error)

RegenerateKeysResponder handles the response to the RegenerateKeys request. The method always closes the http.Response Body.

func (NamespacesClient) RegenerateKeysSender Uses

func (client NamespacesClient) RegenerateKeysSender(req *http.Request) (*http.Response, error)

RegenerateKeysSender sends the RegenerateKeys request. The method will close the http.Response Body if it receives an error.

func (NamespacesClient) Update Uses

func (client NamespacesClient) Update(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceUpdateParameter) (result NamespaceResource, err error)

Update creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. Parameters: resourceGroupName - name of the resource group within the azure subscription. namespaceName - the Namespace name parameters - parameters for updating a namespace resource.

func (NamespacesClient) UpdatePreparer Uses

func (client NamespacesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceUpdateParameter) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (NamespacesClient) UpdateResponder Uses

func (client NamespacesClient) UpdateResponder(resp *http.Response) (result NamespaceResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (NamespacesClient) UpdateSender Uses

func (client NamespacesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type NamespacesCreateOrUpdateFuture Uses

type NamespacesCreateOrUpdateFuture struct {
    azure.Future
}

NamespacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*NamespacesCreateOrUpdateFuture) Result Uses

func (future *NamespacesCreateOrUpdateFuture) Result(client NamespacesClient) (nr NamespaceResource, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type NamespacesDeleteFuture Uses

type NamespacesDeleteFuture struct {
    azure.Future
}

NamespacesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*NamespacesDeleteFuture) Result Uses

func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Operation Uses

type Operation struct {
    // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - The object that represents the operation.
    Display *OperationDisplay `json:"display,omitempty"`
}

Operation a Event Hub REST API operation

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - READ-ONLY; Service provider: Microsoft.EventHub
    Provider *string `json:"provider,omitempty"`
    // Resource - READ-ONLY; Resource on which the operation is performed: Invoice, etc.
    Resource *string `json:"resource,omitempty"`
    // Operation - READ-ONLY; Operation type: Read, write, delete, etc.
    Operation *string `json:"operation,omitempty"`
}

OperationDisplay the object that represents the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of Event Hub operations supported by the Microsoft.EventHub resource provider.
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list Event Hub operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

type OperationListResultIterator struct {
    // contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext Uses

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone Uses

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage Uses

type OperationListResultPage struct {
    // contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext Uses

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone Uses

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the azure Event Hubs client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available Event Hub REST API operations.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Policykey Uses

type Policykey string

Policykey enumerates the values for policykey.

const (
    // PrimaryKey ...
    PrimaryKey Policykey = "PrimaryKey"
    // SecondaryKey ...
    SecondaryKey Policykey = "SecondaryKey"
)

func PossiblePolicykeyValues Uses

func PossiblePolicykeyValues() []Policykey

PossiblePolicykeyValues returns an array of possible values for the Policykey const type.

type Properties Uses

type Properties struct {
    // CreatedAt - READ-ONLY; Exact time the Event Hub was created.
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // MessageRetentionInDays - Number of days to retain the events for this Event Hub.
    MessageRetentionInDays *int64 `json:"messageRetentionInDays,omitempty"`
    // PartitionCount - Number of partitions created for the Event Hub.
    PartitionCount *int64 `json:"partitionCount,omitempty"`
    // PartitionIds - READ-ONLY; Current number of shards on the Event Hub.
    PartitionIds *[]string `json:"partitionIds,omitempty"`
    // Status - Enumerates the possible values for the status of the Event Hub. Possible values include: 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown'
    Status EntityStatus `json:"status,omitempty"`
    // UpdatedAt - READ-ONLY; The exact time the message was updated.
    UpdatedAt *date.Time `json:"updatedAt,omitempty"`
}

Properties properties supplied to the Create Or Update Event Hub operation.

type RegenerateKeysParameters Uses

type RegenerateKeysParameters struct {
    // Policykey - Key that needs to be regenerated. Possible values include: 'PrimaryKey', 'SecondaryKey'
    Policykey Policykey `json:"policykey,omitempty"`
}

RegenerateKeysParameters parameters supplied to the Regenerate Authorization Rule keys operation.

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

Resource the Resource definition

type ResourceListKeys Uses

type ResourceListKeys struct {
    autorest.Response `json:"-"`
    // PrimaryConnectionString - READ-ONLY; Primary connection string of the created Namespace AuthorizationRule.
    PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"`
    // SecondaryConnectionString - READ-ONLY; Secondary connection string of the created Namespace AuthorizationRule.
    SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"`
    // PrimaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token.
    PrimaryKey *string `json:"primaryKey,omitempty"`
    // SecondaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token.
    SecondaryKey *string `json:"secondaryKey,omitempty"`
    // KeyName - READ-ONLY; A string that describes the AuthorizationRule.
    KeyName *string `json:"keyName,omitempty"`
}

ResourceListKeys namespace/EventHub Connection String

type ResourceType Uses

type ResourceType struct {
    autorest.Response `json:"-"`
    *Properties       `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

ResourceType single item in List or Get Event Hub operation

func (ResourceType) MarshalJSON Uses

func (rt ResourceType) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceType.

func (*ResourceType) UnmarshalJSON Uses

func (rt *ResourceType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ResourceType struct.

type SharedAccessAuthorizationRuleCreateOrUpdateParameters Uses

type SharedAccessAuthorizationRuleCreateOrUpdateParameters struct {
    // Location - Data center location.
    Location *string `json:"location,omitempty"`
    // Name - Name of the AuthorizationRule.
    Name                                     *string `json:"name,omitempty"`
    *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"`
}

SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters supplied to the Create Or Update Authorization Rules operation.

func (SharedAccessAuthorizationRuleCreateOrUpdateParameters) MarshalJSON Uses

func (saarcoup SharedAccessAuthorizationRuleCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SharedAccessAuthorizationRuleCreateOrUpdateParameters.

func (*SharedAccessAuthorizationRuleCreateOrUpdateParameters) UnmarshalJSON Uses

func (saarcoup *SharedAccessAuthorizationRuleCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SharedAccessAuthorizationRuleCreateOrUpdateParameters struct.

type SharedAccessAuthorizationRuleListResult Uses

type SharedAccessAuthorizationRuleListResult struct {
    autorest.Response `json:"-"`
    // Value - Result of the List Authorization Rules operation.
    Value *[]SharedAccessAuthorizationRuleResource `json:"value,omitempty"`
    // NextLink - Link to the next set of results. Not empty if Value contains an incomplete list of Authorization Rules
    NextLink *string `json:"nextLink,omitempty"`
}

SharedAccessAuthorizationRuleListResult the response from the List Namespace operation.

func (SharedAccessAuthorizationRuleListResult) IsEmpty Uses

func (saarlr SharedAccessAuthorizationRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SharedAccessAuthorizationRuleListResultIterator Uses

type SharedAccessAuthorizationRuleListResultIterator struct {
    // contains filtered or unexported fields
}

SharedAccessAuthorizationRuleListResultIterator provides access to a complete listing of SharedAccessAuthorizationRuleResource values.

func NewSharedAccessAuthorizationRuleListResultIterator Uses

func NewSharedAccessAuthorizationRuleListResultIterator(page SharedAccessAuthorizationRuleListResultPage) SharedAccessAuthorizationRuleListResultIterator

Creates a new instance of the SharedAccessAuthorizationRuleListResultIterator type.

func (*SharedAccessAuthorizationRuleListResultIterator) Next Uses

func (iter *SharedAccessAuthorizationRuleListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SharedAccessAuthorizationRuleListResultIterator) NextWithContext Uses

func (iter *SharedAccessAuthorizationRuleListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SharedAccessAuthorizationRuleListResultIterator) NotDone Uses

func (iter SharedAccessAuthorizationRuleListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SharedAccessAuthorizationRuleListResultIterator) Response Uses

func (iter SharedAccessAuthorizationRuleListResultIterator) Response() SharedAccessAuthorizationRuleListResult

Response returns the raw server response from the last page request.

func (SharedAccessAuthorizationRuleListResultIterator) Value Uses

func (iter SharedAccessAuthorizationRuleListResultIterator) Value() SharedAccessAuthorizationRuleResource

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SharedAccessAuthorizationRuleListResultPage Uses

type SharedAccessAuthorizationRuleListResultPage struct {
    // contains filtered or unexported fields
}

SharedAccessAuthorizationRuleListResultPage contains a page of SharedAccessAuthorizationRuleResource values.

func NewSharedAccessAuthorizationRuleListResultPage Uses

func NewSharedAccessAuthorizationRuleListResultPage(getNextPage func(context.Context, SharedAccessAuthorizationRuleListResult) (SharedAccessAuthorizationRuleListResult, error)) SharedAccessAuthorizationRuleListResultPage

Creates a new instance of the SharedAccessAuthorizationRuleListResultPage type.

func (*SharedAccessAuthorizationRuleListResultPage) Next Uses

func (page *SharedAccessAuthorizationRuleListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SharedAccessAuthorizationRuleListResultPage) NextWithContext Uses

func (page *SharedAccessAuthorizationRuleListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SharedAccessAuthorizationRuleListResultPage) NotDone Uses

func (page SharedAccessAuthorizationRuleListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SharedAccessAuthorizationRuleListResultPage) Response Uses

func (page SharedAccessAuthorizationRuleListResultPage) Response() SharedAccessAuthorizationRuleListResult

Response returns the raw server response from the last page request.

func (SharedAccessAuthorizationRuleListResultPage) Values Uses

func (page SharedAccessAuthorizationRuleListResultPage) Values() []SharedAccessAuthorizationRuleResource

Values returns the slice of values for the current page or nil if there are no values.

type SharedAccessAuthorizationRuleProperties Uses

type SharedAccessAuthorizationRuleProperties struct {
    // Rights - The rights associated with the rule.
    Rights *[]AccessRights `json:"rights,omitempty"`
}

SharedAccessAuthorizationRuleProperties properties supplied to create or update SharedAccessAuthorizationRule

type SharedAccessAuthorizationRuleResource Uses

type SharedAccessAuthorizationRuleResource struct {
    autorest.Response                        `json:"-"`
    *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

SharedAccessAuthorizationRuleResource single item in a List or Get AuthorizationRule operation

func (SharedAccessAuthorizationRuleResource) MarshalJSON Uses

func (saarr SharedAccessAuthorizationRuleResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SharedAccessAuthorizationRuleResource.

func (*SharedAccessAuthorizationRuleResource) UnmarshalJSON Uses

func (saarr *SharedAccessAuthorizationRuleResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SharedAccessAuthorizationRuleResource struct.

type Sku Uses

type Sku struct {
    // Name - Name of this SKU. Possible values include: 'Basic', 'Standard'
    Name SkuName `json:"name,omitempty"`
    // Tier - The billing tier of this particular SKU. Possible values include: 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium'
    Tier SkuTier `json:"tier,omitempty"`
    // Capacity - The Event Hubs throughput units.
    Capacity *int32 `json:"capacity,omitempty"`
}

Sku SKU parameters supplied to the create Namespace operation

type SkuName Uses

type SkuName string

SkuName enumerates the values for sku name.

const (
    // Basic ...
    Basic SkuName = "Basic"
    // Standard ...
    Standard SkuName = "Standard"
)

func PossibleSkuNameValues Uses

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName const type.

type SkuTier Uses

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
    // SkuTierBasic ...
    SkuTierBasic SkuTier = "Basic"
    // SkuTierPremium ...
    SkuTierPremium SkuTier = "Premium"
    // SkuTierStandard ...
    SkuTierStandard SkuTier = "Standard"
)

func PossibleSkuTierValues Uses

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

type TrackedResource Uses

type TrackedResource struct {
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name
    Name *string `json:"name,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Type - READ-ONLY; Resource type
    Type *string `json:"type,omitempty"`
}

TrackedResource definition of Resource

func (TrackedResource) MarshalJSON Uses

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type UnavailableReason Uses

type UnavailableReason string

UnavailableReason enumerates the values for unavailable reason.

const (
    // InvalidName ...
    InvalidName UnavailableReason = "InvalidName"
    // NameInLockdown ...
    NameInLockdown UnavailableReason = "NameInLockdown"
    // NameInUse ...
    NameInUse UnavailableReason = "NameInUse"
    // None ...
    None UnavailableReason = "None"
    // SubscriptionIsDisabled ...
    SubscriptionIsDisabled UnavailableReason = "SubscriptionIsDisabled"
    // TooManyNamespaceInCurrentSubscription ...
    TooManyNamespaceInCurrentSubscription UnavailableReason = "TooManyNamespaceInCurrentSubscription"
)

func PossibleUnavailableReasonValues Uses

func PossibleUnavailableReasonValues() []UnavailableReason

PossibleUnavailableReasonValues returns an array of possible values for the UnavailableReason const type.

Directories

PathSynopsis
eventhubapi

Package eventhub imports 10 packages (graph) and is imported by 4 packages. Updated 2019-08-02. Refresh now. Tools for package owners.