Documentation ¶
Overview ¶
Package signalr implements the Azure ARM Signalr service API version 2018-10-01.
REST API for Azure SignalR Service
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type Client
- func (client Client) CheckNameAvailability(ctx context.Context, location string, parameters *NameAvailabilityParameters) (result NameAvailability, err error)
- func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, location string, parameters *NameAvailabilityParameters) (*http.Request, error)
- func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result NameAvailability, err error)
- func (client Client) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
- func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (result CreateOrUpdateFuture, err error)
- func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, ...) (*http.Request, error)
- func (client Client) CreateOrUpdateResponder(resp *http.Response) (result ResourceType, err error)
- func (client Client) CreateOrUpdateSender(req *http.Request) (future CreateOrUpdateFuture, err error)
- func (client Client) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result DeleteFuture, err error)
- func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
- func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err error)
- func (client Client) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ResourceType, err error)
- func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
- func (client Client) GetResponder(resp *http.Response) (result ResourceType, err error)
- func (client Client) GetSender(req *http.Request) (*http.Response, error)
- func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ResourceListPage, err error)
- func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ResourceListIterator, err error)
- func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ResourceList, err error)
- func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client Client) ListBySubscription(ctx context.Context) (result ResourceListPage, err error)
- func (client Client) ListBySubscriptionComplete(ctx context.Context) (result ResourceListIterator, err error)
- func (client Client) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client Client) ListBySubscriptionResponder(resp *http.Response) (result ResourceList, err error)
- func (client Client) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client Client) ListKeys(ctx context.Context, resourceGroupName string, resourceName string) (result Keys, err error)
- func (client Client) ListKeysPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
- func (client Client) ListKeysResponder(resp *http.Response) (result Keys, err error)
- func (client Client) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string, resourceName string, ...) (result RegenerateKeyFuture, err error)
- func (client Client) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, resourceName string, ...) (*http.Request, error)
- func (client Client) RegenerateKeyResponder(resp *http.Response) (result Keys, err error)
- func (client Client) RegenerateKeySender(req *http.Request) (future RegenerateKeyFuture, err error)
- func (client Client) Restart(ctx context.Context, resourceGroupName string, resourceName string) (result RestartFuture, err error)
- func (client Client) RestartPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
- func (client Client) RestartResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) RestartSender(req *http.Request) (future RestartFuture, err error)
- func (client Client) Update(ctx context.Context, resourceGroupName string, resourceName string, ...) (result UpdateFuture, err error)
- func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, ...) (*http.Request, error)
- func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error)
- func (client Client) UpdateSender(req *http.Request) (future UpdateFuture, err error)
- type CorsSettings
- type CreateOrUpdateFuture
- type CreateOrUpdateProperties
- type CreateParameters
- type DeleteFuture
- type Dimension
- type Feature
- type KeyType
- type Keys
- type MetricSpecification
- type NameAvailability
- type NameAvailabilityParameters
- type Operation
- type OperationDisplay
- type OperationList
- type OperationListIterator
- type OperationListPage
- type OperationProperties
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Properties
- type ProvisioningState
- type RegenerateKeyFuture
- type RegenerateKeyParameters
- type Resource
- type ResourceList
- type ResourceListIterator
- type ResourceListPage
- type ResourceSku
- type ResourceType
- type RestartFuture
- type ServiceSpecification
- type SkuTier
- type TrackedResource
- type UpdateFuture
- type UpdateParameters
- type Usage
- type UsageList
- type UsageListIterator
- type UsageListPage
- type UsageName
- type UsagesClient
- func (client UsagesClient) List(ctx context.Context, location string) (result UsageListPage, err error)
- func (client UsagesClient) ListComplete(ctx context.Context, location string) (result UsageListIterator, err error)
- func (client UsagesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
- func (client UsagesClient) ListResponder(resp *http.Response) (result UsageList, err error)
- func (client UsagesClient) ListSender(req *http.Request) (*http.Response, error)
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Signalr
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 BaseClient ¶
BaseClient is the base client for Signalr.
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.
type Client ¶
type Client struct {
BaseClient
}
Client is the REST API for Azure SignalR Service
func NewClientWithBaseURI ¶
NewClientWithBaseURI creates an instance of the Client client.
func (Client) CheckNameAvailability ¶
func (client Client) CheckNameAvailability(ctx context.Context, location string, parameters *NameAvailabilityParameters) (result NameAvailability, err error)
CheckNameAvailability checks that the SignalR name is valid and is not already in use. Parameters: location - the region parameters - parameters supplied to the operation.
func (Client) CheckNameAvailabilityPreparer ¶
func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, location string, parameters *NameAvailabilityParameters) (*http.Request, error)
CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
func (Client) CheckNameAvailabilityResponder ¶
func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result NameAvailability, err error)
CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.
func (Client) CheckNameAvailabilitySender ¶
CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.
func (Client) CreateOrUpdate ¶
func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters *CreateParameters) (result CreateOrUpdateFuture, err error)
CreateOrUpdate create a new SignalR service and update an exiting SignalR service. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. resourceName - the name of the SignalR resource. parameters - parameters for the create or update operation
func (Client) CreateOrUpdatePreparer ¶
func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters *CreateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (Client) CreateOrUpdateResponder ¶
func (client Client) 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 (Client) CreateOrUpdateSender ¶
func (client Client) CreateOrUpdateSender(req *http.Request) (future CreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (Client) Delete ¶
func (client Client) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result DeleteFuture, err error)
Delete operation to delete a SignalR service. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. resourceName - the name of the SignalR resource.
func (Client) DeletePreparer ¶
func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (Client) DeleteResponder ¶
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (Client) DeleteSender ¶
func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (Client) Get ¶
func (client Client) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ResourceType, err error)
Get get the SignalR service and its properties. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. resourceName - the name of the SignalR resource.
func (Client) GetPreparer ¶
func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (Client) GetResponder ¶
func (client Client) 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 (Client) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (Client) ListByResourceGroup ¶
func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ResourceListPage, err error)
ListByResourceGroup handles requests to list all resources in a resource group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
func (Client) ListByResourceGroupComplete ¶
func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ResourceListIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (Client) ListByResourceGroupPreparer ¶
func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (Client) ListByResourceGroupResponder ¶
func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ResourceList, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (Client) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (Client) ListBySubscription ¶
func (client Client) ListBySubscription(ctx context.Context) (result ResourceListPage, err error)
ListBySubscription handles requests to list all resources in a subscription.
func (Client) ListBySubscriptionComplete ¶
func (client Client) ListBySubscriptionComplete(ctx context.Context) (result ResourceListIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (Client) ListBySubscriptionPreparer ¶
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (Client) ListBySubscriptionResponder ¶
func (client Client) ListBySubscriptionResponder(resp *http.Response) (result ResourceList, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (Client) ListBySubscriptionSender ¶
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (Client) ListKeys ¶
func (client Client) ListKeys(ctx context.Context, resourceGroupName string, resourceName string) (result Keys, err error)
ListKeys get the access keys of the SignalR resource. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. resourceName - the name of the SignalR resource.
func (Client) ListKeysPreparer ¶
func (client Client) ListKeysPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (Client) ListKeysResponder ¶
ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.
func (Client) ListKeysSender ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (Client) RegenerateKey ¶
func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string, resourceName string, parameters *RegenerateKeyParameters) (result RegenerateKeyFuture, err error)
RegenerateKey regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. resourceName - the name of the SignalR resource. parameters - parameter that describes the Regenerate Key Operation.
func (Client) RegenerateKeyPreparer ¶
func (client Client) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters *RegenerateKeyParameters) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (Client) RegenerateKeyResponder ¶
RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.
func (Client) RegenerateKeySender ¶
func (client Client) RegenerateKeySender(req *http.Request) (future RegenerateKeyFuture, err error)
RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.
func (Client) Restart ¶
func (client Client) Restart(ctx context.Context, resourceGroupName string, resourceName string) (result RestartFuture, err error)
Restart operation to restart a SignalR service. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. resourceName - the name of the SignalR resource.
func (Client) RestartPreparer ¶
func (client Client) RestartPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)
RestartPreparer prepares the Restart request.
func (Client) RestartResponder ¶
RestartResponder handles the response to the Restart request. The method always closes the http.Response Body.
func (Client) RestartSender ¶
func (client Client) RestartSender(req *http.Request) (future RestartFuture, err error)
RestartSender sends the Restart request. The method will close the http.Response Body if it receives an error.
func (Client) Update ¶
func (client Client) Update(ctx context.Context, resourceGroupName string, resourceName string, parameters *UpdateParameters) (result UpdateFuture, err error)
Update operation to update an exiting SignalR service. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. resourceName - the name of the SignalR resource. parameters - parameters for the update operation
func (Client) UpdatePreparer ¶
func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters *UpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (Client) UpdateResponder ¶
func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (Client) UpdateSender ¶
func (client Client) UpdateSender(req *http.Request) (future UpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type CorsSettings ¶
type CorsSettings struct { // AllowedOrigins - Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default. AllowedOrigins *[]string `json:"allowedOrigins,omitempty"` }
CorsSettings cross-Origin Resource Sharing (CORS) settings.
type CreateOrUpdateFuture ¶
CreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*CreateOrUpdateFuture) Result ¶
func (future *CreateOrUpdateFuture) Result(client Client) (rt ResourceType, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type CreateOrUpdateProperties ¶
type CreateOrUpdateProperties struct { // HostNamePrefix - Prefix for the hostName of the SignalR service. Retained for future use. // The hostname will be of format: <hostNamePrefix>.service.signalr.net. HostNamePrefix *string `json:"hostNamePrefix,omitempty"` // Features - List of SignalR featureFlags. e.g. ServiceMode. // // FeatureFlags that are not included in the parameters for the update operation will not be modified. // And the response will only include featureFlags that are explicitly set. // When a featureFlag is not explicitly set, SignalR service will use its globally default value. // But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. Features *[]Feature `json:"features,omitempty"` // Cors - Cross-Origin Resource Sharing (CORS) settings. Cors *CorsSettings `json:"cors,omitempty"` }
CreateOrUpdateProperties settings used to provision or configure the resource.
type CreateParameters ¶
type CreateParameters struct { // Location - Azure GEO region: e.g. West US | East US | North Central US | South Central US | West Europe | North Europe | East Asia | Southeast Asia | etc. // The geo region of a resource never changes after it is created. Location *string `json:"location,omitempty"` // Tags - A list of key value pairs that describe the resource. Tags map[string]*string `json:"tags"` // Sku - The billing information of the resource.(e.g. basic vs. standard) Sku *ResourceSku `json:"sku,omitempty"` // Properties - Settings used to provision or configure the resource Properties *CreateOrUpdateProperties `json:"properties,omitempty"` }
CreateParameters parameters for SignalR service create/update operation.
Keep the same schema as AzSignalR.Models.SignalRResource
func (CreateParameters) MarshalJSON ¶
func (cp CreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CreateParameters.
type DeleteFuture ¶
DeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type Dimension ¶
type Dimension struct { // Name - The public facing name of the dimension. Name *string `json:"name,omitempty"` // DisplayName - Localized friendly display name of the dimension. DisplayName *string `json:"displayName,omitempty"` // InternalName - Name of the dimension as it appears in MDM. InternalName *string `json:"internalName,omitempty"` // ToBeExportedForShoebox - A Boolean flag indicating whether this dimension should be included for the shoebox export scenario. ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` }
Dimension specifications of the Dimension of metrics.
type Feature ¶
type Feature struct { // Flag - Kind of feature. Required. Flag *string `json:"flag,omitempty"` // Value - Value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/en-us/azure/azure-signalr/ for allowed values. Value *string `json:"value,omitempty"` // Properties - Optional properties related to this feature. Properties map[string]*string `json:"properties"` }
Feature feature of a SignalR resource, which controls the SignalR runtime behavior.
func (Feature) MarshalJSON ¶
MarshalJSON is the custom marshaler for Feature.
type KeyType ¶
type KeyType string
KeyType enumerates the values for key type.
func PossibleKeyTypeValues ¶
func PossibleKeyTypeValues() []KeyType
PossibleKeyTypeValues returns an array of possible values for the KeyType const type.
type Keys ¶
type Keys struct { autorest.Response `json:"-"` // PrimaryKey - The primary access key. PrimaryKey *string `json:"primaryKey,omitempty"` // SecondaryKey - The secondary access key. SecondaryKey *string `json:"secondaryKey,omitempty"` // PrimaryConnectionString - SignalR connection string constructed via the primaryKey PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"` // SecondaryConnectionString - SignalR connection string constructed via the secondaryKey SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"` }
Keys a class represents the access keys of SignalR service.
type MetricSpecification ¶
type MetricSpecification struct { // Name - Name of the metric. Name *string `json:"name,omitempty"` // DisplayName - Localized friendly display name of the metric. DisplayName *string `json:"displayName,omitempty"` // DisplayDescription - Localized friendly description of the metric. DisplayDescription *string `json:"displayDescription,omitempty"` // Unit - The unit that makes sense for the metric. Unit *string `json:"unit,omitempty"` // AggregationType - Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. AggregationType *string `json:"aggregationType,omitempty"` // FillGapWithZero - Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. // Ex. a metric that returns the number of times a particular error code was emitted. The error code may not appear // often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods where nothing was emitted. FillGapWithZero *string `json:"fillGapWithZero,omitempty"` // Category - The name of the metric category that the metric belongs to. A metric can only belong to a single category. Category *string `json:"category,omitempty"` // Dimensions - The dimensions of the metrics. Dimensions *[]Dimension `json:"dimensions,omitempty"` }
MetricSpecification specifications of the Metrics for Azure Monitoring.
type NameAvailability ¶
type NameAvailability struct { autorest.Response `json:"-"` // NameAvailable - Indicates whether the name is available or not. NameAvailable *bool `json:"nameAvailable,omitempty"` // Reason - The reason of the availability. Required if name is not available. Reason *string `json:"reason,omitempty"` // Message - The message of the operation. Message *string `json:"message,omitempty"` }
NameAvailability result of the request to check name availability. It contains a flag and possible reason of failure.
type NameAvailabilityParameters ¶
type NameAvailabilityParameters struct { // Type - The resource type. Should be always "Microsoft.SignalRService/SignalR". Type *string `json:"type,omitempty"` // Name - The SignalR service name to validate. e.g."my-signalR-name-here" Name *string `json:"name,omitempty"` }
NameAvailabilityParameters data POST-ed to the nameAvailability action
type Operation ¶
type Operation struct { // Name - Name of the operation with format: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that describes the operation. Display *OperationDisplay `json:"display,omitempty"` // Origin - Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Origin *string `json:"origin,omitempty"` // Properties - Extra properties for the operation. Properties *OperationProperties `json:"properties,omitempty"` }
Operation REST API operation supported by SignalR resource provider.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Friendly name of the resource provider Provider *string `json:"provider,omitempty"` // Resource - Resource type on which the operation is performed. Resource *string `json:"resource,omitempty"` // Operation - The localized friendly name for the operation. Operation *string `json:"operation,omitempty"` // Description - The localized friendly description for the operation Description *string `json:"description,omitempty"` }
OperationDisplay the object that describes a operation.
type OperationList ¶
type OperationList struct { autorest.Response `json:"-"` // Value - List of operations supported by the resource provider. Value *[]Operation `json:"value,omitempty"` // NextLink - The URL the client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` }
OperationList result of the request to list REST API operations. It contains a list of operations.
func (OperationList) IsEmpty ¶
func (ol OperationList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListIterator ¶
type OperationListIterator struct {
// contains filtered or unexported fields
}
OperationListIterator provides access to a complete listing of Operation values.
func NewOperationListIterator ¶
func NewOperationListIterator(page OperationListPage) OperationListIterator
Creates a new instance of the OperationListIterator type.
func (*OperationListIterator) Next ¶
func (iter *OperationListIterator) 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 (*OperationListIterator) NextWithContext ¶
func (iter *OperationListIterator) 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 (OperationListIterator) NotDone ¶
func (iter OperationListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListIterator) Response ¶
func (iter OperationListIterator) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListIterator) Value ¶
func (iter OperationListIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListPage ¶
type OperationListPage struct {
// contains filtered or unexported fields
}
OperationListPage contains a page of Operation values.
func NewOperationListPage ¶
func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage
Creates a new instance of the OperationListPage type.
func (*OperationListPage) Next ¶
func (page *OperationListPage) 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 (*OperationListPage) NextWithContext ¶
func (page *OperationListPage) 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 (OperationListPage) NotDone ¶
func (page OperationListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListPage) Response ¶
func (page OperationListPage) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListPage) Values ¶
func (page OperationListPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationProperties ¶
type OperationProperties struct { // ServiceSpecification - The service specifications. ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationProperties extra Operation properties.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the REST API for Azure SignalR Service
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.
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error)
List lists all of the available REST API operations of the Microsoft.SignalRService provider.
func (OperationsClient) ListComplete ¶
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, 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 OperationList, 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 Properties ¶
type Properties struct { // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // ExternalIP - READ-ONLY; The publicly accessible IP of the SignalR service. ExternalIP *string `json:"externalIP,omitempty"` // HostName - READ-ONLY; FQDN of the SignalR service instance. Format: xxx.service.signalr.net HostName *string `json:"hostName,omitempty"` // PublicPort - READ-ONLY; The publicly accessible port of the SignalR service which is designed for browser/client side usage. PublicPort *int32 `json:"publicPort,omitempty"` // ServerPort - READ-ONLY; The publicly accessible port of the SignalR service which is designed for customer server side usage. ServerPort *int32 `json:"serverPort,omitempty"` // Version - Version of the SignalR resource. Probably you need the same or higher version of client SDKs. Version *string `json:"version,omitempty"` // HostNamePrefix - Prefix for the hostName of the SignalR service. Retained for future use. // The hostname will be of format: <hostNamePrefix>.service.signalr.net. HostNamePrefix *string `json:"hostNamePrefix,omitempty"` // Features - List of SignalR featureFlags. e.g. ServiceMode. // // FeatureFlags that are not included in the parameters for the update operation will not be modified. // And the response will only include featureFlags that are explicitly set. // When a featureFlag is not explicitly set, SignalR service will use its globally default value. // But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. Features *[]Feature `json:"features,omitempty"` // Cors - Cross-Origin Resource Sharing (CORS) settings. Cors *CorsSettings `json:"cors,omitempty"` }
Properties a class that describes the properties of the SignalR service that should contain more read-only properties than AzSignalR.Models.SignalRCreateOrUpdateProperties
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // Canceled ... Canceled ProvisioningState = "Canceled" // Creating ... Creating ProvisioningState = "Creating" // Deleting ... Deleting ProvisioningState = "Deleting" // Failed ... Failed ProvisioningState = "Failed" // Moving ... Moving ProvisioningState = "Moving" // Running ... Running ProvisioningState = "Running" // Succeeded ... Succeeded ProvisioningState = "Succeeded" // Unknown ... Unknown ProvisioningState = "Unknown" // Updating ... Updating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type RegenerateKeyFuture ¶
RegenerateKeyFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type RegenerateKeyParameters ¶
type RegenerateKeyParameters struct { // KeyType - The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible values include: 'Primary', 'Secondary' KeyType KeyType `json:"keyType,omitempty"` }
RegenerateKeyParameters parameters describes the request to regenerate access keys
type Resource ¶
type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the service - e.g. "Microsoft.SignalRService/SignalR" Type *string `json:"type,omitempty"` }
Resource the core properties of ARM resources.
type ResourceList ¶
type ResourceList struct { autorest.Response `json:"-"` // Value - List of SignalR services Value *[]ResourceType `json:"value,omitempty"` // NextLink - The URL the client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` }
ResourceList object that includes an array of SignalR services and a possible link for next set.
func (ResourceList) IsEmpty ¶
func (rl ResourceList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ResourceListIterator ¶
type ResourceListIterator struct {
// contains filtered or unexported fields
}
ResourceListIterator provides access to a complete listing of ResourceType values.
func NewResourceListIterator ¶
func NewResourceListIterator(page ResourceListPage) ResourceListIterator
Creates a new instance of the ResourceListIterator type.
func (*ResourceListIterator) Next ¶
func (iter *ResourceListIterator) 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 (*ResourceListIterator) NextWithContext ¶
func (iter *ResourceListIterator) 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 (ResourceListIterator) NotDone ¶
func (iter ResourceListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ResourceListIterator) Response ¶
func (iter ResourceListIterator) Response() ResourceList
Response returns the raw server response from the last page request.
func (ResourceListIterator) Value ¶
func (iter ResourceListIterator) Value() ResourceType
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ResourceListPage ¶
type ResourceListPage struct {
// contains filtered or unexported fields
}
ResourceListPage contains a page of ResourceType values.
func NewResourceListPage ¶
func NewResourceListPage(getNextPage func(context.Context, ResourceList) (ResourceList, error)) ResourceListPage
Creates a new instance of the ResourceListPage type.
func (*ResourceListPage) Next ¶
func (page *ResourceListPage) 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 (*ResourceListPage) NextWithContext ¶
func (page *ResourceListPage) 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 (ResourceListPage) NotDone ¶
func (page ResourceListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ResourceListPage) Response ¶
func (page ResourceListPage) Response() ResourceList
Response returns the raw server response from the last page request.
func (ResourceListPage) Values ¶
func (page ResourceListPage) Values() []ResourceType
Values returns the slice of values for the current page or nil if there are no values.
type ResourceSku ¶
type ResourceSku struct { // Name - The name of the SKU. Required. // // Allowed values: Standard_S1, Free_F1 Name *string `json:"name,omitempty"` // Tier - Optional tier of this particular SKU. 'Standard' or 'Free'. // // `Basic` is deprecated, use `Standard` instead. Possible values include: 'Free', 'Basic', 'Standard', 'Premium' Tier SkuTier `json:"tier,omitempty"` // Size - Optional string. For future use. Size *string `json:"size,omitempty"` // Family - Optional string. For future use. Family *string `json:"family,omitempty"` // Capacity - Optional, integer. The unit count of SignalR resource. 1 by default. // // If present, following values are allowed: // Free: 1 // Standard: 1,2,5,10,20,50,100 Capacity *int32 `json:"capacity,omitempty"` }
ResourceSku the billing information of the SignalR resource.
type ResourceType ¶
type ResourceType struct { autorest.Response `json:"-"` // Sku - SKU of the service. Sku *ResourceSku `json:"sku,omitempty"` // Properties - The properties of the service. *Properties `json:"properties,omitempty"` // Location - The GEO location of the SignalR service. e.g. West US | East US | North Central US | South Central US. Location *string `json:"location,omitempty"` // Tags - Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags"` // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the service - e.g. "Microsoft.SignalRService/SignalR" Type *string `json:"type,omitempty"` }
ResourceType a class represent a SignalR service resource.
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 RestartFuture ¶
RestartFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServiceSpecification ¶
type ServiceSpecification struct { // MetricSpecifications - Specifications of the Metrics for Azure Monitoring. MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` }
ServiceSpecification an object that describes a specification.
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 { // Location - The GEO location of the SignalR service. e.g. West US | East US | North Central US | South Central US. Location *string `json:"location,omitempty"` // Tags - Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags"` // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the service - e.g. "Microsoft.SignalRService/SignalR" Type *string `json:"type,omitempty"` }
TrackedResource the resource model definition for a ARM tracked top level resource.
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type UpdateFuture ¶
UpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*UpdateFuture) Result ¶
func (future *UpdateFuture) Result(client Client) (rt ResourceType, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type UpdateParameters ¶
type UpdateParameters struct { // Tags - A list of key value pairs that describe the resource. Tags map[string]*string `json:"tags"` // Sku - The billing information of the resource.(e.g. basic vs. standard) Sku *ResourceSku `json:"sku,omitempty"` // Properties - Settings used to provision or configure the resource Properties *CreateOrUpdateProperties `json:"properties,omitempty"` }
UpdateParameters parameters for SignalR service update operation
func (UpdateParameters) MarshalJSON ¶
func (up UpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for UpdateParameters.
type Usage ¶
type Usage struct { // ID - Fully qualified ARM resource id ID *string `json:"id,omitempty"` // CurrentValue - Current value for the usage quota. CurrentValue *int64 `json:"currentValue,omitempty"` // Limit - The maximum permitted value for the usage quota. If there is no limit, this value will be -1. Limit *int64 `json:"limit,omitempty"` // Name - Localizable String object containing the name and a localized value. Name *UsageName `json:"name,omitempty"` // Unit - Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Unit *string `json:"unit,omitempty"` }
Usage object that describes a specific usage of SignalR resources.
type UsageList ¶
type UsageList struct { autorest.Response `json:"-"` // Value - List of SignalR usages Value *[]Usage `json:"value,omitempty"` // NextLink - The URL the client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` }
UsageList object that includes an array of SignalR resource usages and a possible link for next set.
type UsageListIterator ¶
type UsageListIterator struct {
// contains filtered or unexported fields
}
UsageListIterator provides access to a complete listing of Usage values.
func NewUsageListIterator ¶
func NewUsageListIterator(page UsageListPage) UsageListIterator
Creates a new instance of the UsageListIterator type.
func (*UsageListIterator) Next ¶
func (iter *UsageListIterator) 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 (*UsageListIterator) NextWithContext ¶
func (iter *UsageListIterator) 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 (UsageListIterator) NotDone ¶
func (iter UsageListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (UsageListIterator) Response ¶
func (iter UsageListIterator) Response() UsageList
Response returns the raw server response from the last page request.
func (UsageListIterator) Value ¶
func (iter UsageListIterator) Value() Usage
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type UsageListPage ¶
type UsageListPage struct {
// contains filtered or unexported fields
}
UsageListPage contains a page of Usage values.
func NewUsageListPage ¶
func NewUsageListPage(getNextPage func(context.Context, UsageList) (UsageList, error)) UsageListPage
Creates a new instance of the UsageListPage type.
func (*UsageListPage) Next ¶
func (page *UsageListPage) 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 (*UsageListPage) NextWithContext ¶
func (page *UsageListPage) 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 (UsageListPage) NotDone ¶
func (page UsageListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (UsageListPage) Response ¶
func (page UsageListPage) Response() UsageList
Response returns the raw server response from the last page request.
func (UsageListPage) Values ¶
func (page UsageListPage) Values() []Usage
Values returns the slice of values for the current page or nil if there are no values.
type UsageName ¶
type UsageName struct { // Value - The identifier of the usage. Value *string `json:"value,omitempty"` // LocalizedValue - Localized name of the usage. LocalizedValue *string `json:"localizedValue,omitempty"` }
UsageName localizable String object containing the name and a localized value.
type UsagesClient ¶
type UsagesClient struct {
BaseClient
}
UsagesClient is the REST API for Azure SignalR Service
func NewUsagesClient ¶
func NewUsagesClient(subscriptionID string) UsagesClient
NewUsagesClient creates an instance of the UsagesClient client.
func NewUsagesClientWithBaseURI ¶
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient
NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
func (UsagesClient) List ¶
func (client UsagesClient) List(ctx context.Context, location string) (result UsageListPage, err error)
List list usage quotas for Azure SignalR service by location. Parameters: location - the location like "eastus"
func (UsagesClient) ListComplete ¶
func (client UsagesClient) ListComplete(ctx context.Context, location string) (result UsageListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (UsagesClient) ListPreparer ¶
func (client UsagesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
ListPreparer prepares the List request.
func (UsagesClient) ListResponder ¶
func (client UsagesClient) ListResponder(resp *http.Response) (result UsageList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (UsagesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.