powerbidedicated

package
v60.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package powerbidedicated implements the Azure ARM Powerbidedicated service API version 2017-10-01.

PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Powerbidedicated
	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 BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Powerbidedicated.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID 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 CapacitiesClient

type CapacitiesClient struct {
	BaseClient
}

CapacitiesClient is the powerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities

func NewCapacitiesClient

func NewCapacitiesClient(subscriptionID string) CapacitiesClient

NewCapacitiesClient creates an instance of the CapacitiesClient client.

func NewCapacitiesClientWithBaseURI

func NewCapacitiesClientWithBaseURI(baseURI string, subscriptionID string) CapacitiesClient

NewCapacitiesClientWithBaseURI creates an instance of the CapacitiesClient 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 (CapacitiesClient) CheckNameAvailability

func (client CapacitiesClient) CheckNameAvailability(ctx context.Context, location string, capacityParameters CheckCapacityNameAvailabilityParameters) (result CheckCapacityNameAvailabilityResult, err error)

CheckNameAvailability check the name availability in the target location. Parameters: location - the region name which the operation will lookup into. capacityParameters - the name of the capacity.

func (CapacitiesClient) CheckNameAvailabilityPreparer

func (client CapacitiesClient) CheckNameAvailabilityPreparer(ctx context.Context, location string, capacityParameters CheckCapacityNameAvailabilityParameters) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (CapacitiesClient) CheckNameAvailabilityResponder

func (client CapacitiesClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckCapacityNameAvailabilityResult, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (CapacitiesClient) CheckNameAvailabilitySender

func (client CapacitiesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

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

func (CapacitiesClient) Create

func (client CapacitiesClient) Create(ctx context.Context, resourceGroupName string, dedicatedCapacityName string, capacityParameters DedicatedCapacity) (result CapacitiesCreateFuture, err error)

Create provisions the specified Dedicated capacity based on the configuration specified in the request. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. dedicatedCapacityName - the name of the Dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63. capacityParameters - contains the information used to provision the Dedicated capacity.

func (CapacitiesClient) CreatePreparer

func (client CapacitiesClient) CreatePreparer(ctx context.Context, resourceGroupName string, dedicatedCapacityName string, capacityParameters DedicatedCapacity) (*http.Request, error)

CreatePreparer prepares the Create request.

func (CapacitiesClient) CreateResponder

func (client CapacitiesClient) CreateResponder(resp *http.Response) (result DedicatedCapacity, err error)

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

func (CapacitiesClient) CreateSender

func (client CapacitiesClient) CreateSender(req *http.Request) (future CapacitiesCreateFuture, err error)

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

func (CapacitiesClient) Delete

func (client CapacitiesClient) Delete(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (result CapacitiesDeleteFuture, err error)

Delete deletes the specified Dedicated capacity. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. dedicatedCapacityName - the name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.

func (CapacitiesClient) DeletePreparer

func (client CapacitiesClient) DeletePreparer(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CapacitiesClient) DeleteResponder

func (client CapacitiesClient) 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 (CapacitiesClient) DeleteSender

func (client CapacitiesClient) DeleteSender(req *http.Request) (future CapacitiesDeleteFuture, err error)

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

func (CapacitiesClient) GetDetails

func (client CapacitiesClient) GetDetails(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (result DedicatedCapacity, err error)

GetDetails gets details about the specified dedicated capacity. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. dedicatedCapacityName - the name of the dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63.

func (CapacitiesClient) GetDetailsPreparer

func (client CapacitiesClient) GetDetailsPreparer(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (*http.Request, error)

GetDetailsPreparer prepares the GetDetails request.

func (CapacitiesClient) GetDetailsResponder

func (client CapacitiesClient) GetDetailsResponder(resp *http.Response) (result DedicatedCapacity, err error)

GetDetailsResponder handles the response to the GetDetails request. The method always closes the http.Response Body.

func (CapacitiesClient) GetDetailsSender

func (client CapacitiesClient) GetDetailsSender(req *http.Request) (*http.Response, error)

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

func (CapacitiesClient) List

func (client CapacitiesClient) List(ctx context.Context) (result DedicatedCapacities, err error)

List lists all the Dedicated capacities for the given subscription.

func (CapacitiesClient) ListByResourceGroup

func (client CapacitiesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DedicatedCapacities, err error)

ListByResourceGroup gets all the Dedicated capacities for the given resource group. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90.

func (CapacitiesClient) ListByResourceGroupPreparer

func (client CapacitiesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (CapacitiesClient) ListByResourceGroupResponder

func (client CapacitiesClient) ListByResourceGroupResponder(resp *http.Response) (result DedicatedCapacities, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (CapacitiesClient) ListByResourceGroupSender

func (client CapacitiesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (CapacitiesClient) ListPreparer

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

ListPreparer prepares the List request.

func (CapacitiesClient) ListResponder

func (client CapacitiesClient) ListResponder(resp *http.Response) (result DedicatedCapacities, err error)

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

func (CapacitiesClient) ListSender

func (client CapacitiesClient) 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.

func (CapacitiesClient) ListSkus

func (client CapacitiesClient) ListSkus(ctx context.Context) (result SkuEnumerationForNewResourceResult, err error)

ListSkus lists eligible SKUs for PowerBI Dedicated resource provider.

func (CapacitiesClient) ListSkusForCapacity

func (client CapacitiesClient) ListSkusForCapacity(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (result SkuEnumerationForExistingResourceResult, err error)

ListSkusForCapacity lists eligible SKUs for a PowerBI Dedicated resource. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. dedicatedCapacityName - the name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.

func (CapacitiesClient) ListSkusForCapacityPreparer

func (client CapacitiesClient) ListSkusForCapacityPreparer(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (*http.Request, error)

ListSkusForCapacityPreparer prepares the ListSkusForCapacity request.

func (CapacitiesClient) ListSkusForCapacityResponder

func (client CapacitiesClient) ListSkusForCapacityResponder(resp *http.Response) (result SkuEnumerationForExistingResourceResult, err error)

ListSkusForCapacityResponder handles the response to the ListSkusForCapacity request. The method always closes the http.Response Body.

func (CapacitiesClient) ListSkusForCapacitySender

func (client CapacitiesClient) ListSkusForCapacitySender(req *http.Request) (*http.Response, error)

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

func (CapacitiesClient) ListSkusPreparer

func (client CapacitiesClient) ListSkusPreparer(ctx context.Context) (*http.Request, error)

ListSkusPreparer prepares the ListSkus request.

func (CapacitiesClient) ListSkusResponder

func (client CapacitiesClient) ListSkusResponder(resp *http.Response) (result SkuEnumerationForNewResourceResult, err error)

ListSkusResponder handles the response to the ListSkus request. The method always closes the http.Response Body.

func (CapacitiesClient) ListSkusSender

func (client CapacitiesClient) ListSkusSender(req *http.Request) (*http.Response, error)

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

func (CapacitiesClient) Resume

func (client CapacitiesClient) Resume(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (result CapacitiesResumeFuture, err error)

Resume resumes operation of the specified Dedicated capacity instance. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. dedicatedCapacityName - the name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.

func (CapacitiesClient) ResumePreparer

func (client CapacitiesClient) ResumePreparer(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (*http.Request, error)

ResumePreparer prepares the Resume request.

func (CapacitiesClient) ResumeResponder

func (client CapacitiesClient) ResumeResponder(resp *http.Response) (result autorest.Response, err error)

ResumeResponder handles the response to the Resume request. The method always closes the http.Response Body.

func (CapacitiesClient) ResumeSender

func (client CapacitiesClient) ResumeSender(req *http.Request) (future CapacitiesResumeFuture, err error)

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

func (CapacitiesClient) Suspend

func (client CapacitiesClient) Suspend(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (result CapacitiesSuspendFuture, err error)

Suspend suspends operation of the specified dedicated capacity instance. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. dedicatedCapacityName - the name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.

func (CapacitiesClient) SuspendPreparer

func (client CapacitiesClient) SuspendPreparer(ctx context.Context, resourceGroupName string, dedicatedCapacityName string) (*http.Request, error)

SuspendPreparer prepares the Suspend request.

func (CapacitiesClient) SuspendResponder

func (client CapacitiesClient) SuspendResponder(resp *http.Response) (result autorest.Response, err error)

SuspendResponder handles the response to the Suspend request. The method always closes the http.Response Body.

func (CapacitiesClient) SuspendSender

func (client CapacitiesClient) SuspendSender(req *http.Request) (future CapacitiesSuspendFuture, err error)

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

func (CapacitiesClient) Update

func (client CapacitiesClient) Update(ctx context.Context, resourceGroupName string, dedicatedCapacityName string, capacityUpdateParameters DedicatedCapacityUpdateParameters) (result CapacitiesUpdateFuture, err error)

Update updates the current state of the specified Dedicated capacity. Parameters: resourceGroupName - the name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. dedicatedCapacityName - the name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63. capacityUpdateParameters - request object that contains the updated information for the capacity.

func (CapacitiesClient) UpdatePreparer

func (client CapacitiesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dedicatedCapacityName string, capacityUpdateParameters DedicatedCapacityUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (CapacitiesClient) UpdateResponder

func (client CapacitiesClient) UpdateResponder(resp *http.Response) (result DedicatedCapacity, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (CapacitiesClient) UpdateSender

func (client CapacitiesClient) UpdateSender(req *http.Request) (future CapacitiesUpdateFuture, err error)

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

type CapacitiesCreateFuture

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

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

func (*CapacitiesCreateFuture) UnmarshalJSON

func (future *CapacitiesCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CapacitiesDeleteFuture

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

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

func (*CapacitiesDeleteFuture) UnmarshalJSON

func (future *CapacitiesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CapacitiesResumeFuture

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

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

func (*CapacitiesResumeFuture) UnmarshalJSON

func (future *CapacitiesResumeFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CapacitiesSuspendFuture

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

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

func (*CapacitiesSuspendFuture) UnmarshalJSON

func (future *CapacitiesSuspendFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CapacitiesUpdateFuture

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

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

func (*CapacitiesUpdateFuture) UnmarshalJSON

func (future *CapacitiesUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CheckCapacityNameAvailabilityParameters

type CheckCapacityNameAvailabilityParameters struct {
	// Name - Name for checking availability.
	Name *string `json:"name,omitempty"`
	// Type - The resource type of PowerBI dedicated.
	Type *string `json:"type,omitempty"`
}

CheckCapacityNameAvailabilityParameters details of capacity name request body.

type CheckCapacityNameAvailabilityResult

type CheckCapacityNameAvailabilityResult struct {
	autorest.Response `json:"-"`
	// NameAvailable - Indicator of availability of the capacity name.
	NameAvailable *bool `json:"nameAvailable,omitempty"`
	// Reason - The reason of unavailability.
	Reason *string `json:"reason,omitempty"`
	// Message - The detailed message of the request unavailability.
	Message *string `json:"message,omitempty"`
}

CheckCapacityNameAvailabilityResult the checking result of capacity name availability.

type DedicatedCapacities

type DedicatedCapacities struct {
	autorest.Response `json:"-"`
	// Value - An array of Dedicated capacities resources.
	Value *[]DedicatedCapacity `json:"value,omitempty"`
}

DedicatedCapacities an array of Dedicated capacities resources.

type DedicatedCapacity

type DedicatedCapacity struct {
	autorest.Response `json:"-"`
	// DedicatedCapacityProperties - Properties of the provision operation request.
	*DedicatedCapacityProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; An identifier that represents the PowerBI Dedicated resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the PowerBI Dedicated resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the PowerBI Dedicated resource.
	Type *string `json:"type,omitempty"`
	// Location - Location of the PowerBI Dedicated resource.
	Location *string `json:"location,omitempty"`
	// Sku - The SKU of the PowerBI Dedicated resource.
	Sku *ResourceSku `json:"sku,omitempty"`
	// Tags - Key-value pairs of additional resource provisioning properties.
	Tags map[string]*string `json:"tags"`
}

DedicatedCapacity represents an instance of a Dedicated Capacity resource.

func (DedicatedCapacity) MarshalJSON

func (dc DedicatedCapacity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DedicatedCapacity.

func (*DedicatedCapacity) UnmarshalJSON

func (dc *DedicatedCapacity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DedicatedCapacity struct.

type DedicatedCapacityAdministrators

type DedicatedCapacityAdministrators struct {
	// Members - An array of administrator user identities.
	Members *[]string `json:"members,omitempty"`
}

DedicatedCapacityAdministrators an array of administrator user identities

type DedicatedCapacityMutableProperties

type DedicatedCapacityMutableProperties struct {
	// Administration - A collection of Dedicated capacity administrators
	Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"`
}

DedicatedCapacityMutableProperties an object that represents a set of mutable Dedicated capacity resource properties.

type DedicatedCapacityProperties

type DedicatedCapacityProperties struct {
	// State - READ-ONLY; The current state of PowerBI Dedicated resource. The state is to indicate more states outside of resource provisioning. Possible values include: 'StateDeleting', 'StateSucceeded', 'StateFailed', 'StatePaused', 'StateSuspended', 'StateProvisioning', 'StateUpdating', 'StateSuspending', 'StatePausing', 'StateResuming', 'StatePreparing', 'StateScaling'
	State State `json:"state,omitempty"`
	// ProvisioningState - READ-ONLY; The current deployment state of PowerBI Dedicated resource. The provisioningState is to indicate states for resource provisioning. Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// Administration - A collection of Dedicated capacity administrators
	Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"`
}

DedicatedCapacityProperties properties of Dedicated Capacity resource.

func (DedicatedCapacityProperties) MarshalJSON

func (dcp DedicatedCapacityProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DedicatedCapacityProperties.

type DedicatedCapacityUpdateParameters

type DedicatedCapacityUpdateParameters struct {
	// Sku - The SKU of the Dedicated capacity resource.
	Sku *ResourceSku `json:"sku,omitempty"`
	// Tags - Key-value pairs of additional provisioning properties.
	Tags map[string]*string `json:"tags"`
	// DedicatedCapacityMutableProperties - Properties of the provision operation request.
	*DedicatedCapacityMutableProperties `json:"properties,omitempty"`
}

DedicatedCapacityUpdateParameters provision request specification

func (DedicatedCapacityUpdateParameters) MarshalJSON

func (dcup DedicatedCapacityUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DedicatedCapacityUpdateParameters.

func (*DedicatedCapacityUpdateParameters) UnmarshalJSON

func (dcup *DedicatedCapacityUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DedicatedCapacityUpdateParameters struct.

type ErrorResponse

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 Operation

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

Operation capacities REST API operation.

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; Service provider: Microsoft.PowerBIDedicated.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; Resource on which the operation is performed: capacity, etc.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; Operation type: create, update, delete, etc.
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay the object that represents the operation.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDisplay.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of capacities supported by the Microsoft.PowerBIDedicated resource provider.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

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

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OperationListResult) MarshalJSON

func (olr OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationListResult.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the powerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID 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

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

List lists all of the available PowerBIDedicated REST API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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 ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Paused ...
	Paused ProvisioningState = "Paused"
	// Pausing ...
	Pausing ProvisioningState = "Pausing"
	// Preparing ...
	Preparing ProvisioningState = "Preparing"
	// Provisioning ...
	Provisioning ProvisioningState = "Provisioning"
	// Resuming ...
	Resuming ProvisioningState = "Resuming"
	// Scaling ...
	Scaling ProvisioningState = "Scaling"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
	// Suspended ...
	Suspended ProvisioningState = "Suspended"
	// Suspending ...
	Suspending ProvisioningState = "Suspending"
	// Updating ...
	Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

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

type Resource

type Resource struct {
	// ID - READ-ONLY; An identifier that represents the PowerBI Dedicated resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the PowerBI Dedicated resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the PowerBI Dedicated resource.
	Type *string `json:"type,omitempty"`
	// Location - Location of the PowerBI Dedicated resource.
	Location *string `json:"location,omitempty"`
	// Sku - The SKU of the PowerBI Dedicated resource.
	Sku *ResourceSku `json:"sku,omitempty"`
	// Tags - Key-value pairs of additional resource provisioning properties.
	Tags map[string]*string `json:"tags"`
}

Resource represents an instance of an PowerBI Dedicated resource.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceSku

type ResourceSku struct {
	// Name - Name of the SKU level.
	Name *string `json:"name,omitempty"`
	// Tier - The name of the Azure pricing tier to which the SKU applies. Possible values include: 'PBIEAzure'
	Tier SkuTier `json:"tier,omitempty"`
}

ResourceSku represents the SKU name and Azure pricing tier for PowerBI Dedicated resource.

type SkuDetailsForExistingResource

type SkuDetailsForExistingResource struct {
	// Sku - The SKU in SKU details for existing resources.
	Sku *ResourceSku `json:"sku,omitempty"`
}

SkuDetailsForExistingResource an object that represents SKU details for existing resources

type SkuEnumerationForExistingResourceResult

type SkuEnumerationForExistingResourceResult struct {
	autorest.Response `json:"-"`
	// Value - The collection of available SKUs for existing resources
	Value *[]SkuDetailsForExistingResource `json:"value,omitempty"`
}

SkuEnumerationForExistingResourceResult an object that represents enumerating SKUs for existing resources

type SkuEnumerationForNewResourceResult

type SkuEnumerationForNewResourceResult struct {
	autorest.Response `json:"-"`
	// Value - The collection of available SKUs for new resources
	Value *[]ResourceSku `json:"value,omitempty"`
}

SkuEnumerationForNewResourceResult an object that represents enumerating SKUs for new resources

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// PBIEAzure ...
	PBIEAzure SkuTier = "PBIE_Azure"
)

func PossibleSkuTierValues

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

type State

type State string

State enumerates the values for state.

const (
	// StateDeleting ...
	StateDeleting State = "Deleting"
	// StateFailed ...
	StateFailed State = "Failed"
	// StatePaused ...
	StatePaused State = "Paused"
	// StatePausing ...
	StatePausing State = "Pausing"
	// StatePreparing ...
	StatePreparing State = "Preparing"
	// StateProvisioning ...
	StateProvisioning State = "Provisioning"
	// StateResuming ...
	StateResuming State = "Resuming"
	// StateScaling ...
	StateScaling State = "Scaling"
	// StateSucceeded ...
	StateSucceeded State = "Succeeded"
	// StateSuspended ...
	StateSuspended State = "Suspended"
	// StateSuspending ...
	StateSuspending State = "Suspending"
	// StateUpdating ...
	StateUpdating State = "Updating"
)

func PossibleStateValues

func PossibleStateValues() []State

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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