azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay Index | Files | Directories

package relay

import "github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay"

Package relay implements the Azure ARM Relay service API version 2017-04-01.

Use these API to manage Azure Relay resources through Azure Resource Manager.

Index

Package Files

client.go hybridconnections.go models.go namespaces.go operations.go version.go wcfrelays.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type AccessKeys Uses

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

AccessKeys namespace/Relay Connection String

type AccessRights Uses

type AccessRights string

AccessRights enumerates the values for access rights.

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

func PossibleAccessRightsValues Uses

func PossibleAccessRightsValues() []AccessRights

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

type AuthorizationRule Uses

type AuthorizationRule struct {
    autorest.Response `json:"-"`
    // AuthorizationRuleProperties - Authorization rule properties.
    *AuthorizationRuleProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

AuthorizationRule description of a namespace authorization rule.

func (AuthorizationRule) MarshalJSON Uses

func (ar AuthorizationRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AuthorizationRule.

func (*AuthorizationRule) UnmarshalJSON Uses

func (ar *AuthorizationRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AuthorizationRule struct.

type AuthorizationRuleListResult Uses

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

AuthorizationRuleListResult the response from the list namespace operation.

func (AuthorizationRuleListResult) IsEmpty Uses

func (arlr AuthorizationRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AuthorizationRuleListResultIterator Uses

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

AuthorizationRuleListResultIterator provides access to a complete listing of AuthorizationRule values.

func NewAuthorizationRuleListResultIterator Uses

func NewAuthorizationRuleListResultIterator(page AuthorizationRuleListResultPage) AuthorizationRuleListResultIterator

Creates a new instance of the AuthorizationRuleListResultIterator type.

func (*AuthorizationRuleListResultIterator) Next Uses

func (iter *AuthorizationRuleListResultIterator) 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 (*AuthorizationRuleListResultIterator) NextWithContext Uses

func (iter *AuthorizationRuleListResultIterator) 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 (AuthorizationRuleListResultIterator) NotDone Uses

func (iter AuthorizationRuleListResultIterator) NotDone() bool

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

func (AuthorizationRuleListResultIterator) Response Uses

func (iter AuthorizationRuleListResultIterator) Response() AuthorizationRuleListResult

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

func (AuthorizationRuleListResultIterator) Value Uses

func (iter AuthorizationRuleListResultIterator) Value() AuthorizationRule

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

type AuthorizationRuleListResultPage Uses

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

AuthorizationRuleListResultPage contains a page of AuthorizationRule values.

func NewAuthorizationRuleListResultPage Uses

func NewAuthorizationRuleListResultPage(getNextPage func(context.Context, AuthorizationRuleListResult) (AuthorizationRuleListResult, error)) AuthorizationRuleListResultPage

Creates a new instance of the AuthorizationRuleListResultPage type.

func (*AuthorizationRuleListResultPage) Next Uses

func (page *AuthorizationRuleListResultPage) 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 (*AuthorizationRuleListResultPage) NextWithContext Uses

func (page *AuthorizationRuleListResultPage) 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 (AuthorizationRuleListResultPage) NotDone Uses

func (page AuthorizationRuleListResultPage) NotDone() bool

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

func (AuthorizationRuleListResultPage) Response Uses

func (page AuthorizationRuleListResultPage) Response() AuthorizationRuleListResult

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

func (AuthorizationRuleListResultPage) Values Uses

func (page AuthorizationRuleListResultPage) Values() []AuthorizationRule

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

type AuthorizationRuleProperties Uses

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

AuthorizationRuleProperties authorization rule properties.

type BaseClient Uses

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

BaseClient is the base client for Relay.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CheckNameAvailability Uses

type CheckNameAvailability struct {
    // Name - The namespace name to check for availability. The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number.
    Name *string `json:"name,omitempty"`
}

CheckNameAvailability description of the check name availability request properties.

type CheckNameAvailabilityResult Uses

type CheckNameAvailabilityResult struct {
    autorest.Response `json:"-"`
    // Message - READ-ONLY; The detailed info regarding the reason associated with the namespace.
    Message *string `json:"message,omitempty"`
    // NameAvailable - Value indicating namespace is available. Returns 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"`
}

CheckNameAvailabilityResult description of the check name availability request properties.

type ErrorResponse Uses

type ErrorResponse struct {
    // Code - Error code.
    Code *string `json:"code,omitempty"`
    // Message - Error message indicating why the operation failed.
    Message *string `json:"message,omitempty"`
}

ErrorResponse error reponse indicates Relay service is not able to process the incoming request. The reason is provided in the error message.

type HybridConnection Uses

type HybridConnection struct {
    autorest.Response `json:"-"`
    // HybridConnectionProperties - Properties of the HybridConnection.
    *HybridConnectionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

HybridConnection description of hybrid connection resource.

func (HybridConnection) MarshalJSON Uses

func (hc HybridConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HybridConnection.

func (*HybridConnection) UnmarshalJSON Uses

func (hc *HybridConnection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for HybridConnection struct.

type HybridConnectionListResult Uses

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

HybridConnectionListResult the response of the list hybrid connection operation.

func (HybridConnectionListResult) IsEmpty Uses

func (hclr HybridConnectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HybridConnectionListResultIterator Uses

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

HybridConnectionListResultIterator provides access to a complete listing of HybridConnection values.

func NewHybridConnectionListResultIterator Uses

func NewHybridConnectionListResultIterator(page HybridConnectionListResultPage) HybridConnectionListResultIterator

Creates a new instance of the HybridConnectionListResultIterator type.

func (*HybridConnectionListResultIterator) Next Uses

func (iter *HybridConnectionListResultIterator) 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 (*HybridConnectionListResultIterator) NextWithContext Uses

func (iter *HybridConnectionListResultIterator) 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 (HybridConnectionListResultIterator) NotDone Uses

func (iter HybridConnectionListResultIterator) NotDone() bool

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

func (HybridConnectionListResultIterator) Response Uses

func (iter HybridConnectionListResultIterator) Response() HybridConnectionListResult

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

func (HybridConnectionListResultIterator) Value Uses

func (iter HybridConnectionListResultIterator) Value() HybridConnection

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

type HybridConnectionListResultPage Uses

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

HybridConnectionListResultPage contains a page of HybridConnection values.

func NewHybridConnectionListResultPage Uses

func NewHybridConnectionListResultPage(getNextPage func(context.Context, HybridConnectionListResult) (HybridConnectionListResult, error)) HybridConnectionListResultPage

Creates a new instance of the HybridConnectionListResultPage type.

func (*HybridConnectionListResultPage) Next Uses

func (page *HybridConnectionListResultPage) 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 (*HybridConnectionListResultPage) NextWithContext Uses

func (page *HybridConnectionListResultPage) 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 (HybridConnectionListResultPage) NotDone Uses

func (page HybridConnectionListResultPage) NotDone() bool

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

func (HybridConnectionListResultPage) Response Uses

func (page HybridConnectionListResultPage) Response() HybridConnectionListResult

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

func (HybridConnectionListResultPage) Values Uses

func (page HybridConnectionListResultPage) Values() []HybridConnection

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

type HybridConnectionProperties Uses

type HybridConnectionProperties struct {
    // CreatedAt - READ-ONLY; The time the hybrid connection was created.
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // UpdatedAt - READ-ONLY; The time the namespace was updated.
    UpdatedAt *date.Time `json:"updatedAt,omitempty"`
    // ListenerCount - READ-ONLY; The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported.
    ListenerCount *int32 `json:"listenerCount,omitempty"`
    // RequiresClientAuthorization - Returns true if client authorization is needed for this hybrid connection; otherwise, false.
    RequiresClientAuthorization *bool `json:"requiresClientAuthorization,omitempty"`
    // UserMetadata - The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.
    UserMetadata *string `json:"userMetadata,omitempty"`
}

HybridConnectionProperties properties of the HybridConnection.

type HybridConnectionsClient Uses

type HybridConnectionsClient struct {
    BaseClient
}

HybridConnectionsClient is the use these API to manage Azure Relay resources through Azure Resource Manager.

func NewHybridConnectionsClient Uses

func NewHybridConnectionsClient(subscriptionID string) HybridConnectionsClient

NewHybridConnectionsClient creates an instance of the HybridConnectionsClient client.

func NewHybridConnectionsClientWithBaseURI Uses

func NewHybridConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HybridConnectionsClient

NewHybridConnectionsClientWithBaseURI creates an instance of the HybridConnectionsClient client.

func (HybridConnectionsClient) CreateOrUpdate Uses

func (client HybridConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, parameters HybridConnection) (result HybridConnection, err error)

CreateOrUpdate creates or updates a service hybrid connection. This operation is idempotent. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name. parameters - parameters supplied to create a hybrid connection.

func (HybridConnectionsClient) CreateOrUpdateAuthorizationRule Uses

func (client HybridConnectionsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, parameters AuthorizationRule) (result AuthorizationRule, err error)

CreateOrUpdateAuthorizationRule creates or updates an authorization rule for a hybrid connection. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name. authorizationRuleName - the authorization rule name. parameters - the authorization rule parameters.

func (HybridConnectionsClient) CreateOrUpdateAuthorizationRulePreparer Uses

func (client HybridConnectionsClient) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, parameters AuthorizationRule) (*http.Request, error)

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (HybridConnectionsClient) CreateOrUpdateAuthorizationRuleResponder Uses

func (client HybridConnectionsClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error)

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

func (HybridConnectionsClient) CreateOrUpdateAuthorizationRuleSender Uses

func (client HybridConnectionsClient) 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 (HybridConnectionsClient) CreateOrUpdatePreparer Uses

func (client HybridConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, parameters HybridConnection) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (HybridConnectionsClient) CreateOrUpdateResponder Uses

func (client HybridConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result HybridConnection, err error)

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

func (HybridConnectionsClient) CreateOrUpdateSender Uses

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

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

func (HybridConnectionsClient) Delete Uses

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

Delete deletes a hybrid connection. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name.

func (HybridConnectionsClient) DeleteAuthorizationRule Uses

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

DeleteAuthorizationRule deletes a hybrid connection authorization rule. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name. authorizationRuleName - the authorization rule name.

func (HybridConnectionsClient) DeleteAuthorizationRulePreparer Uses

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

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (HybridConnectionsClient) DeleteAuthorizationRuleResponder Uses

func (client HybridConnectionsClient) 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 (HybridConnectionsClient) DeleteAuthorizationRuleSender Uses

func (client HybridConnectionsClient) 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 (HybridConnectionsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (HybridConnectionsClient) DeleteResponder Uses

func (client HybridConnectionsClient) 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 (HybridConnectionsClient) DeleteSender Uses

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

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

func (HybridConnectionsClient) Get Uses

func (client HybridConnectionsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string) (result HybridConnection, err error)

Get returns the description for the specified hybrid connection. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name.

func (HybridConnectionsClient) GetAuthorizationRule Uses

func (client HybridConnectionsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string) (result AuthorizationRule, err error)

GetAuthorizationRule hybrid connection authorization rule for a hybrid connection by name. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name. authorizationRuleName - the authorization rule name.

func (HybridConnectionsClient) GetAuthorizationRulePreparer Uses

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

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (HybridConnectionsClient) GetAuthorizationRuleResponder Uses

func (client HybridConnectionsClient) GetAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error)

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

func (HybridConnectionsClient) GetAuthorizationRuleSender Uses

func (client HybridConnectionsClient) 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 (HybridConnectionsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (HybridConnectionsClient) GetResponder Uses

func (client HybridConnectionsClient) GetResponder(resp *http.Response) (result HybridConnection, err error)

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

func (HybridConnectionsClient) GetSender Uses

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

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

func (HybridConnectionsClient) ListAuthorizationRules Uses

func (client HybridConnectionsClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string) (result AuthorizationRuleListResultPage, err error)

ListAuthorizationRules authorization rules for a hybrid connection. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name.

func (HybridConnectionsClient) ListAuthorizationRulesComplete Uses

func (client HybridConnectionsClient) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string) (result AuthorizationRuleListResultIterator, err error)

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

func (HybridConnectionsClient) ListAuthorizationRulesPreparer Uses

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

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (HybridConnectionsClient) ListAuthorizationRulesResponder Uses

func (client HybridConnectionsClient) ListAuthorizationRulesResponder(resp *http.Response) (result AuthorizationRuleListResult, err error)

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

func (HybridConnectionsClient) ListAuthorizationRulesSender Uses

func (client HybridConnectionsClient) 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 (HybridConnectionsClient) ListByNamespace Uses

func (client HybridConnectionsClient) ListByNamespace(ctx context.Context, resourceGroupName string, namespaceName string) (result HybridConnectionListResultPage, err error)

ListByNamespace lists the hybrid connection within the namespace. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name

func (HybridConnectionsClient) ListByNamespaceComplete Uses

func (client HybridConnectionsClient) ListByNamespaceComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result HybridConnectionListResultIterator, err error)

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

func (HybridConnectionsClient) ListByNamespacePreparer Uses

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

ListByNamespacePreparer prepares the ListByNamespace request.

func (HybridConnectionsClient) ListByNamespaceResponder Uses

func (client HybridConnectionsClient) ListByNamespaceResponder(resp *http.Response) (result HybridConnectionListResult, err error)

ListByNamespaceResponder handles the response to the ListByNamespace request. The method always closes the http.Response Body.

func (HybridConnectionsClient) ListByNamespaceSender Uses

func (client HybridConnectionsClient) ListByNamespaceSender(req *http.Request) (*http.Response, error)

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

func (HybridConnectionsClient) ListKeys Uses

func (client HybridConnectionsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string) (result AccessKeys, err error)

ListKeys primary and secondary connection strings to the hybrid connection. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name. authorizationRuleName - the authorization rule name.

func (HybridConnectionsClient) ListKeysPreparer Uses

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

ListKeysPreparer prepares the ListKeys request.

func (HybridConnectionsClient) ListKeysResponder Uses

func (client HybridConnectionsClient) ListKeysResponder(resp *http.Response) (result AccessKeys, err error)

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

func (HybridConnectionsClient) ListKeysSender Uses

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

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

func (HybridConnectionsClient) RegenerateKeys Uses

func (client HybridConnectionsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters) (result AccessKeys, err error)

RegenerateKeys regenerates the primary or secondary connection strings to the hybrid connection. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name hybridConnectionName - the hybrid connection name. authorizationRuleName - the authorization rule name. parameters - parameters supplied to regenerate authorization rule.

func (HybridConnectionsClient) RegenerateKeysPreparer Uses

func (client HybridConnectionsClient) RegenerateKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters) (*http.Request, error)

RegenerateKeysPreparer prepares the RegenerateKeys request.

func (HybridConnectionsClient) RegenerateKeysResponder Uses

func (client HybridConnectionsClient) RegenerateKeysResponder(resp *http.Response) (result AccessKeys, err error)

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

func (HybridConnectionsClient) RegenerateKeysSender Uses

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

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

type KeyType Uses

type KeyType string

KeyType enumerates the values for key type.

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

func PossibleKeyTypeValues Uses

func PossibleKeyTypeValues() []KeyType

PossibleKeyTypeValues returns an array of possible values for the KeyType const type.

type Namespace Uses

type Namespace struct {
    autorest.Response `json:"-"`
    // Sku - SKU of the namespace.
    Sku *Sku `json:"sku,omitempty"`
    // NamespaceProperties - Description of Relay namespace
    *NamespaceProperties `json:"properties,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,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"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

Namespace description of a namespace resource.

func (Namespace) MarshalJSON Uses

func (n Namespace) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Namespace.

func (*Namespace) UnmarshalJSON Uses

func (n *Namespace) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Namespace struct.

type NamespaceListResult Uses

type NamespaceListResult struct {
    autorest.Response `json:"-"`
    // Value - Result of the list namespace operation.
    Value *[]Namespace `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 from the list namespace operation.

func (NamespaceListResult) IsEmpty Uses

func (nlr NamespaceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type NamespaceListResultIterator Uses

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

NamespaceListResultIterator provides access to a complete listing of Namespace values.

func NewNamespaceListResultIterator Uses

func NewNamespaceListResultIterator(page NamespaceListResultPage) NamespaceListResultIterator

Creates a new instance of the NamespaceListResultIterator type.

func (*NamespaceListResultIterator) Next Uses

func (iter *NamespaceListResultIterator) Next() error

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

func (*NamespaceListResultIterator) NextWithContext Uses

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

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

func (NamespaceListResultIterator) NotDone Uses

func (iter NamespaceListResultIterator) NotDone() bool

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

func (NamespaceListResultIterator) Response Uses

func (iter NamespaceListResultIterator) Response() NamespaceListResult

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

func (NamespaceListResultIterator) Value Uses

func (iter NamespaceListResultIterator) Value() Namespace

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

type NamespaceListResultPage Uses

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

NamespaceListResultPage contains a page of Namespace values.

func NewNamespaceListResultPage Uses

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

Creates a new instance of the NamespaceListResultPage type.

func (*NamespaceListResultPage) Next Uses

func (page *NamespaceListResultPage) Next() error

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

func (*NamespaceListResultPage) NextWithContext Uses

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

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

func (NamespaceListResultPage) NotDone Uses

func (page NamespaceListResultPage) NotDone() bool

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

func (NamespaceListResultPage) Response Uses

func (page NamespaceListResultPage) Response() NamespaceListResult

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

func (NamespaceListResultPage) Values Uses

func (page NamespaceListResultPage) Values() []Namespace

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

type NamespaceProperties Uses

type NamespaceProperties struct {
    // ProvisioningState - READ-ONLY; Possible values include: 'Created', 'Succeeded', 'Deleted', 'Failed', 'Updating', 'Unknown'
    ProvisioningState ProvisioningStateEnum `json:"provisioningState,omitempty"`
    // CreatedAt - READ-ONLY; The time the namespace was created.
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // UpdatedAt - READ-ONLY; The time the namespace was updated.
    UpdatedAt *date.Time `json:"updatedAt,omitempty"`
    // ServiceBusEndpoint - READ-ONLY; 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"`
}

NamespaceProperties properties of the namespace.

type NamespacesClient Uses

type NamespacesClient struct {
    BaseClient
}

NamespacesClient is the use these API to manage Azure Relay resources through Azure Resource Manager.

func NewNamespacesClient Uses

func NewNamespacesClient(subscriptionID string) NamespacesClient

NewNamespacesClient creates an instance of the NamespacesClient client.

func NewNamespacesClientWithBaseURI Uses

func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) NamespacesClient

NewNamespacesClientWithBaseURI creates an instance of the NamespacesClient client.

func (NamespacesClient) CheckNameAvailabilityMethod Uses

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

CheckNameAvailabilityMethod check the specified namespace name availability. Parameters: parameters - parameters to check availability of the specified namespace name.

func (NamespacesClient) CheckNameAvailabilityMethodPreparer Uses

func (client NamespacesClient) CheckNameAvailabilityMethodPreparer(ctx context.Context, parameters CheckNameAvailability) (*http.Request, error)

CheckNameAvailabilityMethodPreparer prepares the CheckNameAvailabilityMethod request.

func (NamespacesClient) CheckNameAvailabilityMethodResponder Uses

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

CheckNameAvailabilityMethodResponder handles the response to the CheckNameAvailabilityMethod request. The method always closes the http.Response Body.

func (NamespacesClient) CheckNameAvailabilityMethodSender Uses

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

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

func (NamespacesClient) CreateOrUpdate Uses

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

CreateOrUpdate create Azure Relay namespace. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name parameters - parameters supplied to create a namespace resource.

func (NamespacesClient) CreateOrUpdateAuthorizationRule Uses

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

CreateOrUpdateAuthorizationRule creates or updates an authorization rule 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 authorization rule parameters.

func (NamespacesClient) CreateOrUpdateAuthorizationRulePreparer Uses

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

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (NamespacesClient) CreateOrUpdateAuthorizationRuleResponder Uses

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

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

func (NamespacesClient) CreateOrUpdateAuthorizationRuleSender Uses

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

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

func (NamespacesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (NamespacesClient) CreateOrUpdateResponder Uses

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

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

func (NamespacesClient) CreateOrUpdateSender Uses

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

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

func (NamespacesClient) Delete Uses

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

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

func (NamespacesClient) DeleteAuthorizationRule Uses

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

DeleteAuthorizationRule deletes a namespace authorization rule. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name authorizationRuleName - the authorization rule name.

func (NamespacesClient) DeleteAuthorizationRulePreparer Uses

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

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (NamespacesClient) DeleteAuthorizationRuleResponder Uses

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

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

func (NamespacesClient) DeleteAuthorizationRuleSender Uses

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

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

func (NamespacesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (NamespacesClient) DeleteResponder Uses

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

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

func (NamespacesClient) DeleteSender Uses

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

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

func (NamespacesClient) Get Uses

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

Get returns the description for the specified namespace. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name

func (NamespacesClient) GetAuthorizationRule Uses

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

GetAuthorizationRule authorization rule for a namespace by name. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name authorizationRuleName - the authorization rule name.

func (NamespacesClient) GetAuthorizationRulePreparer Uses

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

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (NamespacesClient) GetAuthorizationRuleResponder Uses

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

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

func (NamespacesClient) GetAuthorizationRuleSender Uses

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

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

func (NamespacesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (NamespacesClient) GetResponder Uses

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

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

func (NamespacesClient) GetSender Uses

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

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

func (NamespacesClient) List Uses

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

List lists all the available namespaces within the subscription regardless of the resourceGroups.

func (NamespacesClient) ListAuthorizationRules Uses

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

ListAuthorizationRules authorization rules for a namespace. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name

func (NamespacesClient) ListAuthorizationRulesComplete Uses

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

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

func (NamespacesClient) ListAuthorizationRulesPreparer Uses

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

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (NamespacesClient) ListAuthorizationRulesResponder Uses

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

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

func (NamespacesClient) ListAuthorizationRulesSender Uses

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

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

func (NamespacesClient) ListByResourceGroup Uses

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

ListByResourceGroup lists all the available namespaces within the ResourceGroup. Parameters: resourceGroupName - name of the Resource group within the Azure subscription.

func (NamespacesClient) ListByResourceGroupComplete Uses

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

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

func (NamespacesClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (NamespacesClient) ListByResourceGroupResponder Uses

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

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

func (NamespacesClient) ListByResourceGroupSender Uses

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

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

func (NamespacesClient) ListComplete Uses

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

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

func (NamespacesClient) ListKeys Uses

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

ListKeys primary and secondary connection strings to the namespace. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name authorizationRuleName - the authorization rule name.

func (NamespacesClient) ListKeysPreparer Uses

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

ListKeysPreparer prepares the ListKeys request.

func (NamespacesClient) ListKeysResponder Uses

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

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

func (NamespacesClient) ListKeysSender Uses

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

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

func (NamespacesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (NamespacesClient) ListResponder Uses

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

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

func (NamespacesClient) ListSender Uses

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

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

func (NamespacesClient) RegenerateKeys Uses

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

RegenerateKeys regenerates the primary or secondary connection strings to the namespace. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name authorizationRuleName - the authorization rule name. parameters - parameters supplied to regenerate authorization rule.

func (NamespacesClient) RegenerateKeysPreparer Uses

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

RegenerateKeysPreparer prepares the RegenerateKeys request.

func (NamespacesClient) RegenerateKeysResponder Uses

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

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

func (NamespacesClient) RegenerateKeysSender Uses

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

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

func (NamespacesClient) Update Uses

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

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

func (NamespacesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (NamespacesClient) UpdateResponder Uses

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

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

func (NamespacesClient) UpdateSender Uses

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

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

type NamespacesCreateOrUpdateFuture Uses

type NamespacesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*NamespacesCreateOrUpdateFuture) Result Uses

func (future *NamespacesCreateOrUpdateFuture) Result(client NamespacesClient) (n Namespace, err error)

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

type NamespacesDeleteFuture Uses

type NamespacesDeleteFuture struct {
    azure.Future
}

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

func (*NamespacesDeleteFuture) Result Uses

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

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

type Operation Uses

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

Operation a Relay REST API operation.

type OperationDisplay Uses

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

OperationDisplay the object that represents the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; List of Relay operations supported by 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 Relay operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

func (iter *OperationListResultIterator) Next() error

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

func (*OperationListResultIterator) NextWithContext Uses

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

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

func (OperationListResultIterator) NotDone Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

func (page *OperationListResultPage) Next() error

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

func (*OperationListResultPage) NextWithContext Uses

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

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

func (OperationListResultPage) NotDone Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the use these API to manage Azure Relay resources through Azure Resource Manager.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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

List lists all available Relay REST API operations.

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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

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

func (OperationsClient) ListSender Uses

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

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

type ProvisioningStateEnum Uses

type ProvisioningStateEnum string

ProvisioningStateEnum enumerates the values for provisioning state enum.

const (
    // Created ...
    Created ProvisioningStateEnum = "Created"
    // Deleted ...
    Deleted ProvisioningStateEnum = "Deleted"
    // Failed ...
    Failed ProvisioningStateEnum = "Failed"
    // Succeeded ...
    Succeeded ProvisioningStateEnum = "Succeeded"
    // Unknown ...
    Unknown ProvisioningStateEnum = "Unknown"
    // Updating ...
    Updating ProvisioningStateEnum = "Updating"
)

func PossibleProvisioningStateEnumValues Uses

func PossibleProvisioningStateEnumValues() []ProvisioningStateEnum

PossibleProvisioningStateEnumValues returns an array of possible values for the ProvisioningStateEnum const type.

type RegenerateAccessKeyParameters Uses

type RegenerateAccessKeyParameters struct {
    // KeyType - The access key to regenerate. Possible values include: 'PrimaryKey', 'SecondaryKey'
    KeyType KeyType `json:"keyType,omitempty"`
    // Key - Optional. If the key value is provided, this is set to key type, or autogenerated key value set for key type.
    Key *string `json:"key,omitempty"`
}

RegenerateAccessKeyParameters parameters supplied to the regenerate authorization rule operation, specifies which key neeeds to be reset.

type RelaytypeEnum Uses

type RelaytypeEnum string

RelaytypeEnum enumerates the values for relaytype enum.

const (
    // HTTP ...
    HTTP RelaytypeEnum = "Http"
    // NetTCP ...
    NetTCP RelaytypeEnum = "NetTcp"
)

func PossibleRelaytypeEnumValues Uses

func PossibleRelaytypeEnumValues() []RelaytypeEnum

PossibleRelaytypeEnumValues returns an array of possible values for the RelaytypeEnum const type.

type Resource Uses

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

Resource the resource definition.

type ResourceNamespacePatch Uses

type ResourceNamespacePatch 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"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

ResourceNamespacePatch definition of resource.

func (ResourceNamespacePatch) MarshalJSON Uses

func (rnp ResourceNamespacePatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceNamespacePatch.

type Sku Uses

type Sku struct {
    // Name - Name of this SKU.
    Name *string `json:"name,omitempty"`
    // Tier - The tier of this SKU. Possible values include: 'Standard'
    Tier SkuTier `json:"tier,omitempty"`
}

Sku SKU of the namespace.

type SkuTier Uses

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
    // Standard ...
    Standard SkuTier = "Standard"
)

func PossibleSkuTierValues Uses

func PossibleSkuTierValues() []SkuTier

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

type TrackedResource Uses

type TrackedResource struct {
    // Location - Resource location.
    Location *string `json:"location,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"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

TrackedResource definition of resource.

func (TrackedResource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for TrackedResource.

type UnavailableReason Uses

type UnavailableReason string

UnavailableReason enumerates the values for unavailable reason.

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

func PossibleUnavailableReasonValues Uses

func PossibleUnavailableReasonValues() []UnavailableReason

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

type UpdateParameters Uses

type UpdateParameters struct {
    // Sku - SKU of the namespace.
    Sku *Sku `json:"sku,omitempty"`
    // NamespaceProperties - Description of Relay namespace.
    *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"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

UpdateParameters description of a namespace resource.

func (UpdateParameters) MarshalJSON Uses

func (up UpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpdateParameters.

func (*UpdateParameters) UnmarshalJSON Uses

func (up *UpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UpdateParameters struct.

type WCFRelaysClient Uses

type WCFRelaysClient struct {
    BaseClient
}

WCFRelaysClient is the use these API to manage Azure Relay resources through Azure Resource Manager.

func NewWCFRelaysClient Uses

func NewWCFRelaysClient(subscriptionID string) WCFRelaysClient

NewWCFRelaysClient creates an instance of the WCFRelaysClient client.

func NewWCFRelaysClientWithBaseURI Uses

func NewWCFRelaysClientWithBaseURI(baseURI string, subscriptionID string) WCFRelaysClient

NewWCFRelaysClientWithBaseURI creates an instance of the WCFRelaysClient client.

func (WCFRelaysClient) CreateOrUpdate Uses

func (client WCFRelaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, parameters WcfRelay) (result WcfRelay, err error)

CreateOrUpdate creates or updates a WCF relay. This operation is idempotent. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name. parameters - parameters supplied to create a WCF relay.

func (WCFRelaysClient) CreateOrUpdateAuthorizationRule Uses

func (client WCFRelaysClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, parameters AuthorizationRule) (result AuthorizationRule, err error)

CreateOrUpdateAuthorizationRule creates or updates an authorization rule for a WCF relay. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name. authorizationRuleName - the authorization rule name. parameters - the authorization rule parameters.

func (WCFRelaysClient) CreateOrUpdateAuthorizationRulePreparer Uses

func (client WCFRelaysClient) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, parameters AuthorizationRule) (*http.Request, error)

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (WCFRelaysClient) CreateOrUpdateAuthorizationRuleResponder Uses

func (client WCFRelaysClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error)

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

func (WCFRelaysClient) CreateOrUpdateAuthorizationRuleSender Uses

func (client WCFRelaysClient) 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 (WCFRelaysClient) CreateOrUpdatePreparer Uses

func (client WCFRelaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, parameters WcfRelay) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (WCFRelaysClient) CreateOrUpdateResponder Uses

func (client WCFRelaysClient) CreateOrUpdateResponder(resp *http.Response) (result WcfRelay, err error)

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

func (WCFRelaysClient) CreateOrUpdateSender Uses

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

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

func (WCFRelaysClient) Delete Uses

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

Delete deletes a WCF relay. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name.

func (WCFRelaysClient) DeleteAuthorizationRule Uses

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

DeleteAuthorizationRule deletes a WCF relay authorization rule. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name. authorizationRuleName - the authorization rule name.

func (WCFRelaysClient) DeleteAuthorizationRulePreparer Uses

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

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (WCFRelaysClient) DeleteAuthorizationRuleResponder Uses

func (client WCFRelaysClient) 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 (WCFRelaysClient) DeleteAuthorizationRuleSender Uses

func (client WCFRelaysClient) 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 (WCFRelaysClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (WCFRelaysClient) DeleteResponder Uses

func (client WCFRelaysClient) 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 (WCFRelaysClient) DeleteSender Uses

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

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

func (WCFRelaysClient) Get Uses

func (client WCFRelaysClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, relayName string) (result WcfRelay, err error)

Get returns the description for the specified WCF relay. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name.

func (WCFRelaysClient) GetAuthorizationRule Uses

func (client WCFRelaysClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string) (result AuthorizationRule, err error)

GetAuthorizationRule get authorizationRule for a WCF relay by name. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name. authorizationRuleName - the authorization rule name.

func (WCFRelaysClient) GetAuthorizationRulePreparer Uses

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

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (WCFRelaysClient) GetAuthorizationRuleResponder Uses

func (client WCFRelaysClient) GetAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error)

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

func (WCFRelaysClient) GetAuthorizationRuleSender Uses

func (client WCFRelaysClient) 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 (WCFRelaysClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (WCFRelaysClient) GetResponder Uses

func (client WCFRelaysClient) GetResponder(resp *http.Response) (result WcfRelay, err error)

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

func (WCFRelaysClient) GetSender Uses

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

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

func (WCFRelaysClient) ListAuthorizationRules Uses

func (client WCFRelaysClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, relayName string) (result AuthorizationRuleListResultPage, err error)

ListAuthorizationRules authorization rules for a WCF relay. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name.

func (WCFRelaysClient) ListAuthorizationRulesComplete Uses

func (client WCFRelaysClient) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string, relayName string) (result AuthorizationRuleListResultIterator, err error)

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

func (WCFRelaysClient) ListAuthorizationRulesPreparer Uses

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

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (WCFRelaysClient) ListAuthorizationRulesResponder Uses

func (client WCFRelaysClient) ListAuthorizationRulesResponder(resp *http.Response) (result AuthorizationRuleListResult, err error)

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

func (WCFRelaysClient) ListAuthorizationRulesSender Uses

func (client WCFRelaysClient) 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 (WCFRelaysClient) ListByNamespace Uses

func (client WCFRelaysClient) ListByNamespace(ctx context.Context, resourceGroupName string, namespaceName string) (result WcfRelaysListResultPage, err error)

ListByNamespace lists the WCF relays within the namespace. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name

func (WCFRelaysClient) ListByNamespaceComplete Uses

func (client WCFRelaysClient) ListByNamespaceComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result WcfRelaysListResultIterator, err error)

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

func (WCFRelaysClient) ListByNamespacePreparer Uses

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

ListByNamespacePreparer prepares the ListByNamespace request.

func (WCFRelaysClient) ListByNamespaceResponder Uses

func (client WCFRelaysClient) ListByNamespaceResponder(resp *http.Response) (result WcfRelaysListResult, err error)

ListByNamespaceResponder handles the response to the ListByNamespace request. The method always closes the http.Response Body.

func (WCFRelaysClient) ListByNamespaceSender Uses

func (client WCFRelaysClient) ListByNamespaceSender(req *http.Request) (*http.Response, error)

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

func (WCFRelaysClient) ListKeys Uses

func (client WCFRelaysClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string) (result AccessKeys, err error)

ListKeys primary and secondary connection strings to the WCF relay. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name. authorizationRuleName - the authorization rule name.

func (WCFRelaysClient) ListKeysPreparer Uses

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

ListKeysPreparer prepares the ListKeys request.

func (WCFRelaysClient) ListKeysResponder Uses

func (client WCFRelaysClient) ListKeysResponder(resp *http.Response) (result AccessKeys, err error)

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

func (WCFRelaysClient) ListKeysSender Uses

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

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

func (WCFRelaysClient) RegenerateKeys Uses

func (client WCFRelaysClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters) (result AccessKeys, err error)

RegenerateKeys regenerates the primary or secondary connection strings to the WCF relay. Parameters: resourceGroupName - name of the Resource group within the Azure subscription. namespaceName - the namespace name relayName - the relay name. authorizationRuleName - the authorization rule name. parameters - parameters supplied to regenerate authorization rule.

func (WCFRelaysClient) RegenerateKeysPreparer Uses

func (client WCFRelaysClient) RegenerateKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters) (*http.Request, error)

RegenerateKeysPreparer prepares the RegenerateKeys request.

func (WCFRelaysClient) RegenerateKeysResponder Uses

func (client WCFRelaysClient) RegenerateKeysResponder(resp *http.Response) (result AccessKeys, err error)

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

func (WCFRelaysClient) RegenerateKeysSender Uses

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

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

type WcfRelay Uses

type WcfRelay struct {
    autorest.Response `json:"-"`
    // WcfRelayProperties - Properties of the WCF relay.
    *WcfRelayProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

WcfRelay description of the WCF relay resource.

func (WcfRelay) MarshalJSON Uses

func (wr WcfRelay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WcfRelay.

func (*WcfRelay) UnmarshalJSON Uses

func (wr *WcfRelay) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WcfRelay struct.

type WcfRelayProperties Uses

type WcfRelayProperties struct {
    // IsDynamic - READ-ONLY; Returns true if the relay is dynamic; otherwise, false.
    IsDynamic *bool `json:"isDynamic,omitempty"`
    // CreatedAt - READ-ONLY; The time the WCF relay was created.
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // UpdatedAt - READ-ONLY; The time the namespace was updated.
    UpdatedAt *date.Time `json:"updatedAt,omitempty"`
    // ListenerCount - READ-ONLY; The number of listeners for this relay. Note that min :1 and max:25 are supported.
    ListenerCount *int32 `json:"listenerCount,omitempty"`
    // RelayType - WCF relay type. Possible values include: 'NetTCP', 'HTTP'
    RelayType RelaytypeEnum `json:"relayType,omitempty"`
    // RequiresClientAuthorization - Returns true if client authorization is needed for this relay; otherwise, false.
    RequiresClientAuthorization *bool `json:"requiresClientAuthorization,omitempty"`
    // RequiresTransportSecurity - Returns true if transport security is needed for this relay; otherwise, false.
    RequiresTransportSecurity *bool `json:"requiresTransportSecurity,omitempty"`
    // UserMetadata - The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint. For example, it can be used to store descriptive data, such as list of teams and their contact information. Also, user-defined configuration settings can be stored.
    UserMetadata *string `json:"userMetadata,omitempty"`
}

WcfRelayProperties properties of the WCF relay.

type WcfRelaysListResult Uses

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

WcfRelaysListResult the response of the list WCF relay operation.

func (WcfRelaysListResult) IsEmpty Uses

func (wrlr WcfRelaysListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type WcfRelaysListResultIterator Uses

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

WcfRelaysListResultIterator provides access to a complete listing of WcfRelay values.

func NewWcfRelaysListResultIterator Uses

func NewWcfRelaysListResultIterator(page WcfRelaysListResultPage) WcfRelaysListResultIterator

Creates a new instance of the WcfRelaysListResultIterator type.

func (*WcfRelaysListResultIterator) Next Uses

func (iter *WcfRelaysListResultIterator) 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 (*WcfRelaysListResultIterator) NextWithContext Uses

func (iter *WcfRelaysListResultIterator) 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 (WcfRelaysListResultIterator) NotDone Uses

func (iter WcfRelaysListResultIterator) NotDone() bool

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

func (WcfRelaysListResultIterator) Response Uses

func (iter WcfRelaysListResultIterator) Response() WcfRelaysListResult

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

func (WcfRelaysListResultIterator) Value Uses

func (iter WcfRelaysListResultIterator) Value() WcfRelay

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

type WcfRelaysListResultPage Uses

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

WcfRelaysListResultPage contains a page of WcfRelay values.

func NewWcfRelaysListResultPage Uses

func NewWcfRelaysListResultPage(getNextPage func(context.Context, WcfRelaysListResult) (WcfRelaysListResult, error)) WcfRelaysListResultPage

Creates a new instance of the WcfRelaysListResultPage type.

func (*WcfRelaysListResultPage) Next Uses

func (page *WcfRelaysListResultPage) 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 (*WcfRelaysListResultPage) NextWithContext Uses

func (page *WcfRelaysListResultPage) 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 (WcfRelaysListResultPage) NotDone Uses

func (page WcfRelaysListResultPage) NotDone() bool

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

func (WcfRelaysListResultPage) Response Uses

func (page WcfRelaysListResultPage) Response() WcfRelaysListResult

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

func (WcfRelaysListResultPage) Values Uses

func (page WcfRelaysListResultPage) Values() []WcfRelay

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

Directories

PathSynopsis
relayapi

Package relay imports 10 packages (graph) and is imported by 6 packages. Updated 2019-08-13. Refresh now. Tools for package owners.