azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/subscription/mgmt/2020-09-01/subscription Index | Files | Directories

package subscription

import "github.com/Azure/azure-sdk-for-go/services/subscription/mgmt/2020-09-01/subscription"

Package subscription implements the Azure ARM Subscription service API version .

The subscription client

Index

Package Files

alias.go client.go enums.go models.go operations.go subscription.go subscriptions.go tenants.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Subscription
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AliasClient Uses

type AliasClient struct {
    BaseClient
}

AliasClient is the the subscription client

func NewAliasClient Uses

func NewAliasClient() AliasClient

NewAliasClient creates an instance of the AliasClient client.

func NewAliasClientWithBaseURI Uses

func NewAliasClientWithBaseURI(baseURI string) AliasClient

NewAliasClientWithBaseURI creates an instance of the AliasClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AliasClient) Create Uses

func (client AliasClient) Create(ctx context.Context, aliasName string, body PutAliasRequest) (result AliasCreateFuture, err error)

Create create Alias Subscription. Parameters: aliasName - alias Name

func (AliasClient) CreatePreparer Uses

func (client AliasClient) CreatePreparer(ctx context.Context, aliasName string, body PutAliasRequest) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AliasClient) CreateResponder Uses

func (client AliasClient) CreateResponder(resp *http.Response) (result PutAliasResponse, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AliasClient) CreateSender Uses

func (client AliasClient) CreateSender(req *http.Request) (future AliasCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (AliasClient) Delete Uses

func (client AliasClient) Delete(ctx context.Context, aliasName string) (result autorest.Response, err error)

Delete delete Alias. Parameters: aliasName - alias Name

func (AliasClient) DeletePreparer Uses

func (client AliasClient) DeletePreparer(ctx context.Context, aliasName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AliasClient) DeleteResponder Uses

func (client AliasClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AliasClient) DeleteSender Uses

func (client AliasClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AliasClient) Get Uses

func (client AliasClient) Get(ctx context.Context, aliasName string) (result PutAliasResponse, err error)

Get get Alias Subscription. Parameters: aliasName - alias Name

func (AliasClient) GetPreparer Uses

func (client AliasClient) GetPreparer(ctx context.Context, aliasName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AliasClient) GetResponder Uses

func (client AliasClient) GetResponder(resp *http.Response) (result PutAliasResponse, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AliasClient) GetSender Uses

func (client AliasClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AliasClient) List Uses

func (client AliasClient) List(ctx context.Context) (result PutAliasListResult, err error)

List get Alias Subscription.

func (AliasClient) ListPreparer Uses

func (client AliasClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (AliasClient) ListResponder Uses

func (client AliasClient) ListResponder(resp *http.Response) (result PutAliasListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AliasClient) ListSender Uses

func (client AliasClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type AliasCreateFuture Uses

type AliasCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(AliasClient) (PutAliasResponse, error)
}

AliasCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI string
}

BaseClient is the base client for Subscription.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CanceledSubscriptionID Uses

type CanceledSubscriptionID struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The ID of the canceled subscription
    Value *string `json:"value,omitempty"`
}

CanceledSubscriptionID the ID of the canceled subscription

type Client Uses

type Client struct {
    BaseClient
}

Client is the the subscription client

func NewClient Uses

func NewClient() Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI Uses

func NewClientWithBaseURI(baseURI string) Client

NewClientWithBaseURI creates an instance of the Client client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (Client) Cancel Uses

func (client Client) Cancel(ctx context.Context, subscriptionID string) (result CanceledSubscriptionID, err error)

Cancel the operation to cancel a subscription Parameters: subscriptionID - subscription Id.

func (Client) CancelPreparer Uses

func (client Client) CancelPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (Client) CancelResponder Uses

func (client Client) CancelResponder(resp *http.Response) (result CanceledSubscriptionID, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (Client) CancelSender Uses

func (client Client) CancelSender(req *http.Request) (*http.Response, error)

CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.

func (Client) Enable Uses

func (client Client) Enable(ctx context.Context, subscriptionID string) (result EnabledSubscriptionID, err error)

Enable the operation to enable a subscription Parameters: subscriptionID - subscription Id.

func (Client) EnablePreparer Uses

func (client Client) EnablePreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

EnablePreparer prepares the Enable request.

func (Client) EnableResponder Uses

func (client Client) EnableResponder(resp *http.Response) (result EnabledSubscriptionID, err error)

EnableResponder handles the response to the Enable request. The method always closes the http.Response Body.

func (Client) EnableSender Uses

func (client Client) EnableSender(req *http.Request) (*http.Response, error)

EnableSender sends the Enable request. The method will close the http.Response Body if it receives an error.

func (Client) Rename Uses

func (client Client) Rename(ctx context.Context, subscriptionID string, body Name) (result RenamedSubscriptionID, err error)

Rename the operation to rename a subscription Parameters: subscriptionID - subscription Id. body - subscription Name

func (Client) RenamePreparer Uses

func (client Client) RenamePreparer(ctx context.Context, subscriptionID string, body Name) (*http.Request, error)

RenamePreparer prepares the Rename request.

func (Client) RenameResponder Uses

func (client Client) RenameResponder(resp *http.Response) (result RenamedSubscriptionID, err error)

RenameResponder handles the response to the Rename request. The method always closes the http.Response Body.

func (Client) RenameSender Uses

func (client Client) RenameSender(req *http.Request) (*http.Response, error)

RenameSender sends the Rename request. The method will close the http.Response Body if it receives an error.

type EnabledSubscriptionID Uses

type EnabledSubscriptionID struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The ID of the subscriptions that is being enabled
    Value *string `json:"value,omitempty"`
}

EnabledSubscriptionID the ID of the subscriptions that is being enabled

type ErrorResponse Uses

type ErrorResponse struct {
    // Code - Error code
    Code *string `json:"code,omitempty"`
    // Message - Error message indicating why the operation failed.
    Message *string `json:"message,omitempty"`
}

ErrorResponse describes the format of Error response.

type ErrorResponseBody Uses

type ErrorResponseBody struct {
    // Error - The details of the error.
    Error *ErrorResponse `json:"error,omitempty"`
}

ErrorResponseBody error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

type ListResult Uses

type ListResult struct {
    autorest.Response `json:"-"`
    // Value - An array of subscriptions.
    Value *[]Model `json:"value,omitempty"`
    // NextLink - The URL to get the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

ListResult subscription list operation response.

func (ListResult) IsEmpty Uses

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListResultIterator Uses

type ListResultIterator struct {
    // contains filtered or unexported fields
}

ListResultIterator provides access to a complete listing of Model values.

func NewListResultIterator Uses

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next Uses

func (iter *ListResultIterator) 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 (*ListResultIterator) NextWithContext Uses

func (iter *ListResultIterator) 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 (ListResultIterator) NotDone Uses

func (iter ListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListResultIterator) Response Uses

func (iter ListResultIterator) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultIterator) Value Uses

func (iter ListResultIterator) Value() Model

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ListResultPage Uses

type ListResultPage struct {
    // contains filtered or unexported fields
}

ListResultPage contains a page of Model values.

func NewListResultPage Uses

func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next Uses

func (page *ListResultPage) 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 (*ListResultPage) NextWithContext Uses

func (page *ListResultPage) 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 (ListResultPage) NotDone Uses

func (page ListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListResultPage) Response Uses

func (page ListResultPage) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultPage) Values Uses

func (page ListResultPage) Values() []Model

Values returns the slice of values for the current page or nil if there are no values.

type Location Uses

type Location struct {
    // ID - READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
    ID  *string `json:"id,omitempty"`
    // SubscriptionID - READ-ONLY; The subscription ID.
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // Name - READ-ONLY; The location name.
    Name *string `json:"name,omitempty"`
    // DisplayName - READ-ONLY; The display name of the location.
    DisplayName *string `json:"displayName,omitempty"`
    // Latitude - READ-ONLY; The latitude of the location.
    Latitude *string `json:"latitude,omitempty"`
    // Longitude - READ-ONLY; The longitude of the location.
    Longitude *string `json:"longitude,omitempty"`
}

Location location information.

type LocationListResult Uses

type LocationListResult struct {
    autorest.Response `json:"-"`
    // Value - An array of locations.
    Value *[]Location `json:"value,omitempty"`
}

LocationListResult location list operation response.

type Model Uses

type Model struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
    ID  *string `json:"id,omitempty"`
    // SubscriptionID - READ-ONLY; The subscription ID.
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // DisplayName - READ-ONLY; The subscription display name.
    DisplayName *string `json:"displayName,omitempty"`
    // State - READ-ONLY; The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
    State State `json:"state,omitempty"`
    // SubscriptionPolicies - The subscription policies.
    SubscriptionPolicies *Policies `json:"subscriptionPolicies,omitempty"`
    // AuthorizationSource - The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
    AuthorizationSource *string `json:"authorizationSource,omitempty"`
}

Model subscription information.

func (Model) MarshalJSON Uses

func (mVar Model) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Model.

type Name Uses

type Name struct {
    // SubscriptionName - New subscription name
    SubscriptionName *string `json:"subscriptionName,omitempty"`
}

Name the new name of the subscription.

type Operation Uses

type Operation struct {
    // Name - Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - The object that represents the operation.
    Display *OperationDisplay `json:"display,omitempty"`
}

Operation REST API operation

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - Service provider: Microsoft.Subscription
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource on which the operation is performed: Profile, endpoint, etc.
    Resource *string `json:"resource,omitempty"`
    // Operation - Operation type: Read, write, delete, etc.
    Operation *string `json:"operation,omitempty"`
}

OperationDisplay the object that represents the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - List of operations.
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list operations. It contains a list of operations and a URL link to get the next set of results.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the the subscription client

func NewOperationsClient Uses

func NewOperationsClient() OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

List lists all of the available Microsoft.Subscription API operations.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Policies Uses

type Policies struct {
    // LocationPlacementID - READ-ONLY; The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.
    LocationPlacementID *string `json:"locationPlacementId,omitempty"`
    // QuotaID - READ-ONLY; The subscription quota ID.
    QuotaID *string `json:"quotaId,omitempty"`
    // SpendingLimit - READ-ONLY; The subscription spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff'
    SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"`
}

Policies subscription policies.

type ProvisioningState Uses

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
    // Accepted ...
    Accepted ProvisioningState = "Accepted"
    // Failed ...
    Failed ProvisioningState = "Failed"
    // Succeeded ...
    Succeeded ProvisioningState = "Succeeded"
)

func PossibleProvisioningStateValues Uses

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type PutAliasListResult Uses

type PutAliasListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The list of alias.
    Value *[]PutAliasResponse `json:"value,omitempty"`
    // NextLink - READ-ONLY; The link (url) to the next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

PutAliasListResult the list of aliases.

type PutAliasRequest Uses

type PutAliasRequest struct {
    // Properties - Put alias request properties.
    Properties *PutAliasRequestProperties `json:"properties,omitempty"`
}

PutAliasRequest the parameters required to create a new subscription.

type PutAliasRequestProperties Uses

type PutAliasRequestProperties struct {
    // DisplayName - The friendly name of the subscription.
    DisplayName *string `json:"displayName,omitempty"`
    // Workload - The workload type of the subscription. It can be either Production or DevTest. Possible values include: 'Production', 'DevTest'
    Workload Workload `json:"workload,omitempty"`
    // BillingScope - Determines whether subscription is fieldLed, partnerLed or LegacyEA
    BillingScope *string `json:"billingScope,omitempty"`
    // SubscriptionID - This parameter can be used to create alias for existing subscription Id
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // ResellerID - Reseller ID, basically MPN Id
    ResellerID *string `json:"resellerId,omitempty"`
}

PutAliasRequestProperties put subscription properties.

type PutAliasResponse Uses

type PutAliasResponse struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Fully qualified ID for the alias resource.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Alias ID.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type, Microsoft.Subscription/aliases.
    Type *string `json:"type,omitempty"`
    // Properties - Put Alias response properties.
    Properties *PutAliasResponseProperties `json:"properties,omitempty"`
}

PutAliasResponse subscription Information with the alias.

func (PutAliasResponse) MarshalJSON Uses

func (par PutAliasResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PutAliasResponse.

type PutAliasResponseProperties Uses

type PutAliasResponseProperties struct {
    // SubscriptionID - READ-ONLY; Newly created subscription Id.
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // ProvisioningState - The provisioning state of the resource. Possible values include: 'Accepted', 'Succeeded', 'Failed'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

PutAliasResponseProperties put subscription creation result properties.

func (PutAliasResponseProperties) MarshalJSON Uses

func (parp PutAliasResponseProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PutAliasResponseProperties.

type RenamedSubscriptionID Uses

type RenamedSubscriptionID struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The ID of the subscriptions that is being renamed
    Value *string `json:"value,omitempty"`
}

RenamedSubscriptionID the ID of the subscriptions that is being renamed

type SpendingLimit Uses

type SpendingLimit string

SpendingLimit enumerates the values for spending limit.

const (
    // CurrentPeriodOff ...
    CurrentPeriodOff SpendingLimit = "CurrentPeriodOff"
    // Off ...
    Off SpendingLimit = "Off"
    // On ...
    On  SpendingLimit = "On"
)

func PossibleSpendingLimitValues Uses

func PossibleSpendingLimitValues() []SpendingLimit

PossibleSpendingLimitValues returns an array of possible values for the SpendingLimit const type.

type State Uses

type State string

State enumerates the values for state.

const (
    // Deleted ...
    Deleted State = "Deleted"
    // Disabled ...
    Disabled State = "Disabled"
    // Enabled ...
    Enabled State = "Enabled"
    // PastDue ...
    PastDue State = "PastDue"
    // Warned ...
    Warned State = "Warned"
)

func PossibleStateValues Uses

func PossibleStateValues() []State

PossibleStateValues returns an array of possible values for the State const type.

type SubscriptionsClient Uses

type SubscriptionsClient struct {
    BaseClient
}

SubscriptionsClient is the the subscription client

func NewSubscriptionsClient Uses

func NewSubscriptionsClient() SubscriptionsClient

NewSubscriptionsClient creates an instance of the SubscriptionsClient client.

func NewSubscriptionsClientWithBaseURI Uses

func NewSubscriptionsClientWithBaseURI(baseURI string) SubscriptionsClient

NewSubscriptionsClientWithBaseURI creates an instance of the SubscriptionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SubscriptionsClient) Get Uses

func (client SubscriptionsClient) Get(ctx context.Context, subscriptionID string) (result Model, err error)

Get gets details about a specified subscription. Parameters: subscriptionID - the ID of the target subscription.

func (SubscriptionsClient) GetPreparer Uses

func (client SubscriptionsClient) GetPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SubscriptionsClient) GetResponder Uses

func (client SubscriptionsClient) GetResponder(resp *http.Response) (result Model, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SubscriptionsClient) GetSender Uses

func (client SubscriptionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) List Uses

func (client SubscriptionsClient) List(ctx context.Context) (result ListResultPage, err error)

List gets all subscriptions for a tenant.

func (SubscriptionsClient) ListComplete Uses

func (client SubscriptionsClient) ListComplete(ctx context.Context) (result ListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionsClient) ListLocations Uses

func (client SubscriptionsClient) ListLocations(ctx context.Context, subscriptionID string) (result LocationListResult, err error)

ListLocations this operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list. Parameters: subscriptionID - the ID of the target subscription.

func (SubscriptionsClient) ListLocationsPreparer Uses

func (client SubscriptionsClient) ListLocationsPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

ListLocationsPreparer prepares the ListLocations request.

func (SubscriptionsClient) ListLocationsResponder Uses

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 Uses

func (client SubscriptionsClient) ListLocationsSender(req *http.Request) (*http.Response, error)

ListLocationsSender sends the ListLocations request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) ListPreparer Uses

func (client SubscriptionsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (SubscriptionsClient) ListResponder Uses

func (client SubscriptionsClient) ListResponder(resp *http.Response) (result ListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SubscriptionsClient) ListSender Uses

func (client SubscriptionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type TenantIDDescription Uses

type TenantIDDescription struct {
    // ID - READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.
    ID  *string `json:"id,omitempty"`
    // TenantID - READ-ONLY; The tenant ID. For example, 00000000-0000-0000-0000-000000000000.
    TenantID *string `json:"tenantId,omitempty"`
}

TenantIDDescription tenant Id information.

type TenantListResult Uses

type TenantListResult struct {
    autorest.Response `json:"-"`
    // Value - An array of tenants.
    Value *[]TenantIDDescription `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

TenantListResult tenant Ids information.

func (TenantListResult) IsEmpty Uses

func (tlr TenantListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TenantListResultIterator Uses

type TenantListResultIterator struct {
    // contains filtered or unexported fields
}

TenantListResultIterator provides access to a complete listing of TenantIDDescription values.

func NewTenantListResultIterator Uses

func NewTenantListResultIterator(page TenantListResultPage) TenantListResultIterator

Creates a new instance of the TenantListResultIterator type.

func (*TenantListResultIterator) Next Uses

func (iter *TenantListResultIterator) 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 (*TenantListResultIterator) NextWithContext Uses

func (iter *TenantListResultIterator) 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 (TenantListResultIterator) NotDone Uses

func (iter TenantListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (TenantListResultIterator) Response Uses

func (iter TenantListResultIterator) Response() TenantListResult

Response returns the raw server response from the last page request.

func (TenantListResultIterator) Value Uses

func (iter TenantListResultIterator) Value() TenantIDDescription

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type TenantListResultPage Uses

type TenantListResultPage struct {
    // contains filtered or unexported fields
}

TenantListResultPage contains a page of TenantIDDescription values.

func NewTenantListResultPage Uses

func NewTenantListResultPage(cur TenantListResult, getNextPage func(context.Context, TenantListResult) (TenantListResult, error)) TenantListResultPage

Creates a new instance of the TenantListResultPage type.

func (*TenantListResultPage) Next Uses

func (page *TenantListResultPage) 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 (*TenantListResultPage) NextWithContext Uses

func (page *TenantListResultPage) 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 (TenantListResultPage) NotDone Uses

func (page TenantListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (TenantListResultPage) Response Uses

func (page TenantListResultPage) Response() TenantListResult

Response returns the raw server response from the last page request.

func (TenantListResultPage) Values Uses

func (page TenantListResultPage) Values() []TenantIDDescription

Values returns the slice of values for the current page or nil if there are no values.

type TenantsClient Uses

type TenantsClient struct {
    BaseClient
}

TenantsClient is the the subscription client

func NewTenantsClient Uses

func NewTenantsClient() TenantsClient

NewTenantsClient creates an instance of the TenantsClient client.

func NewTenantsClientWithBaseURI Uses

func NewTenantsClientWithBaseURI(baseURI string) TenantsClient

NewTenantsClientWithBaseURI creates an instance of the TenantsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TenantsClient) List Uses

func (client TenantsClient) List(ctx context.Context) (result TenantListResultPage, err error)

List gets the tenants for your account.

func (TenantsClient) ListComplete Uses

func (client TenantsClient) ListComplete(ctx context.Context) (result TenantListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (TenantsClient) ListPreparer Uses

func (client TenantsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (TenantsClient) ListResponder Uses

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 Uses

func (client TenantsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Workload Uses

type Workload string

Workload enumerates the values for workload.

const (
    // DevTest ...
    DevTest Workload = "DevTest"
    // Production ...
    Production Workload = "Production"
)

func PossibleWorkloadValues Uses

func PossibleWorkloadValues() []Workload

PossibleWorkloadValues returns an array of possible values for the Workload const type.

Directories

PathSynopsis
subscriptionapi

Package subscription imports 9 packages (graph) and is imported by 1 packages. Updated 2021-01-28. Refresh now. Tools for package owners.