subscriptions

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2015 License: MIT, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiVersion     = "2014-04-01-preview"
	DefaultBaseUri = "https://management.azure.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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 information.

type SubscriptionClient

type SubscriptionClient struct {
	autorest.Client
	BaseUri        string
	SubscriptionId string
}

func New

func New(subscriptionId string) SubscriptionClient

func NewWithBaseUri

func NewWithBaseUri(baseUri string, subscriptionId string) SubscriptionClient

type SubscriptionListResult

type SubscriptionListResult struct {
	autorest.Response `json:"-"`
	Value             []Subscription `json:"value,omitempty"`
	NextLink          string         `json:"nextLink,omitempty"`
}

Subscription list operation response.

type SubscriptionsClient

type SubscriptionsClient struct {
	SubscriptionClient
}

Subscriptions Client

func NewSubscriptionsClient

func NewSubscriptionsClient(subscriptionId string) SubscriptionsClient

func NewSubscriptionsClientWithBaseUri

func NewSubscriptionsClientWithBaseUri(baseUri string, subscriptionId string) SubscriptionsClient

func (SubscriptionsClient) Get

func (client SubscriptionsClient) Get(subscriptionId string) (result Subscription, ae autorest.Error)

Get gets details about particular subscription.

subscriptionId is id of the subscription.

func (SubscriptionsClient) GetRequestPreparer

func (client SubscriptionsClient) GetRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Get request.

func (SubscriptionsClient) List

func (client SubscriptionsClient) List() (result SubscriptionListResult, ae autorest.Error)

List gets a list of the subscriptionIds.

func (SubscriptionsClient) ListRequestPreparer

func (client SubscriptionsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (SubscriptionsClient) NewGetRequest

func (client SubscriptionsClient) NewGetRequest(subscriptionId string) (*http.Request, error)

Create the Get request.

func (SubscriptionsClient) NewListRequest

func (client SubscriptionsClient) NewListRequest() (*http.Request, error)

Create the List request.

type TenantIdDescription

type TenantIdDescription struct {
	Id       string `json:"id,omitempty"`
	TenantId string `json:"tenantId,omitempty"`
}

Tenant Id information

type TenantListResult

type TenantListResult struct {
	autorest.Response `json:"-"`
	Value             []TenantIdDescription `json:"value,omitempty"`
	NextLink          string                `json:"nextLink,omitempty"`
}

Tenant Ids information.

type TenantsClient

type TenantsClient struct {
	SubscriptionClient
}

Tenants Client

func NewTenantsClient

func NewTenantsClient(subscriptionId string) TenantsClient

func NewTenantsClientWithBaseUri

func NewTenantsClientWithBaseUri(baseUri string, subscriptionId string) TenantsClient

func (TenantsClient) List

func (client TenantsClient) List() (result TenantListResult, ae autorest.Error)

List gets a list of the tenantIds.

func (TenantsClient) ListRequestPreparer

func (client TenantsClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (TenantsClient) NewListRequest

func (client TenantsClient) NewListRequest() (*http.Request, error)

Create the List request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL