Documentation ¶
Index ¶
- type AvailabilityZonePeers
- type CheckResourceNameResult
- type CheckZonePeersRequest
- type CheckZonePeersResult
- type Client
- func (client *Client) CheckZonePeers(ctx context.Context, subscriptionID string, parameters CheckZonePeersRequest, ...) (ClientCheckZonePeersResponse, error)
- func (client *Client) Get(ctx context.Context, subscriptionID string, options *ClientGetOptions) (ClientGetResponse, error)
- func (client *Client) NewListLocationsPager(subscriptionID string, options *ClientListLocationsOptions) *runtime.Pager[ClientListLocationsResponse]
- func (client *Client) NewListPager(options *ClientListOptions) *runtime.Pager[ClientListResponse]
- type ClientCheckZonePeersOptions
- type ClientCheckZonePeersResponse
- type ClientFactory
- type ClientGetOptions
- type ClientGetResponse
- type ClientListLocationsOptions
- type ClientListLocationsResponse
- type ClientListOptions
- type ClientListResponse
- type ErrorAdditionalInfo
- type ErrorDefinition
- type ErrorDetail
- type ErrorResponse
- type ErrorResponseAutoGenerated
- type Location
- type LocationListResult
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Peers
- type ResourceName
- type ResourceNameStatus
- type SpendingLimit
- type Subscription
- type SubscriptionClient
- type SubscriptionClientCheckResourceNameOptions
- type SubscriptionClientCheckResourceNameResponse
- type SubscriptionListResult
- type SubscriptionPolicies
- type SubscriptionState
- type TenantIDDescription
- type TenantListResult
- type TenantsClient
- type TenantsClientListOptions
- type TenantsClientListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityZonePeers ¶
type AvailabilityZonePeers struct { // Details of shared availability zone. Peers []*Peers `json:"peers,omitempty"` // READ-ONLY; The availabilityZone. AvailabilityZone *string `json:"availabilityZone,omitempty" azure:"ro"` }
AvailabilityZonePeers - List of availability zones shared by the subscriptions.
func (AvailabilityZonePeers) MarshalJSON ¶
func (a AvailabilityZonePeers) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailabilityZonePeers.
func (*AvailabilityZonePeers) UnmarshalJSON ¶
func (a *AvailabilityZonePeers) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityZonePeers.
type CheckResourceNameResult ¶
type CheckResourceNameResult struct { // Name of Resource Name *string `json:"name,omitempty"` // Is the resource name Allowed or Reserved Status *ResourceNameStatus `json:"status,omitempty"` // Type of Resource Type *string `json:"type,omitempty"` }
CheckResourceNameResult - Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word
func (CheckResourceNameResult) MarshalJSON ¶
func (c CheckResourceNameResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckResourceNameResult.
func (*CheckResourceNameResult) UnmarshalJSON ¶
func (c *CheckResourceNameResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckResourceNameResult.
type CheckZonePeersRequest ¶
type CheckZonePeersRequest struct { // The Microsoft location. Location *string `json:"location,omitempty"` // The peer Microsoft Azure subscription ID. SubscriptionIDs []*string `json:"subscriptionIds,omitempty"` }
CheckZonePeersRequest - Check zone peers request parameters.
func (CheckZonePeersRequest) MarshalJSON ¶
func (c CheckZonePeersRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckZonePeersRequest.
func (*CheckZonePeersRequest) UnmarshalJSON ¶
func (c *CheckZonePeersRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckZonePeersRequest.
type CheckZonePeersResult ¶
type CheckZonePeersResult struct { // The Availability Zones shared by the subscriptions. AvailabilityZonePeers []*AvailabilityZonePeers `json:"availabilityZonePeers,omitempty"` // the location of the subscription. Location *string `json:"location,omitempty"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` }
CheckZonePeersResult - Result of the Check zone peers operation.
func (CheckZonePeersResult) MarshalJSON ¶
func (c CheckZonePeersResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckZonePeersResult.
func (*CheckZonePeersResult) UnmarshalJSON ¶
func (c *CheckZonePeersResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckZonePeersResult.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains the methods for the Subscriptions group. Don't use this type directly, use NewClient() instead.
func NewClient ¶
func NewClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)
NewClient creates a new instance of Client with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*Client) CheckZonePeers ¶
func (client *Client) CheckZonePeers(ctx context.Context, subscriptionID string, parameters CheckZonePeersRequest, options *ClientCheckZonePeersOptions) (ClientCheckZonePeersResponse, error)
CheckZonePeers - Compares a subscriptions logical zone mapping If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2016-06-01
- subscriptionID - The ID of the target subscription.
- parameters - Parameters for checking zone peers.
- options - ClientCheckZonePeersOptions contains the optional parameters for the Client.CheckZonePeers method.
func (*Client) Get ¶
func (client *Client) Get(ctx context.Context, subscriptionID string, options *ClientGetOptions) (ClientGetResponse, error)
Get - Gets details about a specified subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2016-06-01
- subscriptionID - The ID of the target subscription.
- options - ClientGetOptions contains the optional parameters for the Client.Get method.
func (*Client) NewListLocationsPager ¶
func (client *Client) NewListLocationsPager(subscriptionID string, options *ClientListLocationsOptions) *runtime.Pager[ClientListLocationsResponse]
NewListLocationsPager - This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
Generated from API version 2016-06-01
- subscriptionID - The ID of the target subscription.
- options - ClientListLocationsOptions contains the optional parameters for the Client.NewListLocationsPager method.
func (*Client) NewListPager ¶
func (client *Client) NewListPager(options *ClientListOptions) *runtime.Pager[ClientListResponse]
NewListPager - Gets all subscriptions for a tenant.
Generated from API version 2016-06-01
- options - ClientListOptions contains the optional parameters for the Client.NewListPager method.
type ClientCheckZonePeersOptions ¶
type ClientCheckZonePeersOptions struct { }
ClientCheckZonePeersOptions contains the optional parameters for the Client.CheckZonePeers method.
type ClientCheckZonePeersResponse ¶
type ClientCheckZonePeersResponse struct {
CheckZonePeersResult
}
ClientCheckZonePeersResponse contains the response from method Client.CheckZonePeers.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewClient ¶
func (c *ClientFactory) NewClient() *Client
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
func (*ClientFactory) NewSubscriptionClient ¶
func (c *ClientFactory) NewSubscriptionClient() *SubscriptionClient
func (*ClientFactory) NewTenantsClient ¶
func (c *ClientFactory) NewTenantsClient() *TenantsClient
type ClientGetOptions ¶
type ClientGetOptions struct { }
ClientGetOptions contains the optional parameters for the Client.Get method.
type ClientGetResponse ¶
type ClientGetResponse struct {
Subscription
}
ClientGetResponse contains the response from method Client.Get.
type ClientListLocationsOptions ¶
type ClientListLocationsOptions struct { }
ClientListLocationsOptions contains the optional parameters for the Client.NewListLocationsPager method.
type ClientListLocationsResponse ¶
type ClientListLocationsResponse struct {
LocationListResult
}
ClientListLocationsResponse contains the response from method Client.NewListLocationsPager.
type ClientListOptions ¶
type ClientListOptions struct { }
ClientListOptions contains the optional parameters for the Client.NewListPager method.
type ClientListResponse ¶
type ClientListResponse struct {
SubscriptionListResult
}
ClientListResponse contains the response from method Client.NewListPager.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.
func (*ErrorAdditionalInfo) UnmarshalJSON ¶
func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.
type ErrorDefinition ¶
type ErrorDefinition struct { // Code of the error. Code *string `json:"code,omitempty"` // Description of the error. Message *string `json:"message,omitempty"` }
ErrorDefinition - Error description and code explaining why resource name is invalid.
func (ErrorDefinition) MarshalJSON ¶
func (e ErrorDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDefinition.
func (*ErrorDefinition) UnmarshalJSON ¶
func (e *ErrorDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDefinition.
type ErrorDetail ¶
type ErrorDetail struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
func (*ErrorDetail) UnmarshalJSON ¶
func (e *ErrorDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
func (ErrorResponse) MarshalJSON ¶
func (e ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponse.
func (*ErrorResponse) UnmarshalJSON ¶
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.
type ErrorResponseAutoGenerated ¶
type ErrorResponseAutoGenerated struct { // The error details. Error *ErrorDefinition `json:"error,omitempty"` }
ErrorResponseAutoGenerated - Error response.
func (ErrorResponseAutoGenerated) MarshalJSON ¶
func (e ErrorResponseAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponseAutoGenerated.
func (*ErrorResponseAutoGenerated) UnmarshalJSON ¶
func (e *ErrorResponseAutoGenerated) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseAutoGenerated.
type Location ¶
type Location struct { // READ-ONLY; The display name of the location. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The latitude of the location. Latitude *string `json:"latitude,omitempty" azure:"ro"` // READ-ONLY; The longitude of the location. Longitude *string `json:"longitude,omitempty" azure:"ro"` // READ-ONLY; The location name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` }
Location information.
func (Location) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Location.
func (*Location) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Location.
type LocationListResult ¶
type LocationListResult struct { // An array of locations. Value []*Location `json:"value,omitempty"` }
LocationListResult - Location list operation response.
func (LocationListResult) MarshalJSON ¶
func (l LocationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LocationListResult.
func (*LocationListResult) UnmarshalJSON ¶
func (l *LocationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LocationListResult.
type Operation ¶
type Operation struct { // The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` }
Operation - Microsoft.Resources operation
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation. Description *string `json:"description,omitempty"` // Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider: Microsoft.Resources Provider *string `json:"provider,omitempty"` // Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The object that represents the operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Microsoft.Resources operations. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available Microsoft.Resources REST API operations.
Generated from API version 2016-06-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Peers ¶
type Peers struct { // READ-ONLY; The availabilityZone. AvailabilityZone *string `json:"availabilityZone,omitempty" azure:"ro"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` }
Peers - Information about shared availability zone.
func (Peers) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Peers.
func (*Peers) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Peers.
type ResourceName ¶
type ResourceName struct { // REQUIRED; Name of the resource Name *string `json:"name,omitempty"` // REQUIRED; The type of the resource Type *string `json:"type,omitempty"` }
ResourceName - Name and Type of the Resource
func (ResourceName) MarshalJSON ¶
func (r ResourceName) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceName.
func (*ResourceName) UnmarshalJSON ¶
func (r *ResourceName) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceName.
type ResourceNameStatus ¶
type ResourceNameStatus string
ResourceNameStatus - Is the resource name Allowed or Reserved
const ( ResourceNameStatusAllowed ResourceNameStatus = "Allowed" ResourceNameStatusReserved ResourceNameStatus = "Reserved" )
func PossibleResourceNameStatusValues ¶
func PossibleResourceNameStatusValues() []ResourceNameStatus
PossibleResourceNameStatusValues returns the possible values for the ResourceNameStatus const type.
type SpendingLimit ¶
type SpendingLimit string
SpendingLimit - The subscription spending limit.
const ( SpendingLimitOn SpendingLimit = "On" SpendingLimitOff SpendingLimit = "Off" SpendingLimitCurrentPeriodOff SpendingLimit = "CurrentPeriodOff" )
func PossibleSpendingLimitValues ¶
func PossibleSpendingLimitValues() []SpendingLimit
PossibleSpendingLimitValues returns the possible values for the SpendingLimit const type.
type Subscription ¶
type Subscription struct { // 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"` // The subscription policies. SubscriptionPolicies *SubscriptionPolicies `json:"subscriptionPolicies,omitempty"` // READ-ONLY; The subscription display name. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. State *SubscriptionState `json:"state,omitempty" azure:"ro"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` }
Subscription information.
func (Subscription) MarshalJSON ¶
func (s Subscription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Subscription.
func (*Subscription) UnmarshalJSON ¶
func (s *Subscription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Subscription.
type SubscriptionClient ¶
type SubscriptionClient struct {
// contains filtered or unexported fields
}
SubscriptionClient contains the methods for the SubscriptionClient group. Don't use this type directly, use NewSubscriptionClient() instead.
func NewSubscriptionClient ¶
func NewSubscriptionClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionClient, error)
NewSubscriptionClient creates a new instance of SubscriptionClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SubscriptionClient) CheckResourceName ¶
func (client *SubscriptionClient) CheckResourceName(ctx context.Context, options *SubscriptionClientCheckResourceNameOptions) (SubscriptionClientCheckResourceNameResponse, error)
CheckResourceName - A resource name is valid if it is not a reserved word, does not contains a reserved word and does not start with a reserved word If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2016-06-01
- options - SubscriptionClientCheckResourceNameOptions contains the optional parameters for the SubscriptionClient.CheckResourceName method.
type SubscriptionClientCheckResourceNameOptions ¶
type SubscriptionClientCheckResourceNameOptions struct { // Resource object with values for resource name and resource type ResourceNameDefinition *ResourceName }
SubscriptionClientCheckResourceNameOptions contains the optional parameters for the SubscriptionClient.CheckResourceName method.
type SubscriptionClientCheckResourceNameResponse ¶
type SubscriptionClientCheckResourceNameResponse struct {
CheckResourceNameResult
}
SubscriptionClientCheckResourceNameResponse contains the response from method SubscriptionClient.CheckResourceName.
type SubscriptionListResult ¶
type SubscriptionListResult struct { // REQUIRED; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // An array of subscriptions. Value []*Subscription `json:"value,omitempty"` }
SubscriptionListResult - Subscription list operation response.
func (SubscriptionListResult) MarshalJSON ¶
func (s SubscriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionListResult.
func (*SubscriptionListResult) UnmarshalJSON ¶
func (s *SubscriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionListResult.
type SubscriptionPolicies ¶
type SubscriptionPolicies struct { // 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" azure:"ro"` // READ-ONLY; The subscription quota ID. QuotaID *string `json:"quotaId,omitempty" azure:"ro"` // READ-ONLY; The subscription spending limit. SpendingLimit *SpendingLimit `json:"spendingLimit,omitempty" azure:"ro"` }
SubscriptionPolicies - Subscription policies.
func (SubscriptionPolicies) MarshalJSON ¶
func (s SubscriptionPolicies) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionPolicies.
func (*SubscriptionPolicies) UnmarshalJSON ¶
func (s *SubscriptionPolicies) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionPolicies.
type SubscriptionState ¶
type SubscriptionState string
SubscriptionState - The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
const ( SubscriptionStateEnabled SubscriptionState = "Enabled" SubscriptionStateWarned SubscriptionState = "Warned" SubscriptionStatePastDue SubscriptionState = "PastDue" SubscriptionStateDisabled SubscriptionState = "Disabled" SubscriptionStateDeleted SubscriptionState = "Deleted" )
func PossibleSubscriptionStateValues ¶
func PossibleSubscriptionStateValues() []SubscriptionState
PossibleSubscriptionStateValues returns the possible values for the SubscriptionState const type.
type TenantIDDescription ¶
type TenantIDDescription struct { // READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The tenant ID. For example, 00000000-0000-0000-0000-000000000000. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
TenantIDDescription - Tenant Id information.
func (TenantIDDescription) MarshalJSON ¶
func (t TenantIDDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TenantIDDescription.
func (*TenantIDDescription) UnmarshalJSON ¶
func (t *TenantIDDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TenantIDDescription.
type TenantListResult ¶
type TenantListResult struct { // REQUIRED; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` // An array of tenants. Value []*TenantIDDescription `json:"value,omitempty"` }
TenantListResult - Tenant Ids information.
func (TenantListResult) MarshalJSON ¶
func (t TenantListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TenantListResult.
func (*TenantListResult) UnmarshalJSON ¶
func (t *TenantListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TenantListResult.
type TenantsClient ¶
type TenantsClient struct {
// contains filtered or unexported fields
}
TenantsClient contains the methods for the Tenants group. Don't use this type directly, use NewTenantsClient() instead.
func NewTenantsClient ¶
func NewTenantsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*TenantsClient, error)
NewTenantsClient creates a new instance of TenantsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TenantsClient) NewListPager ¶
func (client *TenantsClient) NewListPager(options *TenantsClientListOptions) *runtime.Pager[TenantsClientListResponse]
NewListPager - Gets the tenants for your account.
Generated from API version 2016-06-01
- options - TenantsClientListOptions contains the optional parameters for the TenantsClient.NewListPager method.
type TenantsClientListOptions ¶
type TenantsClientListOptions struct { }
TenantsClientListOptions contains the optional parameters for the TenantsClient.NewListPager method.
type TenantsClientListResponse ¶
type TenantsClientListResponse struct {
TenantListResult
}
TenantsClientListResponse contains the response from method TenantsClient.NewListPager.