README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2018-08-01/geographichierarchies
Documentation
The geographichierarchies
SDK allows for interaction with the Azure Resource Manager Service trafficmanager
(API Version 2018-08-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2018-08-01/geographichierarchies"
Client Initialization
client := geographichierarchies.NewGeographicHierarchiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: GeographicHierarchiesClient.GetDefault
ctx := context.TODO()
read, err := client.GetDefault(ctx)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeographicHierarchiesClient ¶
type GeographicHierarchiesClient struct {
Client *resourcemanager.Client
}
func NewGeographicHierarchiesClientWithBaseURI ¶
func NewGeographicHierarchiesClientWithBaseURI(sdkApi sdkEnv.Api) (*GeographicHierarchiesClient, error)
func (GeographicHierarchiesClient) GetDefault ¶
func (c GeographicHierarchiesClient) GetDefault(ctx context.Context) (result GetDefaultOperationResponse, err error)
GetDefault ...
type GeographicHierarchyProperties ¶
type GeographicHierarchyProperties struct {
GeographicHierarchy *Region `json:"geographicHierarchy,omitempty"`
}
type GetDefaultOperationResponse ¶
type GetDefaultOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TrafficManagerGeographicHierarchy }
type TrafficManagerGeographicHierarchy ¶
type TrafficManagerGeographicHierarchy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *GeographicHierarchyProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
Click to show internal directories.
Click to hide internal directories.