Documentation ¶
Overview ¶
Package eventhub implements the Azure ARM Eventhub service API version 2015-08-01.
Azure Event Hubs client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AccessRights
- type BaseClient
- type CheckNameAvailabilityParameter
- type CheckNameAvailabilityResult
- type ConsumerGroupCreateOrUpdateParameters
- type ConsumerGroupListResult
- type ConsumerGroupListResultIterator
- func (iter *ConsumerGroupListResultIterator) Next() error
- func (iter *ConsumerGroupListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ConsumerGroupListResultIterator) NotDone() bool
- func (iter ConsumerGroupListResultIterator) Response() ConsumerGroupListResult
- func (iter ConsumerGroupListResultIterator) Value() ConsumerGroupResource
- type ConsumerGroupListResultPage
- func (page *ConsumerGroupListResultPage) Next() error
- func (page *ConsumerGroupListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ConsumerGroupListResultPage) NotDone() bool
- func (page ConsumerGroupListResultPage) Response() ConsumerGroupListResult
- func (page ConsumerGroupListResultPage) Values() []ConsumerGroupResource
- type ConsumerGroupProperties
- type ConsumerGroupResource
- type ConsumerGroupsClient
- func (client ConsumerGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ConsumerGroupResource, err error)
- func (client ConsumerGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client ConsumerGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ConsumerGroupResource, err error)
- func (client ConsumerGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ConsumerGroupsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result autorest.Response, err error)
- func (client ConsumerGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client ConsumerGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ConsumerGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ConsumerGroupsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ConsumerGroupResource, err error)
- func (client ConsumerGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client ConsumerGroupsClient) GetResponder(resp *http.Response) (result ConsumerGroupResource, err error)
- func (client ConsumerGroupsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ConsumerGroupsClient) ListAll(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ConsumerGroupListResultPage, err error)
- func (client ConsumerGroupsClient) ListAllComplete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ConsumerGroupListResultIterator, err error)
- func (client ConsumerGroupsClient) ListAllPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client ConsumerGroupsClient) ListAllResponder(resp *http.Response) (result ConsumerGroupListResult, err error)
- func (client ConsumerGroupsClient) ListAllSender(req *http.Request) (*http.Response, error)
- type CreateOrUpdateParameters
- type EntityStatus
- type EventHubsClient
- func (client EventHubsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ResourceType, err error)
- func (client EventHubsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result SharedAccessAuthorizationRuleResource, err error)
- func (client EventHubsClient) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)
- func (client EventHubsClient) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) CreateOrUpdateResponder(resp *http.Response) (result ResourceType, err error)
- func (client EventHubsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result autorest.Response, err error)
- func (client EventHubsClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result autorest.Response, err error)
- func (client EventHubsClient) DeleteAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EventHubsClient) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EventHubsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ResourceType, err error)
- func (client EventHubsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result SharedAccessAuthorizationRuleResource, err error)
- func (client EventHubsClient) GetAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) GetAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)
- func (client EventHubsClient) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) GetResponder(resp *http.Response) (result ResourceType, err error)
- func (client EventHubsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) ListAll(ctx context.Context, resourceGroupName string, namespaceName string) (result ListResultPage, err error)
- func (client EventHubsClient) ListAllComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result ListResultIterator, err error)
- func (client EventHubsClient) ListAllPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
- func (client EventHubsClient) ListAllResponder(resp *http.Response) (result ListResult, err error)
- func (client EventHubsClient) ListAllSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result SharedAccessAuthorizationRuleListResultPage, err error)
- func (client EventHubsClient) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result SharedAccessAuthorizationRuleListResultIterator, err error)
- func (client EventHubsClient) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) ListAuthorizationRulesResponder(resp *http.Response) (result SharedAccessAuthorizationRuleListResult, err error)
- func (client EventHubsClient) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ResourceListKeys, err error)
- func (client EventHubsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) ListKeysResponder(resp *http.Response) (result ResourceListKeys, err error)
- func (client EventHubsClient) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) PostAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result SharedAccessAuthorizationRuleResource, err error)
- func (client EventHubsClient) PostAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) PostAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)
- func (client EventHubsClient) PostAuthorizationRuleSender(req *http.Request) (*http.Response, error)
- func (client EventHubsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ResourceListKeys, err error)
- func (client EventHubsClient) RegenerateKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client EventHubsClient) RegenerateKeysResponder(resp *http.Response) (result ResourceListKeys, err error)
- func (client EventHubsClient) RegenerateKeysSender(req *http.Request) (*http.Response, error)
- type ListResult
- type ListResultIterator
- type ListResultPage
- type NamespaceCreateOrUpdateParameters
- type NamespaceListResult
- type NamespaceListResultIterator
- func (iter *NamespaceListResultIterator) Next() error
- func (iter *NamespaceListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter NamespaceListResultIterator) NotDone() bool
- func (iter NamespaceListResultIterator) Response() NamespaceListResult
- func (iter NamespaceListResultIterator) Value() NamespaceResource
- type NamespaceListResultPage
- func (page *NamespaceListResultPage) Next() error
- func (page *NamespaceListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page NamespaceListResultPage) NotDone() bool
- func (page NamespaceListResultPage) Response() NamespaceListResult
- func (page NamespaceListResultPage) Values() []NamespaceResource
- type NamespaceProperties
- type NamespaceResource
- type NamespaceState
- type NamespaceUpdateParameter
- type NamespacesClient
- func (client NamespacesClient) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityParameter) (result CheckNameAvailabilityResult, err error)
- func (client NamespacesClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityParameter) (*http.Request, error)
- func (client NamespacesClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)
- func (client NamespacesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result NamespacesCreateOrUpdateFuture, err error)
- func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result SharedAccessAuthorizationRuleResource, err error)
- func (client NamespacesClient) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)
- func (client NamespacesClient) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client NamespacesClient) CreateOrUpdateResponder(resp *http.Response) (result NamespaceResource, err error)
- func (client NamespacesClient) CreateOrUpdateSender(req *http.Request) (future NamespacesCreateOrUpdateFuture, err error)
- func (client NamespacesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespacesDeleteFuture, err error)
- func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result autorest.Response, err error)
- func (client NamespacesClient) DeleteAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client NamespacesClient) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error)
- func (client NamespacesClient) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
- func (client NamespacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client NamespacesClient) DeleteSender(req *http.Request) (future NamespacesDeleteFuture, err error)
- func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespaceResource, err error)
- func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result SharedAccessAuthorizationRuleResource, err error)
- func (client NamespacesClient) GetAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client NamespacesClient) GetAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)
- func (client NamespacesClient) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
- func (client NamespacesClient) GetResponder(resp *http.Response) (result NamespaceResource, err error)
- func (client NamespacesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResultPage, err error)
- func (client NamespacesClient) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResultIterator, err error)
- func (client NamespacesClient) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
- func (client NamespacesClient) ListAuthorizationRulesResponder(resp *http.Response) (result SharedAccessAuthorizationRuleListResult, err error)
- func (client NamespacesClient) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result NamespaceListResultPage, err error)
- func (client NamespacesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result NamespaceListResultIterator, err error)
- func (client NamespacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client NamespacesClient) ListByResourceGroupResponder(resp *http.Response) (result NamespaceListResult, err error)
- func (client NamespacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) ListBySubscription(ctx context.Context) (result NamespaceListResultPage, err error)
- func (client NamespacesClient) ListBySubscriptionComplete(ctx context.Context) (result NamespaceListResultIterator, err error)
- func (client NamespacesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client NamespacesClient) ListBySubscriptionResponder(resp *http.Response) (result NamespaceListResult, err error)
- func (client NamespacesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ResourceListKeys, err error)
- func (client NamespacesClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client NamespacesClient) ListKeysResponder(resp *http.Response) (result ResourceListKeys, err error)
- func (client NamespacesClient) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result ResourceListKeys, err error)
- func (client NamespacesClient) RegenerateKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client NamespacesClient) RegenerateKeysResponder(resp *http.Response) (result ResourceListKeys, err error)
- func (client NamespacesClient) RegenerateKeysSender(req *http.Request) (*http.Response, error)
- func (client NamespacesClient) Update(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result NamespaceResource, err error)
- func (client NamespacesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, ...) (*http.Request, error)
- func (client NamespacesClient) UpdateResponder(resp *http.Response) (result NamespaceResource, err error)
- func (client NamespacesClient) UpdateSender(req *http.Request) (*http.Response, error)
- type NamespacesCreateOrUpdateFuture
- type NamespacesDeleteFuture
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Policykey
- type Properties
- type RegenerateKeysParameters
- type Resource
- type ResourceListKeys
- type ResourceType
- type SharedAccessAuthorizationRuleCreateOrUpdateParameters
- type SharedAccessAuthorizationRuleListResult
- type SharedAccessAuthorizationRuleListResultIterator
- func (iter *SharedAccessAuthorizationRuleListResultIterator) Next() error
- func (iter *SharedAccessAuthorizationRuleListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter SharedAccessAuthorizationRuleListResultIterator) NotDone() bool
- func (iter SharedAccessAuthorizationRuleListResultIterator) Response() SharedAccessAuthorizationRuleListResult
- func (iter SharedAccessAuthorizationRuleListResultIterator) Value() SharedAccessAuthorizationRuleResource
- type SharedAccessAuthorizationRuleListResultPage
- func (page *SharedAccessAuthorizationRuleListResultPage) Next() error
- func (page *SharedAccessAuthorizationRuleListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page SharedAccessAuthorizationRuleListResultPage) NotDone() bool
- func (page SharedAccessAuthorizationRuleListResultPage) Response() SharedAccessAuthorizationRuleListResult
- func (page SharedAccessAuthorizationRuleListResultPage) Values() []SharedAccessAuthorizationRuleResource
- type SharedAccessAuthorizationRuleProperties
- type SharedAccessAuthorizationRuleResource
- type Sku
- type SkuName
- type SkuTier
- type TrackedResource
- type UnavailableReason
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Eventhub
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AccessRights ¶
type AccessRights string
AccessRights enumerates the values for access rights.
const ( // Listen ... Listen AccessRights = "Listen" // Manage ... Manage AccessRights = "Manage" // SendEnumValue ... SendEnumValue AccessRights = "Send" )
func PossibleAccessRightsValues ¶
func PossibleAccessRightsValues() []AccessRights
PossibleAccessRightsValues returns an array of possible values for the AccessRights const type.
type BaseClient ¶
BaseClient is the base client for Eventhub.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type CheckNameAvailabilityParameter ¶
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 ¶
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
func (CheckNameAvailabilityResult) MarshalJSON ¶
func (cnar CheckNameAvailabilityResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CheckNameAvailabilityResult.
type ConsumerGroupCreateOrUpdateParameters ¶
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 ¶
func (cgcoup ConsumerGroupCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConsumerGroupCreateOrUpdateParameters.
func (*ConsumerGroupCreateOrUpdateParameters) UnmarshalJSON ¶
func (cgcoup *ConsumerGroupCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConsumerGroupCreateOrUpdateParameters struct.
type ConsumerGroupListResult ¶
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 ¶
func (cglr ConsumerGroupListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ConsumerGroupListResultIterator ¶
type ConsumerGroupListResultIterator struct {
// contains filtered or unexported fields
}
ConsumerGroupListResultIterator provides access to a complete listing of ConsumerGroupResource values.
func NewConsumerGroupListResultIterator ¶
func NewConsumerGroupListResultIterator(page ConsumerGroupListResultPage) ConsumerGroupListResultIterator
Creates a new instance of the ConsumerGroupListResultIterator type.
func (*ConsumerGroupListResultIterator) Next ¶
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 ¶
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 ¶
func (iter ConsumerGroupListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ConsumerGroupListResultIterator) Response ¶
func (iter ConsumerGroupListResultIterator) Response() ConsumerGroupListResult
Response returns the raw server response from the last page request.
func (ConsumerGroupListResultIterator) Value ¶
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 ¶
type ConsumerGroupListResultPage struct {
// contains filtered or unexported fields
}
ConsumerGroupListResultPage contains a page of ConsumerGroupResource values.
func NewConsumerGroupListResultPage ¶
func NewConsumerGroupListResultPage(cur ConsumerGroupListResult, getNextPage func(context.Context, ConsumerGroupListResult) (ConsumerGroupListResult, error)) ConsumerGroupListResultPage
Creates a new instance of the ConsumerGroupListResultPage type.
func (*ConsumerGroupListResultPage) Next ¶
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 ¶
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 ¶
func (page ConsumerGroupListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ConsumerGroupListResultPage) Response ¶
func (page ConsumerGroupListResultPage) Response() ConsumerGroupListResult
Response returns the raw server response from the last page request.
func (ConsumerGroupListResultPage) Values ¶
func (page ConsumerGroupListResultPage) Values() []ConsumerGroupResource
Values returns the slice of values for the current page or nil if there are no values.
type ConsumerGroupProperties ¶
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.
func (ConsumerGroupProperties) MarshalJSON ¶
func (cgp ConsumerGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConsumerGroupProperties.
type ConsumerGroupResource ¶
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 ¶
func (cgr ConsumerGroupResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConsumerGroupResource.
func (*ConsumerGroupResource) UnmarshalJSON ¶
func (cgr *ConsumerGroupResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConsumerGroupResource struct.
type ConsumerGroupsClient ¶
type ConsumerGroupsClient struct {
BaseClient
}
ConsumerGroupsClient is the azure Event Hubs client
func NewConsumerGroupsClient ¶
func NewConsumerGroupsClient(subscriptionID string) ConsumerGroupsClient
NewConsumerGroupsClient creates an instance of the ConsumerGroupsClient client.
func NewConsumerGroupsClientWithBaseURI ¶
func NewConsumerGroupsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerGroupsClient
NewConsumerGroupsClientWithBaseURI creates an instance of the ConsumerGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ConsumerGroupsClient) CreateOrUpdate ¶
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 ¶
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 ¶
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 ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ConsumerGroupsClient) Delete ¶
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 ¶
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 ¶
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 ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ConsumerGroupsClient) Get ¶
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 ¶
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 ¶
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 ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ConsumerGroupsClient) ListAll ¶
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 ¶
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 ¶
func (client ConsumerGroupsClient) ListAllPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)
ListAllPreparer prepares the ListAll request.
func (ConsumerGroupsClient) ListAllResponder ¶
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 ¶
ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.
type CreateOrUpdateParameters ¶
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 ¶
func (coup CreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CreateOrUpdateParameters.
func (*CreateOrUpdateParameters) UnmarshalJSON ¶
func (coup *CreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CreateOrUpdateParameters struct.
type EntityStatus ¶
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 ¶
func PossibleEntityStatusValues() []EntityStatus
PossibleEntityStatusValues returns an array of possible values for the EntityStatus const type.
type EventHubsClient ¶
type EventHubsClient struct {
BaseClient
}
EventHubsClient is the azure Event Hubs client
func NewEventHubsClient ¶
func NewEventHubsClient(subscriptionID string) EventHubsClient
NewEventHubsClient creates an instance of the EventHubsClient client.
func NewEventHubsClientWithBaseURI ¶
func NewEventHubsClientWithBaseURI(baseURI string, subscriptionID string) EventHubsClient
NewEventHubsClientWithBaseURI creates an instance of the EventHubsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (EventHubsClient) CreateOrUpdate ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (EventHubsClient) Delete ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client EventHubsClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (EventHubsClient) DeleteResponder ¶
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 ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (EventHubsClient) Get ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetAuthorizationRuleSender sends the GetAuthorizationRule request. The method will close the http.Response Body if it receives an error.
func (EventHubsClient) GetPreparer ¶
func (client EventHubsClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (EventHubsClient) GetResponder ¶
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 ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (EventHubsClient) ListAll ¶
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 ¶
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 ¶
func (client EventHubsClient) ListAllPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
ListAllPreparer prepares the ListAll request.
func (EventHubsClient) ListAllResponder ¶
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 ¶
ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.
func (EventHubsClient) ListAuthorizationRules ¶
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 ¶
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 ¶
func (client EventHubsClient) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string, eventHubName string) (*http.Request, error)
ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.
func (EventHubsClient) ListAuthorizationRulesResponder ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (EventHubsClient) PostAuthorizationRule ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
RegenerateKeysSender sends the RegenerateKeys request. The method will close the http.Response Body if it receives an error.
type ListResult ¶
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 ¶
func (lr ListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ListResultIterator ¶
type ListResultIterator struct {
// contains filtered or unexported fields
}
ListResultIterator provides access to a complete listing of ResourceType values.
func NewListResultIterator ¶
func NewListResultIterator(page ListResultPage) ListResultIterator
Creates a new instance of the ListResultIterator type.
func (*ListResultIterator) Next ¶
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 ¶
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 ¶
func (iter ListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ListResultIterator) Response ¶
func (iter ListResultIterator) Response() ListResult
Response returns the raw server response from the last page request.
func (ListResultIterator) Value ¶
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 ¶
type ListResultPage struct {
// contains filtered or unexported fields
}
ListResultPage contains a page of ResourceType values.
func NewListResultPage ¶
func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage
Creates a new instance of the ListResultPage type.
func (*ListResultPage) Next ¶
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 ¶
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 ¶
func (page ListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ListResultPage) Response ¶
func (page ListResultPage) Response() ListResult
Response returns the raw server response from the last page request.
func (ListResultPage) Values ¶
func (page ListResultPage) Values() []ResourceType
Values returns the slice of values for the current page or nil if there are no values.
type NamespaceCreateOrUpdateParameters ¶
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 ¶
func (ncoup NamespaceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NamespaceCreateOrUpdateParameters.
func (*NamespaceCreateOrUpdateParameters) UnmarshalJSON ¶
func (ncoup *NamespaceCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for NamespaceCreateOrUpdateParameters struct.
type NamespaceListResult ¶
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 ¶
func (nlr NamespaceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type NamespaceListResultIterator ¶
type NamespaceListResultIterator struct {
// contains filtered or unexported fields
}
NamespaceListResultIterator provides access to a complete listing of NamespaceResource values.
func NewNamespaceListResultIterator ¶
func NewNamespaceListResultIterator(page NamespaceListResultPage) NamespaceListResultIterator
Creates a new instance of the NamespaceListResultIterator type.
func (*NamespaceListResultIterator) Next ¶
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 ¶
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 ¶
func (iter NamespaceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (NamespaceListResultIterator) Response ¶
func (iter NamespaceListResultIterator) Response() NamespaceListResult
Response returns the raw server response from the last page request.
func (NamespaceListResultIterator) Value ¶
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 ¶
type NamespaceListResultPage struct {
// contains filtered or unexported fields
}
NamespaceListResultPage contains a page of NamespaceResource values.
func NewNamespaceListResultPage ¶
func NewNamespaceListResultPage(cur NamespaceListResult, getNextPage func(context.Context, NamespaceListResult) (NamespaceListResult, error)) NamespaceListResultPage
Creates a new instance of the NamespaceListResultPage type.
func (*NamespaceListResultPage) Next ¶
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 ¶
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 ¶
func (page NamespaceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (NamespaceListResultPage) Response ¶
func (page NamespaceListResultPage) Response() NamespaceListResult
Response returns the raw server response from the last page request.
func (NamespaceListResultPage) Values ¶
func (page NamespaceListResultPage) Values() []NamespaceResource
Values returns the slice of values for the current page or nil if there are no values.
type NamespaceProperties ¶
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
func (NamespaceProperties) MarshalJSON ¶
func (np NamespaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NamespaceProperties.
type NamespaceResource ¶
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 ¶
func (nr NamespaceResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NamespaceResource.
func (*NamespaceResource) UnmarshalJSON ¶
func (nr *NamespaceResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for NamespaceResource struct.
type NamespaceState ¶
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 ¶
func PossibleNamespaceStateValues() []NamespaceState
PossibleNamespaceStateValues returns an array of possible values for the NamespaceState const type.
type NamespaceUpdateParameter ¶
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 ¶
func (nup NamespaceUpdateParameter) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NamespaceUpdateParameter.
type NamespacesClient ¶
type NamespacesClient struct {
BaseClient
}
NamespacesClient is the azure Event Hubs client
func NewNamespacesClient ¶
func NewNamespacesClient(subscriptionID string) NamespacesClient
NewNamespacesClient creates an instance of the NamespacesClient client.
func NewNamespacesClientWithBaseURI ¶
func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) NamespacesClient
NewNamespacesClientWithBaseURI creates an instance of the NamespacesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (NamespacesClient) CheckNameAvailability ¶
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 ¶
func (client NamespacesClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityParameter) (*http.Request, error)
CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
func (NamespacesClient) CheckNameAvailabilityResponder ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client NamespacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (NamespacesClient) CreateOrUpdateResponder ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client NamespacesClient) DeleteAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)
DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.
func (NamespacesClient) DeleteAuthorizationRuleResponder ¶
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 ¶
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 ¶
func (client NamespacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (NamespacesClient) DeleteResponder ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client NamespacesClient) GetAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)
GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.
func (NamespacesClient) GetAuthorizationRuleResponder ¶
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 ¶
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 ¶
func (client NamespacesClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (NamespacesClient) GetResponder ¶
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 ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (NamespacesClient) ListAuthorizationRules ¶
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 ¶
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 ¶
func (client NamespacesClient) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)
ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.
func (NamespacesClient) ListAuthorizationRulesResponder ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client NamespacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (NamespacesClient) ListByResourceGroupResponder ¶
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 ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (NamespacesClient) ListBySubscription ¶
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 ¶
func (client NamespacesClient) ListBySubscriptionComplete(ctx context.Context) (result NamespaceListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (NamespacesClient) ListBySubscriptionPreparer ¶
func (client NamespacesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (NamespacesClient) ListBySubscriptionResponder ¶
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 ¶
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (NamespacesClient) ListKeys ¶
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 ¶
func (client NamespacesClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (NamespacesClient) ListKeysResponder ¶
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 ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (NamespacesClient) RegenerateKeys ¶
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 ¶
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 ¶
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 ¶
RegenerateKeysSender sends the RegenerateKeys request. The method will close the http.Response Body if it receives an error.
func (NamespacesClient) Update ¶
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 ¶
func (client NamespacesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceUpdateParameter) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (NamespacesClient) UpdateResponder ¶
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 ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type NamespacesCreateOrUpdateFuture ¶
type NamespacesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(NamespacesClient) (NamespaceResource, error) }
NamespacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*NamespacesCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *NamespacesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type NamespacesDeleteFuture ¶
type NamespacesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(NamespacesClient) (autorest.Response, error) }
NamespacesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*NamespacesDeleteFuture) UnmarshalJSON ¶
func (future *NamespacesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type Operation ¶
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
func (Operation) MarshalJSON ¶
MarshalJSON is the custom marshaler for Operation.
type OperationDisplay ¶
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 ¶
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 ¶
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListResultIterator ¶
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of Operation values.
func NewOperationListResultIterator ¶
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (*OperationListResultIterator) Next ¶
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 ¶
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 ¶
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListResultIterator) Response ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
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 ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func NewOperationListResultPage ¶
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (*OperationListResultPage) Next ¶
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 ¶
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 ¶
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListResultPage) Response ¶
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultPage) Values ¶
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the azure Event Hubs client
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OperationsClient) List ¶
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 ¶
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Policykey ¶
type Policykey string
Policykey enumerates the values for policykey.
func PossiblePolicykeyValues ¶
func PossiblePolicykeyValues() []Policykey
PossiblePolicykeyValues returns an array of possible values for the Policykey const type.
type Properties ¶
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.
func (Properties) MarshalJSON ¶
func (p Properties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Properties.
type RegenerateKeysParameters ¶
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 ¶
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
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type ResourceListKeys ¶
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 ¶
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 ¶
func (rt ResourceType) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceType.
func (*ResourceType) UnmarshalJSON ¶
func (rt *ResourceType) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ResourceType struct.
type SharedAccessAuthorizationRuleCreateOrUpdateParameters ¶
type SharedAccessAuthorizationRuleCreateOrUpdateParameters struct { string `json:"location,omitempty"` // Name - Name of the AuthorizationRule. }Location *
SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters supplied to the Create Or Update Authorization Rules operation.
func (SharedAccessAuthorizationRuleCreateOrUpdateParameters) MarshalJSON ¶
func (saarcoup SharedAccessAuthorizationRuleCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SharedAccessAuthorizationRuleCreateOrUpdateParameters.
func (*SharedAccessAuthorizationRuleCreateOrUpdateParameters) UnmarshalJSON ¶
func (saarcoup *SharedAccessAuthorizationRuleCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SharedAccessAuthorizationRuleCreateOrUpdateParameters struct.
type SharedAccessAuthorizationRuleListResult ¶
type SharedAccessAuthorizationRuleListResult struct { SharedAccessAuthorizationRuleResource `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }Value *[]
SharedAccessAuthorizationRuleListResult the response from the List Namespace operation.
func (SharedAccessAuthorizationRuleListResult) IsEmpty ¶
func (saarlr SharedAccessAuthorizationRuleListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type SharedAccessAuthorizationRuleListResultIterator ¶
type SharedAccessAuthorizationRuleListResultIterator struct {
// contains filtered or unexported fields
}
SharedAccessAuthorizationRuleListResultIterator provides access to a complete listing of SharedAccessAuthorizationRuleResource values.
func NewSharedAccessAuthorizationRuleListResultIterator ¶
func NewSharedAccessAuthorizationRuleListResultIterator(page SharedAccessAuthorizationRuleListResultPage) SharedAccessAuthorizationRuleListResultIterator
Creates a new instance of the SharedAccessAuthorizationRuleListResultIterator type.
func (*SharedAccessAuthorizationRuleListResultIterator) Next ¶
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 ¶
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 ¶
func (iter SharedAccessAuthorizationRuleListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (SharedAccessAuthorizationRuleListResultIterator) Response ¶
func (iter SharedAccessAuthorizationRuleListResultIterator) Response() SharedAccessAuthorizationRuleListResult
Response returns the raw server response from the last page request.
func (SharedAccessAuthorizationRuleListResultIterator) Value ¶
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 ¶
type SharedAccessAuthorizationRuleListResultPage struct {
// contains filtered or unexported fields
}
SharedAccessAuthorizationRuleListResultPage contains a page of SharedAccessAuthorizationRuleResource values.
func NewSharedAccessAuthorizationRuleListResultPage ¶
func NewSharedAccessAuthorizationRuleListResultPage(cur SharedAccessAuthorizationRuleListResult, getNextPage func(context.Context, SharedAccessAuthorizationRuleListResult) (SharedAccessAuthorizationRuleListResult, error)) SharedAccessAuthorizationRuleListResultPage
Creates a new instance of the SharedAccessAuthorizationRuleListResultPage type.
func (*SharedAccessAuthorizationRuleListResultPage) Next ¶
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 ¶
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 ¶
func (page SharedAccessAuthorizationRuleListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (SharedAccessAuthorizationRuleListResultPage) Response ¶
func (page SharedAccessAuthorizationRuleListResultPage) Response() SharedAccessAuthorizationRuleListResult
Response returns the raw server response from the last page request.
func (SharedAccessAuthorizationRuleListResultPage) Values ¶
func (page SharedAccessAuthorizationRuleListResultPage) Values() []SharedAccessAuthorizationRuleResource
Values returns the slice of values for the current page or nil if there are no values.
type SharedAccessAuthorizationRuleProperties ¶
type SharedAccessAuthorizationRuleProperties struct { AccessRights `json:"rights,omitempty"` }Rights *[]
SharedAccessAuthorizationRuleProperties properties supplied to create or update SharedAccessAuthorizationRule
type SharedAccessAuthorizationRuleResource ¶
type SharedAccessAuthorizationRuleResource struct { string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Location *string `json:"location,omitempty"` Type *string `json:"type,omitempty"` }ID *
SharedAccessAuthorizationRuleResource single item in a List or Get AuthorizationRule operation
func (SharedAccessAuthorizationRuleResource) MarshalJSON ¶
func (saarr SharedAccessAuthorizationRuleResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SharedAccessAuthorizationRuleResource.
func (*SharedAccessAuthorizationRuleResource) UnmarshalJSON ¶
func (saarr *SharedAccessAuthorizationRuleResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SharedAccessAuthorizationRuleResource struct.
type Sku ¶
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 ¶
type SkuName string
SkuName enumerates the values for sku name.
func PossibleSkuNameValues ¶
func PossibleSkuNameValues() []SkuName
PossibleSkuNameValues returns an array of possible values for the SkuName const type.
type SkuTier ¶
type SkuTier string
SkuTier enumerates the values for sku tier.
func PossibleSkuTierValues ¶
func PossibleSkuTierValues() []SkuTier
PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
type TrackedResource ¶
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 ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type UnavailableReason ¶
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 ¶
func PossibleUnavailableReasonValues() []UnavailableReason
PossibleUnavailableReasonValues returns an array of possible values for the UnavailableReason const type.