Documentation ¶
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type Client
- func (client Client) Get(subscriptionID string) (result Subscription, ae error)
- func (client Client) GetPreparer(subscriptionID string) (*http.Request, error)
- func (client Client) GetResponder(resp *http.Response) (result Subscription, err error)
- func (client Client) GetSender(req *http.Request) (*http.Response, error)
- func (client Client) List() (result SubscriptionListResult, ae error)
- func (client Client) ListLocations(subscriptionID string) (result LocationListResult, ae error)
- func (client Client) ListLocationsPreparer(subscriptionID string) (*http.Request, error)
- func (client Client) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error)
- func (client Client) ListLocationsSender(req *http.Request) (*http.Response, error)
- func (client Client) ListNextResults(lastResults SubscriptionListResult) (result SubscriptionListResult, ae error)
- func (client Client) ListPreparer() (*http.Request, error)
- func (client Client) ListResponder(resp *http.Response) (result SubscriptionListResult, err error)
- func (client Client) ListSender(req *http.Request) (*http.Response, error)
- type DeploymentExtendedFilter
- type GenericResourceFilter
- type Location
- type LocationListResult
- type Resource
- type ResourceGroupFilter
- type SubResource
- type Subscription
- type SubscriptionListResult
- type SubscriptionsClient
- func (client SubscriptionsClient) Get(subscriptionID string) (result Subscription, ae error)
- func (client SubscriptionsClient) GetPreparer(subscriptionID string) (*http.Request, error)
- func (client SubscriptionsClient) GetResponder(resp *http.Response) (result Subscription, err error)
- func (client SubscriptionsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client SubscriptionsClient) List() (result SubscriptionListResult, ae error)
- func (client SubscriptionsClient) ListLocations(subscriptionID string) (result LocationListResult, ae error)
- func (client SubscriptionsClient) ListLocationsPreparer(subscriptionID string) (*http.Request, error)
- func (client SubscriptionsClient) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error)
- func (client SubscriptionsClient) ListLocationsSender(req *http.Request) (*http.Response, error)
- func (client SubscriptionsClient) ListNextResults(lastResults SubscriptionListResult) (result SubscriptionListResult, ae error)
- func (client SubscriptionsClient) ListPreparer() (*http.Request, error)
- func (client SubscriptionsClient) ListResponder(resp *http.Response) (result SubscriptionListResult, err error)
- func (client SubscriptionsClient) ListSender(req *http.Request) (*http.Response, error)
- type TenantIDDescription
- type TenantListResult
- type TenantsClient
- func (client TenantsClient) List() (result TenantListResult, ae error)
- func (client TenantsClient) ListNextResults(lastResults TenantListResult) (result TenantListResult, ae error)
- func (client TenantsClient) ListPreparer() (*http.Request, error)
- func (client TenantsClient) ListResponder(resp *http.Response) (result TenantListResult, err error)
- func (client TenantsClient) ListSender(req *http.Request) (*http.Response, error)
Constants ¶
const ( // APIVersion is the version of the Subscriptions APIVersion = "2014-04-01-preview" // DefaultBaseURI is the default URI used for the service Subscriptions 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 Client ¶
Client is the base client for Subscriptions.
func NewWithBaseURI ¶
NewWithBaseURI creates an instance of the Client client.
func (Client) Get ¶
func (client Client) Get(subscriptionID string) (result Subscription, ae error)
Get gets details about particular subscription.
subscriptionID is id of the subscription.
func (Client) GetPreparer ¶
GetPreparer prepares the Get request.
func (Client) GetResponder ¶
func (client Client) GetResponder(resp *http.Response) (result Subscription, 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) List ¶
func (client Client) List() (result SubscriptionListResult, ae error)
List gets a list of the subscriptionIds.
func (Client) ListLocations ¶
func (client Client) ListLocations(subscriptionID string) (result LocationListResult, ae error)
ListLocations gets a list of the subscription locations.
subscriptionID is id of the subscription
func (Client) ListLocationsPreparer ¶
ListLocationsPreparer prepares the ListLocations request.
func (Client) ListLocationsResponder ¶
func (client Client) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error)
ListLocationsResponder handles the response to the ListLocations request. The method always closes the http.Response Body.
func (Client) ListLocationsSender ¶
ListLocationsSender sends the ListLocations request. The method will close the http.Response Body if it receives an error.
func (Client) ListNextResults ¶
func (client Client) ListNextResults(lastResults SubscriptionListResult) (result SubscriptionListResult, ae error)
ListNextResults retrieves the next set of results, if any.
func (Client) ListPreparer ¶
ListPreparer prepares the List request.
func (Client) ListResponder ¶
func (client Client) ListResponder(resp *http.Response) (result SubscriptionListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
type DeploymentExtendedFilter ¶
type DeploymentExtendedFilter struct {
ProvisioningState *string `json:"provisioningState,omitempty"`
}
DeploymentExtendedFilter is deployment filter.
type GenericResourceFilter ¶
type GenericResourceFilter struct { ResourceType *string `json:"resourceType,omitempty"` Tagname *string `json:"tagname,omitempty"` Tagvalue *string `json:"tagvalue,omitempty"` }
GenericResourceFilter is resource filter.
type Location ¶
type Location struct { ID *string `json:"id,omitempty"` SubscriptionID *string `json:"subscriptionId,omitempty"` Name *string `json:"name,omitempty"` DisplayName *string `json:"displayName,omitempty"` Latitude *string `json:"latitude,omitempty"` Longitude *string `json:"longitude,omitempty"` }
Location is location information.
type LocationListResult ¶
type LocationListResult struct { autorest.Response `json:"-"` Value *[]Location `json:"value,omitempty"` }
LocationListResult is location list operation response.
type Resource ¶
type Resource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
Resource is
type ResourceGroupFilter ¶
type ResourceGroupFilter struct { TagName *string `json:"tagName,omitempty"` TagValue *string `json:"tagValue,omitempty"` }
ResourceGroupFilter is resource group filter.
type Subscription ¶
type Subscription struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` SubscriptionID *string `json:"subscriptionId,omitempty"` DisplayName *string `json:"displayName,omitempty"` State *string `json:"state,omitempty"` }
Subscription is subscription information.
type SubscriptionListResult ¶
type SubscriptionListResult struct { autorest.Response `json:"-"` Value *[]Subscription `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
SubscriptionListResult is subscription list operation response.
func (SubscriptionListResult) SubscriptionListResultPreparer ¶
func (client SubscriptionListResult) SubscriptionListResultPreparer() (*http.Request, error)
SubscriptionListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type SubscriptionsClient ¶
type SubscriptionsClient struct {
Client
}
SubscriptionsClient is the client for the Subscriptions methods of the Subscriptions service.
func NewSubscriptionsClient ¶
func NewSubscriptionsClient(subscriptionID string) SubscriptionsClient
NewSubscriptionsClient creates an instance of the SubscriptionsClient client.
func NewSubscriptionsClientWithBaseURI ¶
func NewSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionsClient
NewSubscriptionsClientWithBaseURI creates an instance of the SubscriptionsClient client.
func (SubscriptionsClient) Get ¶
func (client SubscriptionsClient) Get(subscriptionID string) (result Subscription, ae error)
Get gets details about particular subscription.
subscriptionID is id of the subscription.
func (SubscriptionsClient) GetPreparer ¶
func (client SubscriptionsClient) GetPreparer(subscriptionID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (SubscriptionsClient) GetResponder ¶
func (client SubscriptionsClient) GetResponder(resp *http.Response) (result Subscription, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (SubscriptionsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (SubscriptionsClient) List ¶
func (client SubscriptionsClient) List() (result SubscriptionListResult, ae error)
List gets a list of the subscriptionIds.
func (SubscriptionsClient) ListLocations ¶
func (client SubscriptionsClient) ListLocations(subscriptionID string) (result LocationListResult, ae error)
ListLocations gets a list of the subscription locations.
subscriptionID is id of the subscription
func (SubscriptionsClient) ListLocationsPreparer ¶
func (client SubscriptionsClient) ListLocationsPreparer(subscriptionID string) (*http.Request, error)
ListLocationsPreparer prepares the ListLocations request.
func (SubscriptionsClient) ListLocationsResponder ¶
func (client SubscriptionsClient) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error)
ListLocationsResponder handles the response to the ListLocations request. The method always closes the http.Response Body.
func (SubscriptionsClient) ListLocationsSender ¶
ListLocationsSender sends the ListLocations request. The method will close the http.Response Body if it receives an error.
func (SubscriptionsClient) ListNextResults ¶
func (client SubscriptionsClient) ListNextResults(lastResults SubscriptionListResult) (result SubscriptionListResult, ae error)
ListNextResults retrieves the next set of results, if any.
func (SubscriptionsClient) ListPreparer ¶
func (client SubscriptionsClient) ListPreparer() (*http.Request, error)
ListPreparer prepares the List request.
func (SubscriptionsClient) ListResponder ¶
func (client SubscriptionsClient) ListResponder(resp *http.Response) (result SubscriptionListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (SubscriptionsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type TenantIDDescription ¶
type TenantIDDescription struct { ID *string `json:"id,omitempty"` TenantID *string `json:"tenantId,omitempty"` }
TenantIDDescription is tenant Id information
type TenantListResult ¶
type TenantListResult struct { autorest.Response `json:"-"` Value *[]TenantIDDescription `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
TenantListResult is tenant Ids information.
func (TenantListResult) TenantListResultPreparer ¶
func (client TenantListResult) TenantListResultPreparer() (*http.Request, error)
TenantListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type TenantsClient ¶
type TenantsClient struct {
Client
}
TenantsClient is the client for the Tenants methods of the Subscriptions service.
func NewTenantsClient ¶
func NewTenantsClient(subscriptionID string) TenantsClient
NewTenantsClient creates an instance of the TenantsClient client.
func NewTenantsClientWithBaseURI ¶
func NewTenantsClientWithBaseURI(baseURI string, subscriptionID string) TenantsClient
NewTenantsClientWithBaseURI creates an instance of the TenantsClient client.
func (TenantsClient) List ¶
func (client TenantsClient) List() (result TenantListResult, ae error)
List gets a list of the tenantIds.
func (TenantsClient) ListNextResults ¶
func (client TenantsClient) ListNextResults(lastResults TenantListResult) (result TenantListResult, ae error)
ListNextResults retrieves the next set of results, if any.
func (TenantsClient) ListPreparer ¶
func (client TenantsClient) ListPreparer() (*http.Request, error)
ListPreparer prepares the List request.
func (TenantsClient) ListResponder ¶
func (client TenantsClient) ListResponder(resp *http.Response) (result TenantListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (TenantsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.