Documentation ¶
Overview ¶
Package trafficmanager implements the Azure ARM Trafficmanager service API version .
Deprecated: Please instead use github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2017-09-01-preview/trafficmanager
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type CheckTrafficManagerRelativeDNSNameAvailabilityParameters
- type CloudError
- type CloudErrorBody
- type DNSConfig
- type DeleteOperationResult
- type Endpoint
- type EndpointMonitorStatus
- type EndpointProperties
- type EndpointStatus
- type EndpointsClient
- func (client EndpointsClient) CreateOrUpdate(resourceGroupName string, profileName string, endpointType string, ...) (result Endpoint, err error)
- func (client EndpointsClient) CreateOrUpdatePreparer(resourceGroupName string, profileName string, endpointType string, ...) (*http.Request, error)
- func (client EndpointsClient) CreateOrUpdateResponder(resp *http.Response) (result Endpoint, err error)
- func (client EndpointsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Delete(resourceGroupName string, profileName string, endpointType string, ...) (result DeleteOperationResult, err error)
- func (client EndpointsClient) DeletePreparer(resourceGroupName string, profileName string, endpointType string, ...) (*http.Request, error)
- func (client EndpointsClient) DeleteResponder(resp *http.Response) (result DeleteOperationResult, err error)
- func (client EndpointsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Get(resourceGroupName string, profileName string, endpointType string, ...) (result Endpoint, err error)
- func (client EndpointsClient) GetPreparer(resourceGroupName string, profileName string, endpointType string, ...) (*http.Request, error)
- func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint, err error)
- func (client EndpointsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client EndpointsClient) Update(resourceGroupName string, profileName string, endpointType string, ...) (result Endpoint, err error)
- func (client EndpointsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointType string, ...) (*http.Request, error)
- func (client EndpointsClient) UpdateResponder(resp *http.Response) (result Endpoint, err error)
- func (client EndpointsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type GeographicHierarchiesClient
- func (client GeographicHierarchiesClient) GetDefault() (result GeographicHierarchy, err error)
- func (client GeographicHierarchiesClient) GetDefaultPreparer() (*http.Request, error)
- func (client GeographicHierarchiesClient) GetDefaultResponder(resp *http.Response) (result GeographicHierarchy, err error)
- func (client GeographicHierarchiesClient) GetDefaultSender(req *http.Request) (*http.Response, error)
- type GeographicHierarchy
- type GeographicHierarchyProperties
- type HeatMapClient
- func (client HeatMapClient) Get(resourceGroupName string, profileName string, heatMapType string, ...) (result HeatMapModel, err error)
- func (client HeatMapClient) GetPreparer(resourceGroupName string, profileName string, heatMapType string, ...) (*http.Request, error)
- func (client HeatMapClient) GetResponder(resp *http.Response) (result HeatMapModel, err error)
- func (client HeatMapClient) GetSender(req *http.Request) (*http.Response, error)
- type HeatMapEndpoint
- type HeatMapModel
- type HeatMapProperties
- type ManagementClient
- type MonitorConfig
- type MonitorProtocol
- type NameAvailability
- type Profile
- type ProfileListResult
- type ProfileMonitorStatus
- type ProfileProperties
- type ProfileStatus
- type ProfilesClient
- func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(parameters CheckTrafficManagerRelativeDNSNameAvailabilityParameters) (result NameAvailability, err error)
- func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilityPreparer(parameters CheckTrafficManagerRelativeDNSNameAvailabilityParameters) (*http.Request, error)
- func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp *http.Response) (result NameAvailability, err error)
- func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilitySender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) CreateOrUpdate(resourceGroupName string, profileName string, parameters Profile) (result Profile, err error)
- func (client ProfilesClient) CreateOrUpdatePreparer(resourceGroupName string, profileName string, parameters Profile) (*http.Request, error)
- func (client ProfilesClient) CreateOrUpdateResponder(resp *http.Response) (result Profile, err error)
- func (client ProfilesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) Delete(resourceGroupName string, profileName string) (result DeleteOperationResult, err error)
- func (client ProfilesClient) DeletePreparer(resourceGroupName string, profileName string) (*http.Request, error)
- func (client ProfilesClient) DeleteResponder(resp *http.Response) (result DeleteOperationResult, err error)
- func (client ProfilesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) Get(resourceGroupName string, profileName string) (result Profile, err error)
- func (client ProfilesClient) GetPreparer(resourceGroupName string, profileName string) (*http.Request, error)
- func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error)
- func (client ProfilesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) ListByResourceGroup(resourceGroupName string) (result ProfileListResult, err error)
- func (client ProfilesClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client ProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileListResult, err error)
- func (client ProfilesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) ListBySubscription() (result ProfileListResult, err error)
- func (client ProfilesClient) ListBySubscriptionPreparer() (*http.Request, error)
- func (client ProfilesClient) ListBySubscriptionResponder(resp *http.Response) (result ProfileListResult, err error)
- func (client ProfilesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client ProfilesClient) Update(resourceGroupName string, profileName string, parameters Profile) (result Profile, err error)
- func (client ProfilesClient) UpdatePreparer(resourceGroupName string, profileName string, parameters Profile) (*http.Request, error)
- func (client ProfilesClient) UpdateResponder(resp *http.Response) (result Profile, err error)
- func (client ProfilesClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ProxyResource
- type QueryExperience
- type Region
- type Resource
- type TrackedResource
- type TrafficFlow
- type TrafficRoutingMethod
- type UserMetricsKeyModel
- type UserMetricsKeyProperties
- type UserMetricsKeysClient
- func (client UserMetricsKeysClient) CreateOrUpdate() (result UserMetricsKeyModel, err error)
- func (client UserMetricsKeysClient) CreateOrUpdatePreparer() (*http.Request, error)
- func (client UserMetricsKeysClient) CreateOrUpdateResponder(resp *http.Response) (result UserMetricsKeyModel, err error)
- func (client UserMetricsKeysClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client UserMetricsKeysClient) Delete() (result DeleteOperationResult, err error)
- func (client UserMetricsKeysClient) DeletePreparer() (*http.Request, error)
- func (client UserMetricsKeysClient) DeleteResponder(resp *http.Response) (result DeleteOperationResult, err error)
- func (client UserMetricsKeysClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client UserMetricsKeysClient) GetDefault() (result UserMetricsKeyModel, err error)
- func (client UserMetricsKeysClient) GetDefaultPreparer() (*http.Request, error)
- func (client UserMetricsKeysClient) GetDefaultResponder(resp *http.Response) (result UserMetricsKeyModel, err error)
- func (client UserMetricsKeysClient) GetDefaultSender(req *http.Request) (*http.Response, error)
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Trafficmanager
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 CheckTrafficManagerRelativeDNSNameAvailabilityParameters ¶
type CheckTrafficManagerRelativeDNSNameAvailabilityParameters struct { Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
CheckTrafficManagerRelativeDNSNameAvailabilityParameters is parameters supplied to check Traffic Manager name operation.
type CloudError ¶
type CloudError struct {
Error *CloudErrorBody `json:"error,omitempty"`
}
CloudError is an error returned by the Azure Resource Manager
type CloudErrorBody ¶
type CloudErrorBody struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` Details *[]CloudErrorBody `json:"details,omitempty"` }
CloudErrorBody is the content of an error returned by the Azure Resource Manager
type DNSConfig ¶
type DNSConfig struct { RelativeName *string `json:"relativeName,omitempty"` Fqdn *string `json:"fqdn,omitempty"` TTL *int64 `json:"ttl,omitempty"` }
DNSConfig is class containing DNS settings in a Traffic Manager profile.
type DeleteOperationResult ¶
type DeleteOperationResult struct { autorest.Response `json:"-"` OperationResult *bool `json:"boolean,omitempty"` }
DeleteOperationResult is the result of the request or operation.
type Endpoint ¶
type Endpoint struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *EndpointProperties `json:"properties,omitempty"` }
Endpoint is class representing a Traffic Manager endpoint.
type EndpointMonitorStatus ¶
type EndpointMonitorStatus string
EndpointMonitorStatus enumerates the values for endpoint monitor status.
const ( // CheckingEndpoint specifies the checking endpoint state for endpoint monitor status. CheckingEndpoint EndpointMonitorStatus = "CheckingEndpoint" // Degraded specifies the degraded state for endpoint monitor status. Degraded EndpointMonitorStatus = "Degraded" // Disabled specifies the disabled state for endpoint monitor status. Disabled EndpointMonitorStatus = "Disabled" // Inactive specifies the inactive state for endpoint monitor status. Inactive EndpointMonitorStatus = "Inactive" // Online specifies the online state for endpoint monitor status. Online EndpointMonitorStatus = "Online" // Stopped specifies the stopped state for endpoint monitor status. Stopped EndpointMonitorStatus = "Stopped" )
type EndpointProperties ¶
type EndpointProperties struct { TargetResourceID *string `json:"targetResourceId,omitempty"` Target *string `json:"target,omitempty"` EndpointStatus EndpointStatus `json:"endpointStatus,omitempty"` Weight *int64 `json:"weight,omitempty"` Priority *int64 `json:"priority,omitempty"` EndpointLocation *string `json:"endpointLocation,omitempty"` EndpointMonitorStatus EndpointMonitorStatus `json:"endpointMonitorStatus,omitempty"` MinChildEndpoints *int64 `json:"minChildEndpoints,omitempty"` GeoMapping *[]string `json:"geoMapping,omitempty"` }
EndpointProperties is class representing a Traffic Manager endpoint properties.
type EndpointStatus ¶
type EndpointStatus string
EndpointStatus enumerates the values for endpoint status.
const ( // EndpointStatusDisabled specifies the endpoint status disabled state for endpoint status. EndpointStatusDisabled EndpointStatus = "Disabled" // EndpointStatusEnabled specifies the endpoint status enabled state for endpoint status. EndpointStatusEnabled EndpointStatus = "Enabled" )
type EndpointsClient ¶
type EndpointsClient struct {
ManagementClient
}
EndpointsClient is the client for the Endpoints methods of the Trafficmanager service.
func NewEndpointsClient ¶
func NewEndpointsClient(subscriptionID string) EndpointsClient
NewEndpointsClient creates an instance of the EndpointsClient client.
func NewEndpointsClientWithBaseURI ¶
func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) EndpointsClient
NewEndpointsClientWithBaseURI creates an instance of the EndpointsClient client.
func (EndpointsClient) CreateOrUpdate ¶
func (client EndpointsClient) CreateOrUpdate(resourceGroupName string, profileName string, endpointType string, endpointName string, parameters Endpoint) (result Endpoint, err error)
CreateOrUpdate create or update a Traffic Manager endpoint.
resourceGroupName is the name of the resource group containing the Traffic Manager endpoint to be created or updated. profileName is the name of the Traffic Manager profile. endpointType is the type of the Traffic Manager endpoint to be created or updated. endpointName is the name of the Traffic Manager endpoint to be created or updated. parameters is the Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
func (EndpointsClient) CreateOrUpdatePreparer ¶
func (client EndpointsClient) CreateOrUpdatePreparer(resourceGroupName string, profileName string, endpointType string, endpointName string, parameters Endpoint) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (EndpointsClient) CreateOrUpdateResponder ¶
func (client EndpointsClient) CreateOrUpdateResponder(resp *http.Response) (result Endpoint, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (EndpointsClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Delete ¶
func (client EndpointsClient) Delete(resourceGroupName string, profileName string, endpointType string, endpointName string) (result DeleteOperationResult, err error)
Delete deletes a Traffic Manager endpoint.
resourceGroupName is the name of the resource group containing the Traffic Manager endpoint to be deleted. profileName is the name of the Traffic Manager profile. endpointType is the type of the Traffic Manager endpoint to be deleted. endpointName is the name of the Traffic Manager endpoint to be deleted.
func (EndpointsClient) DeletePreparer ¶
func (client EndpointsClient) DeletePreparer(resourceGroupName string, profileName string, endpointType string, endpointName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (EndpointsClient) DeleteResponder ¶
func (client EndpointsClient) DeleteResponder(resp *http.Response) (result DeleteOperationResult, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (EndpointsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Get ¶
func (client EndpointsClient) Get(resourceGroupName string, profileName string, endpointType string, endpointName string) (result Endpoint, err error)
Get gets a Traffic Manager endpoint.
resourceGroupName is the name of the resource group containing the Traffic Manager endpoint. profileName is the name of the Traffic Manager profile. endpointType is the type of the Traffic Manager endpoint. endpointName is the name of the Traffic Manager endpoint.
func (EndpointsClient) GetPreparer ¶
func (client EndpointsClient) GetPreparer(resourceGroupName string, profileName string, endpointType string, endpointName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (EndpointsClient) GetResponder ¶
func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (EndpointsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (EndpointsClient) Update ¶
func (client EndpointsClient) Update(resourceGroupName string, profileName string, endpointType string, endpointName string, parameters Endpoint) (result Endpoint, err error)
Update update a Traffic Manager endpoint.
resourceGroupName is the name of the resource group containing the Traffic Manager endpoint to be updated. profileName is the name of the Traffic Manager profile. endpointType is the type of the Traffic Manager endpoint to be updated. endpointName is the name of the Traffic Manager endpoint to be updated. parameters is the Traffic Manager endpoint parameters supplied to the Update operation.
func (EndpointsClient) UpdatePreparer ¶
func (client EndpointsClient) UpdatePreparer(resourceGroupName string, profileName string, endpointType string, endpointName string, parameters Endpoint) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (EndpointsClient) UpdateResponder ¶
func (client EndpointsClient) UpdateResponder(resp *http.Response) (result Endpoint, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (EndpointsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type GeographicHierarchiesClient ¶
type GeographicHierarchiesClient struct {
ManagementClient
}
GeographicHierarchiesClient is the client for the GeographicHierarchies methods of the Trafficmanager service.
func NewGeographicHierarchiesClient ¶
func NewGeographicHierarchiesClient(subscriptionID string) GeographicHierarchiesClient
NewGeographicHierarchiesClient creates an instance of the GeographicHierarchiesClient client.
func NewGeographicHierarchiesClientWithBaseURI ¶
func NewGeographicHierarchiesClientWithBaseURI(baseURI string, subscriptionID string) GeographicHierarchiesClient
NewGeographicHierarchiesClientWithBaseURI creates an instance of the GeographicHierarchiesClient client.
func (GeographicHierarchiesClient) GetDefault ¶
func (client GeographicHierarchiesClient) GetDefault() (result GeographicHierarchy, err error)
GetDefault gets the default Geographic Hierarchy used by the Geographic traffic routing method.
func (GeographicHierarchiesClient) GetDefaultPreparer ¶
func (client GeographicHierarchiesClient) GetDefaultPreparer() (*http.Request, error)
GetDefaultPreparer prepares the GetDefault request.
func (GeographicHierarchiesClient) GetDefaultResponder ¶
func (client GeographicHierarchiesClient) GetDefaultResponder(resp *http.Response) (result GeographicHierarchy, err error)
GetDefaultResponder handles the response to the GetDefault request. The method always closes the http.Response Body.
func (GeographicHierarchiesClient) GetDefaultSender ¶
func (client GeographicHierarchiesClient) GetDefaultSender(req *http.Request) (*http.Response, error)
GetDefaultSender sends the GetDefault request. The method will close the http.Response Body if it receives an error.
type GeographicHierarchy ¶
type GeographicHierarchy struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *GeographicHierarchyProperties `json:"properties,omitempty"` }
GeographicHierarchy is class representing the Geographic hierarchy used with the Geographic traffic routing method.
type GeographicHierarchyProperties ¶
type GeographicHierarchyProperties struct {
GeographicHierarchy *Region `json:"geographicHierarchy,omitempty"`
}
GeographicHierarchyProperties is class representing the properties of the Geographic hierarchy used with the Geographic traffic routing method.
type HeatMapClient ¶
type HeatMapClient struct {
ManagementClient
}
HeatMapClient is the client for the HeatMap methods of the Trafficmanager service.
func NewHeatMapClient ¶
func NewHeatMapClient(subscriptionID string) HeatMapClient
NewHeatMapClient creates an instance of the HeatMapClient client.
func NewHeatMapClientWithBaseURI ¶
func NewHeatMapClientWithBaseURI(baseURI string, subscriptionID string) HeatMapClient
NewHeatMapClientWithBaseURI creates an instance of the HeatMapClient client.
func (HeatMapClient) Get ¶
func (client HeatMapClient) Get(resourceGroupName string, profileName string, heatMapType string, topLeft []float64, botRight []float64) (result HeatMapModel, err error)
Get gets latest heatmap for Traffic Manager profile.
resourceGroupName is the name of the resource group containing the Traffic Manager endpoint. profileName is the name of the Traffic Manager profile. heatMapType is the type of HeatMap for the Traffic Manager profile. topLeft is the top left latitude,longitude pair of the rectangular viewport to query for. botRight is the bottom right latitude,longitude pair of the rectangular viewport to query for.
func (HeatMapClient) GetPreparer ¶
func (client HeatMapClient) GetPreparer(resourceGroupName string, profileName string, heatMapType string, topLeft []float64, botRight []float64) (*http.Request, error)
GetPreparer prepares the Get request.
func (HeatMapClient) GetResponder ¶
func (client HeatMapClient) GetResponder(resp *http.Response) (result HeatMapModel, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type HeatMapEndpoint ¶
type HeatMapEndpoint struct { ResourceID *string `json:"resourceId,omitempty"` EndpointID *int32 `json:"endpointId,omitempty"` }
HeatMapEndpoint is class which is a sparse representation of a Traffic Manager endpoint.
type HeatMapModel ¶
type HeatMapModel struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *HeatMapProperties `json:"properties,omitempty"` }
HeatMapModel is class representing a Traffic Manager HeatMap.
type HeatMapProperties ¶
type HeatMapProperties struct { StartTime *date.Time `json:"startTime,omitempty"` EndTime *date.Time `json:"endTime,omitempty"` Endpoints *[]HeatMapEndpoint `json:"endpoints,omitempty"` TrafficFlows *[]TrafficFlow `json:"trafficFlows,omitempty"` }
HeatMapProperties is class representing a Traffic Manager HeatMap properties.
type ManagementClient ¶
ManagementClient is the base client for Trafficmanager.
func New ¶
func New(subscriptionID string) ManagementClient
New creates an instance of the ManagementClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient
NewWithBaseURI creates an instance of the ManagementClient client.
type MonitorConfig ¶
type MonitorConfig struct { ProfileMonitorStatus ProfileMonitorStatus `json:"profileMonitorStatus,omitempty"` Protocol MonitorProtocol `json:"protocol,omitempty"` Port *int64 `json:"port,omitempty"` Path *string `json:"path,omitempty"` IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty"` ToleratedNumberOfFailures *int64 `json:"toleratedNumberOfFailures,omitempty"` }
MonitorConfig is class containing endpoint monitoring settings in a Traffic Manager profile.
type MonitorProtocol ¶
type MonitorProtocol string
MonitorProtocol enumerates the values for monitor protocol.
const ( // HTTP specifies the http state for monitor protocol. HTTP MonitorProtocol = "HTTP" // HTTPS specifies the https state for monitor protocol. HTTPS MonitorProtocol = "HTTPS" // TCP specifies the tcp state for monitor protocol. TCP MonitorProtocol = "TCP" )
type NameAvailability ¶
type NameAvailability struct { autorest.Response `json:"-"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` NameAvailable *bool `json:"nameAvailable,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` }
NameAvailability is class representing a Traffic Manager Name Availability response.
type Profile ¶
type Profile struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` Location *string `json:"location,omitempty"` *ProfileProperties `json:"properties,omitempty"` }
Profile is class representing a Traffic Manager profile.
type ProfileListResult ¶
type ProfileListResult struct { autorest.Response `json:"-"` Value *[]Profile `json:"value,omitempty"` }
ProfileListResult is the list Traffic Manager profiles operation response.
type ProfileMonitorStatus ¶
type ProfileMonitorStatus string
ProfileMonitorStatus enumerates the values for profile monitor status.
const ( // ProfileMonitorStatusCheckingEndpoints specifies the profile monitor status checking endpoints state for profile // monitor status. ProfileMonitorStatusCheckingEndpoints ProfileMonitorStatus = "CheckingEndpoints" // ProfileMonitorStatusDegraded specifies the profile monitor status degraded state for profile monitor status. ProfileMonitorStatusDegraded ProfileMonitorStatus = "Degraded" // ProfileMonitorStatusDisabled specifies the profile monitor status disabled state for profile monitor status. ProfileMonitorStatusDisabled ProfileMonitorStatus = "Disabled" // ProfileMonitorStatusInactive specifies the profile monitor status inactive state for profile monitor status. ProfileMonitorStatusInactive ProfileMonitorStatus = "Inactive" // ProfileMonitorStatusOnline specifies the profile monitor status online state for profile monitor status. ProfileMonitorStatusOnline ProfileMonitorStatus = "Online" )
type ProfileProperties ¶
type ProfileProperties struct { ProfileStatus ProfileStatus `json:"profileStatus,omitempty"` TrafficRoutingMethod TrafficRoutingMethod `json:"trafficRoutingMethod,omitempty"` DNSConfig *DNSConfig `json:"dnsConfig,omitempty"` MonitorConfig *MonitorConfig `json:"monitorConfig,omitempty"` Endpoints *[]Endpoint `json:"endpoints,omitempty"` }
ProfileProperties is class representing the Traffic Manager profile properties.
type ProfileStatus ¶
type ProfileStatus string
ProfileStatus enumerates the values for profile status.
const ( // ProfileStatusDisabled specifies the profile status disabled state for profile status. ProfileStatusDisabled ProfileStatus = "Disabled" // ProfileStatusEnabled specifies the profile status enabled state for profile status. ProfileStatusEnabled ProfileStatus = "Enabled" )
type ProfilesClient ¶
type ProfilesClient struct {
ManagementClient
}
ProfilesClient is the client for the Profiles methods of the Trafficmanager service.
func NewProfilesClient ¶
func NewProfilesClient(subscriptionID string) ProfilesClient
NewProfilesClient creates an instance of the ProfilesClient client.
func NewProfilesClientWithBaseURI ¶
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient
NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
func (ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability ¶
func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailability(parameters CheckTrafficManagerRelativeDNSNameAvailabilityParameters) (result NameAvailability, err error)
CheckTrafficManagerRelativeDNSNameAvailability checks the availability of a Traffic Manager Relative DNS name.
parameters is the Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability operation.
func (ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilityPreparer ¶
func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilityPreparer(parameters CheckTrafficManagerRelativeDNSNameAvailabilityParameters) (*http.Request, error)
CheckTrafficManagerRelativeDNSNameAvailabilityPreparer prepares the CheckTrafficManagerRelativeDNSNameAvailability request.
func (ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilityResponder ¶
func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilityResponder(resp *http.Response) (result NameAvailability, err error)
CheckTrafficManagerRelativeDNSNameAvailabilityResponder handles the response to the CheckTrafficManagerRelativeDNSNameAvailability request. The method always closes the http.Response Body.
func (ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilitySender ¶
func (client ProfilesClient) CheckTrafficManagerRelativeDNSNameAvailabilitySender(req *http.Request) (*http.Response, error)
CheckTrafficManagerRelativeDNSNameAvailabilitySender sends the CheckTrafficManagerRelativeDNSNameAvailability request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) CreateOrUpdate ¶
func (client ProfilesClient) CreateOrUpdate(resourceGroupName string, profileName string, parameters Profile) (result Profile, err error)
CreateOrUpdate create or update a Traffic Manager profile.
resourceGroupName is the name of the resource group containing the Traffic Manager profile. profileName is the name of the Traffic Manager profile. parameters is the Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
func (ProfilesClient) CreateOrUpdatePreparer ¶
func (client ProfilesClient) CreateOrUpdatePreparer(resourceGroupName string, profileName string, parameters Profile) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ProfilesClient) CreateOrUpdateResponder ¶
func (client ProfilesClient) CreateOrUpdateResponder(resp *http.Response) (result Profile, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ProfilesClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) Delete ¶
func (client ProfilesClient) Delete(resourceGroupName string, profileName string) (result DeleteOperationResult, err error)
Delete deletes a Traffic Manager profile.
resourceGroupName is the name of the resource group containing the Traffic Manager profile to be deleted. profileName is the name of the Traffic Manager profile to be deleted.
func (ProfilesClient) DeletePreparer ¶
func (client ProfilesClient) DeletePreparer(resourceGroupName string, profileName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ProfilesClient) DeleteResponder ¶
func (client ProfilesClient) DeleteResponder(resp *http.Response) (result DeleteOperationResult, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ProfilesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) Get ¶
func (client ProfilesClient) Get(resourceGroupName string, profileName string) (result Profile, err error)
Get gets a Traffic Manager profile.
resourceGroupName is the name of the resource group containing the Traffic Manager profile. profileName is the name of the Traffic Manager profile.
func (ProfilesClient) GetPreparer ¶
func (client ProfilesClient) GetPreparer(resourceGroupName string, profileName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ProfilesClient) GetResponder ¶
func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ProfilesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) ListByResourceGroup ¶
func (client ProfilesClient) ListByResourceGroup(resourceGroupName string) (result ProfileListResult, err error)
ListByResourceGroup lists all Traffic Manager profiles within a resource group.
resourceGroupName is the name of the resource group containing the Traffic Manager profiles to be listed.
func (ProfilesClient) ListByResourceGroupPreparer ¶
func (client ProfilesClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ProfilesClient) ListByResourceGroupResponder ¶
func (client ProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ProfilesClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) ListBySubscription ¶
func (client ProfilesClient) ListBySubscription() (result ProfileListResult, err error)
ListBySubscription lists all Traffic Manager profiles within a subscription.
func (ProfilesClient) ListBySubscriptionPreparer ¶
func (client ProfilesClient) ListBySubscriptionPreparer() (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (ProfilesClient) ListBySubscriptionResponder ¶
func (client ProfilesClient) ListBySubscriptionResponder(resp *http.Response) (result ProfileListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (ProfilesClient) ListBySubscriptionSender ¶
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (ProfilesClient) Update ¶
func (client ProfilesClient) Update(resourceGroupName string, profileName string, parameters Profile) (result Profile, err error)
Update update a Traffic Manager profile.
resourceGroupName is the name of the resource group containing the Traffic Manager profile. profileName is the name of the Traffic Manager profile. parameters is the Traffic Manager profile parameters supplied to the Update operation.
func (ProfilesClient) UpdatePreparer ¶
func (client ProfilesClient) UpdatePreparer(resourceGroupName string, profileName string, parameters Profile) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ProfilesClient) UpdateResponder ¶
func (client ProfilesClient) UpdateResponder(resp *http.Response) (result Profile, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ProfilesClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ProxyResource ¶
type ProxyResource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
ProxyResource is the resource model definition for a ARM proxy resource. It will have everything other than required location and tags
type QueryExperience ¶
type QueryExperience struct { EndpointID *int32 `json:"endpointId,omitempty"` QueryCount *int32 `json:"queryCount,omitempty"` Latency *float64 `json:"latency,omitempty"` }
QueryExperience is class representing a Traffic Manager HeatMap query experience properties.
type Region ¶
type Region struct { Code *string `json:"code,omitempty"` Name *string `json:"name,omitempty"` Regions *[]Region `json:"regions,omitempty"` }
Region is class representing a region in the Geographic hierarchy used with the Geographic traffic routing method.
type Resource ¶
type Resource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
Resource is the core properties of ARM resources
type TrackedResource ¶
type TrackedResource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` Location *string `json:"location,omitempty"` }
TrackedResource is the resource model definition for a ARM tracked top level resource
type TrafficFlow ¶
type TrafficFlow struct { SourceIP *string `json:"sourceIp,omitempty"` Latitude *float64 `json:"latitude,omitempty"` Longitude *float64 `json:"longitude,omitempty"` QueryExperiences *[]QueryExperience `json:"queryExperiences,omitempty"` }
TrafficFlow is class representing a Traffic Manager HeatMap traffic flow properties.
type TrafficRoutingMethod ¶
type TrafficRoutingMethod string
TrafficRoutingMethod enumerates the values for traffic routing method.
const ( // Geographic specifies the geographic state for traffic routing method. Geographic TrafficRoutingMethod = "Geographic" // Performance specifies the performance state for traffic routing method. Performance TrafficRoutingMethod = "Performance" // Priority specifies the priority state for traffic routing method. Priority TrafficRoutingMethod = "Priority" // Weighted specifies the weighted state for traffic routing method. Weighted TrafficRoutingMethod = "Weighted" )
type UserMetricsKeyModel ¶
type UserMetricsKeyModel struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *UserMetricsKeyProperties `json:"properties,omitempty"` }
UserMetricsKeyModel is class representing a Traffic Manager Real User Metrics key response.
type UserMetricsKeyProperties ¶
type UserMetricsKeyProperties struct {
Key *string `json:"key,omitempty"`
}
UserMetricsKeyProperties is class representing the properties of a Real User Metrics key operation response.
type UserMetricsKeysClient ¶
type UserMetricsKeysClient struct {
ManagementClient
}
UserMetricsKeysClient is the client for the UserMetricsKeys methods of the Trafficmanager service.
func NewUserMetricsKeysClient ¶
func NewUserMetricsKeysClient(subscriptionID string) UserMetricsKeysClient
NewUserMetricsKeysClient creates an instance of the UserMetricsKeysClient client.
func NewUserMetricsKeysClientWithBaseURI ¶
func NewUserMetricsKeysClientWithBaseURI(baseURI string, subscriptionID string) UserMetricsKeysClient
NewUserMetricsKeysClientWithBaseURI creates an instance of the UserMetricsKeysClient client.
func (UserMetricsKeysClient) CreateOrUpdate ¶
func (client UserMetricsKeysClient) CreateOrUpdate() (result UserMetricsKeyModel, err error)
CreateOrUpdate create or update a subscription-level key used for Realtime User Metrics collection.
func (UserMetricsKeysClient) CreateOrUpdatePreparer ¶
func (client UserMetricsKeysClient) CreateOrUpdatePreparer() (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (UserMetricsKeysClient) CreateOrUpdateResponder ¶
func (client UserMetricsKeysClient) CreateOrUpdateResponder(resp *http.Response) (result UserMetricsKeyModel, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (UserMetricsKeysClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (UserMetricsKeysClient) Delete ¶
func (client UserMetricsKeysClient) Delete() (result DeleteOperationResult, err error)
Delete delete a subscription-level key used for Realtime User Metrics collection.
func (UserMetricsKeysClient) DeletePreparer ¶
func (client UserMetricsKeysClient) DeletePreparer() (*http.Request, error)
DeletePreparer prepares the Delete request.
func (UserMetricsKeysClient) DeleteResponder ¶
func (client UserMetricsKeysClient) DeleteResponder(resp *http.Response) (result DeleteOperationResult, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (UserMetricsKeysClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (UserMetricsKeysClient) GetDefault ¶
func (client UserMetricsKeysClient) GetDefault() (result UserMetricsKeyModel, err error)
GetDefault get the subscription-level key used for Realtime User Metrics collection.
func (UserMetricsKeysClient) GetDefaultPreparer ¶
func (client UserMetricsKeysClient) GetDefaultPreparer() (*http.Request, error)
GetDefaultPreparer prepares the GetDefault request.
func (UserMetricsKeysClient) GetDefaultResponder ¶
func (client UserMetricsKeysClient) GetDefaultResponder(resp *http.Response) (result UserMetricsKeyModel, err error)
GetDefaultResponder handles the response to the GetDefault request. The method always closes the http.Response Body.
func (UserMetricsKeysClient) GetDefaultSender ¶
GetDefaultSender sends the GetDefault request. The method will close the http.Response Body if it receives an error.