README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource
Documentation
The serviceresource
SDK allows for interaction with the Azure Resource Manager Service datamigration
(API Version 2021-06-30
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource"
Client Initialization
client := serviceresource.NewServiceResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ServiceResourceClient.ServiceTasksList
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
// alternatively `client.ServiceTasksList(ctx, id, serviceresource.DefaultServiceTasksListOperationOptions())` can be used to do batched pagination
items, err := client.ServiceTasksListComplete(ctx, id, serviceresource.DefaultServiceTasksListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ServiceResourceClient.ServicesCheckStatus
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
read, err := client.ServicesCheckStatus(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ServiceResourceClient.ServicesCreateOrUpdate
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
payload := serviceresource.DataMigrationService{
// ...
}
if err := client.ServicesCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ServiceResourceClient.ServicesDelete
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
if err := client.ServicesDeleteThenPoll(ctx, id, serviceresource.DefaultServicesDeleteOperationOptions()); err != nil {
// handle the error
}
Example Usage: ServiceResourceClient.ServicesGet
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
read, err := client.ServicesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ServiceResourceClient.ServicesList
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.ServicesList(ctx, id)` can be used to do batched pagination
items, err := client.ServicesListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ServiceResourceClient.ServicesListByResourceGroup
ctx := context.TODO()
id := serviceresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "resourceGroupValue")
// alternatively `client.ServicesListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ServicesListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ServiceResourceClient.ServicesListSkus
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
// alternatively `client.ServicesListSkus(ctx, id)` can be used to do batched pagination
items, err := client.ServicesListSkusComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ServiceResourceClient.ServicesStart
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
if err := client.ServicesStartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ServiceResourceClient.ServicesStop
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
if err := client.ServicesStopThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ServiceResourceClient.ServicesUpdate
ctx := context.TODO()
id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
payload := serviceresource.DataMigrationService{
// ...
}
if err := client.ServicesUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ServiceResourceClient.TasksList
ctx := context.TODO()
id := serviceresource.NewProjectID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue")
// alternatively `client.TasksList(ctx, id, serviceresource.DefaultTasksListOperationOptions())` can be used to do batched pagination
items, err := client.TasksListComplete(ctx, id, serviceresource.DefaultTasksListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForCommandState() []string
- func PossibleValuesForServiceProvisioningState() []string
- func PossibleValuesForServiceScalability() []string
- func PossibleValuesForTaskState() []string
- func ValidateProjectID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateResourceGroupID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type AvailableServiceSku
- type AvailableServiceSkuCapacity
- type AvailableServiceSkuOperationPredicate
- type AvailableServiceSkuSku
- type CommandProperties
- type CommandState
- type DataMigrationService
- type DataMigrationServiceOperationPredicate
- type DataMigrationServiceProperties
- type DataMigrationServiceStatusResponse
- type ODataError
- type ProjectId
- type ProjectTask
- type ProjectTaskOperationPredicate
- type ProjectTaskProperties
- type ResourceGroupId
- type ServiceId
- type ServiceProvisioningState
- type ServiceResourceClient
- func (c ServiceResourceClient) ServiceTasksList(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (result ServiceTasksListOperationResponse, err error)
- func (c ServiceResourceClient) ServiceTasksListComplete(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (ServiceTasksListCompleteResult, error)
- func (c ServiceResourceClient) ServiceTasksListCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions, ...) (result ServiceTasksListCompleteResult, err error)
- func (c ServiceResourceClient) ServicesCheckStatus(ctx context.Context, id ServiceId) (result ServicesCheckStatusOperationResponse, err error)
- func (c ServiceResourceClient) ServicesCreateOrUpdate(ctx context.Context, id ServiceId, input DataMigrationService) (result ServicesCreateOrUpdateOperationResponse, err error)
- func (c ServiceResourceClient) ServicesCreateOrUpdateThenPoll(ctx context.Context, id ServiceId, input DataMigrationService) error
- func (c ServiceResourceClient) ServicesDelete(ctx context.Context, id ServiceId, options ServicesDeleteOperationOptions) (result ServicesDeleteOperationResponse, err error)
- func (c ServiceResourceClient) ServicesDeleteThenPoll(ctx context.Context, id ServiceId, options ServicesDeleteOperationOptions) error
- func (c ServiceResourceClient) ServicesGet(ctx context.Context, id ServiceId) (result ServicesGetOperationResponse, err error)
- func (c ServiceResourceClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error)
- func (c ServiceResourceClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error)
- func (c ServiceResourceClient) ServicesListByResourceGroupComplete(ctx context.Context, id ResourceGroupId) (ServicesListByResourceGroupCompleteResult, error)
- func (c ServiceResourceClient) ServicesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ResourceGroupId, ...) (result ServicesListByResourceGroupCompleteResult, err error)
- func (c ServiceResourceClient) ServicesListComplete(ctx context.Context, id commonids.SubscriptionId) (ServicesListCompleteResult, error)
- func (c ServiceResourceClient) ServicesListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ServicesListCompleteResult, err error)
- func (c ServiceResourceClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error)
- func (c ServiceResourceClient) ServicesListSkusComplete(ctx context.Context, id ServiceId) (ServicesListSkusCompleteResult, error)
- func (c ServiceResourceClient) ServicesListSkusCompleteMatchingPredicate(ctx context.Context, id ServiceId, ...) (result ServicesListSkusCompleteResult, err error)
- func (c ServiceResourceClient) ServicesStart(ctx context.Context, id ServiceId) (result ServicesStartOperationResponse, err error)
- func (c ServiceResourceClient) ServicesStartThenPoll(ctx context.Context, id ServiceId) error
- func (c ServiceResourceClient) ServicesStop(ctx context.Context, id ServiceId) (result ServicesStopOperationResponse, err error)
- func (c ServiceResourceClient) ServicesStopThenPoll(ctx context.Context, id ServiceId) error
- func (c ServiceResourceClient) ServicesUpdate(ctx context.Context, id ServiceId, input DataMigrationService) (result ServicesUpdateOperationResponse, err error)
- func (c ServiceResourceClient) ServicesUpdateThenPoll(ctx context.Context, id ServiceId, input DataMigrationService) error
- func (c ServiceResourceClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error)
- func (c ServiceResourceClient) TasksListComplete(ctx context.Context, id ProjectId, options TasksListOperationOptions) (TasksListCompleteResult, error)
- func (c ServiceResourceClient) TasksListCompleteMatchingPredicate(ctx context.Context, id ProjectId, options TasksListOperationOptions, ...) (result TasksListCompleteResult, err error)
- type ServiceScalability
- type ServiceSku
- type ServiceTasksListCompleteResult
- type ServiceTasksListOperationOptions
- type ServiceTasksListOperationResponse
- type ServicesCheckStatusOperationResponse
- type ServicesCreateOrUpdateOperationResponse
- type ServicesDeleteOperationOptions
- type ServicesDeleteOperationResponse
- type ServicesGetOperationResponse
- type ServicesListByResourceGroupCompleteResult
- type ServicesListByResourceGroupOperationResponse
- type ServicesListCompleteResult
- type ServicesListOperationResponse
- type ServicesListSkusCompleteResult
- type ServicesListSkusOperationResponse
- type ServicesStartOperationResponse
- type ServicesStopOperationResponse
- type ServicesUpdateOperationResponse
- type TaskState
- type TasksListCompleteResult
- type TasksListOperationOptions
- type TasksListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCommandState ¶
func PossibleValuesForCommandState() []string
func PossibleValuesForServiceProvisioningState ¶
func PossibleValuesForServiceProvisioningState() []string
func PossibleValuesForServiceScalability ¶
func PossibleValuesForServiceScalability() []string
func PossibleValuesForTaskState ¶
func PossibleValuesForTaskState() []string
func ValidateProjectID ¶
ValidateProjectID checks that 'input' can be parsed as a Project ID
func ValidateResourceGroupID ¶
ValidateResourceGroupID checks that 'input' can be parsed as a Resource Group ID
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
Types ¶
type AvailableServiceSku ¶
type AvailableServiceSku struct { Capacity *AvailableServiceSkuCapacity `json:"capacity,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Sku *AvailableServiceSkuSku `json:"sku,omitempty"` }
type AvailableServiceSkuCapacity ¶
type AvailableServiceSkuCapacity struct { Default *int64 `json:"default,omitempty"` Maximum *int64 `json:"maximum,omitempty"` Minimum *int64 `json:"minimum,omitempty"` ScaleType *ServiceScalability `json:"scaleType,omitempty"` }
type AvailableServiceSkuOperationPredicate ¶
type AvailableServiceSkuOperationPredicate struct {
ResourceType *string
}
func (AvailableServiceSkuOperationPredicate) Matches ¶
func (p AvailableServiceSkuOperationPredicate) Matches(input AvailableServiceSku) bool
type AvailableServiceSkuSku ¶
type CommandProperties ¶
type CommandProperties struct { CommandType string `json:"commandType"` Errors *[]ODataError `json:"errors,omitempty"` State *CommandState `json:"state,omitempty"` }
type CommandState ¶
type CommandState string
const ( CommandStateAccepted CommandState = "Accepted" CommandStateFailed CommandState = "Failed" CommandStateRunning CommandState = "Running" CommandStateSucceeded CommandState = "Succeeded" CommandStateUnknown CommandState = "Unknown" )
func (*CommandState) UnmarshalJSON ¶
func (s *CommandState) UnmarshalJSON(bytes []byte) error
type DataMigrationService ¶
type DataMigrationService struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *DataMigrationServiceProperties `json:"properties,omitempty"` Sku *ServiceSku `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type DataMigrationServiceOperationPredicate ¶
type DataMigrationServiceOperationPredicate struct { Etag *string Id *string Kind *string Location *string Name *string Type *string }
func (DataMigrationServiceOperationPredicate) Matches ¶
func (p DataMigrationServiceOperationPredicate) Matches(input DataMigrationService) bool
type DataMigrationServiceProperties ¶
type DataMigrationServiceProperties struct { ProvisioningState *ServiceProvisioningState `json:"provisioningState,omitempty"` PublicKey *string `json:"publicKey,omitempty"` VirtualNicId *string `json:"virtualNicId,omitempty"` VirtualSubnetId string `json:"virtualSubnetId"` }
type ODataError ¶
type ODataError struct { Code *string `json:"code,omitempty"` Details *[]ODataError `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
type ProjectId ¶
type ProjectId struct { SubscriptionId string ResourceGroupName string ServiceName string ProjectName string }
ProjectId is a struct representing the Resource ID for a Project
func NewProjectID ¶
func NewProjectID(subscriptionId string, resourceGroupName string, serviceName string, projectName string) ProjectId
NewProjectID returns a new ProjectId struct
func ParseProjectID ¶
ParseProjectID parses 'input' into a ProjectId
func ParseProjectIDInsensitively ¶
ParseProjectIDInsensitively parses 'input' case-insensitively into a ProjectId note: this method should only be used for API response data and not user input
func (*ProjectId) FromParseResult ¶
func (id *ProjectId) FromParseResult(input resourceids.ParseResult) error
func (ProjectId) Segments ¶
func (id ProjectId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Project ID
type ProjectTask ¶
type ProjectTask struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ProjectTaskProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ProjectTaskOperationPredicate ¶
func (ProjectTaskOperationPredicate) Matches ¶
func (p ProjectTaskOperationPredicate) Matches(input ProjectTask) bool
type ProjectTaskProperties ¶
type ProjectTaskProperties struct { ClientData *map[string]string `json:"clientData,omitempty"` Commands *[]CommandProperties `json:"commands,omitempty"` Errors *[]ODataError `json:"errors,omitempty"` State *TaskState `json:"state,omitempty"` TaskType string `json:"taskType"` }
type ResourceGroupId ¶
ResourceGroupId is a struct representing the Resource ID for a Resource Group
func NewResourceGroupID ¶
func NewResourceGroupID(subscriptionId string, resourceGroupName string) ResourceGroupId
NewResourceGroupID returns a new ResourceGroupId struct
func ParseResourceGroupID ¶
func ParseResourceGroupID(input string) (*ResourceGroupId, error)
ParseResourceGroupID parses 'input' into a ResourceGroupId
func ParseResourceGroupIDInsensitively ¶
func ParseResourceGroupIDInsensitively(input string) (*ResourceGroupId, error)
ParseResourceGroupIDInsensitively parses 'input' case-insensitively into a ResourceGroupId note: this method should only be used for API response data and not user input
func (*ResourceGroupId) FromParseResult ¶
func (id *ResourceGroupId) FromParseResult(input resourceids.ParseResult) error
func (ResourceGroupId) ID ¶
func (id ResourceGroupId) ID() string
ID returns the formatted Resource Group ID
func (ResourceGroupId) Segments ¶
func (id ResourceGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Resource Group ID
func (ResourceGroupId) String ¶
func (id ResourceGroupId) String() string
String returns a human-readable description of this Resource Group ID
type ServiceId ¶
ServiceId is a struct representing the Resource ID for a Service
func NewServiceID ¶
NewServiceID returns a new ServiceId struct
func ParseServiceID ¶
ParseServiceID parses 'input' into a ServiceId
func ParseServiceIDInsensitively ¶
ParseServiceIDInsensitively parses 'input' case-insensitively into a ServiceId note: this method should only be used for API response data and not user input
func (*ServiceId) FromParseResult ¶
func (id *ServiceId) FromParseResult(input resourceids.ParseResult) error
func (ServiceId) Segments ¶
func (id ServiceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service ID
type ServiceProvisioningState ¶
type ServiceProvisioningState string
const ( ServiceProvisioningStateAccepted ServiceProvisioningState = "Accepted" ServiceProvisioningStateDeleting ServiceProvisioningState = "Deleting" ServiceProvisioningStateDeploying ServiceProvisioningState = "Deploying" ServiceProvisioningStateFailed ServiceProvisioningState = "Failed" ServiceProvisioningStateFailedToStart ServiceProvisioningState = "FailedToStart" ServiceProvisioningStateFailedToStop ServiceProvisioningState = "FailedToStop" ServiceProvisioningStateStarting ServiceProvisioningState = "Starting" ServiceProvisioningStateStopped ServiceProvisioningState = "Stopped" ServiceProvisioningStateStopping ServiceProvisioningState = "Stopping" ServiceProvisioningStateSucceeded ServiceProvisioningState = "Succeeded" )
func (*ServiceProvisioningState) UnmarshalJSON ¶
func (s *ServiceProvisioningState) UnmarshalJSON(bytes []byte) error
type ServiceResourceClient ¶
type ServiceResourceClient struct {
Client *resourcemanager.Client
}
func NewServiceResourceClientWithBaseURI ¶
func NewServiceResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceResourceClient, error)
func (ServiceResourceClient) ServiceTasksList ¶
func (c ServiceResourceClient) ServiceTasksList(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (result ServiceTasksListOperationResponse, err error)
ServiceTasksList ...
func (ServiceResourceClient) ServiceTasksListComplete ¶
func (c ServiceResourceClient) ServiceTasksListComplete(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (ServiceTasksListCompleteResult, error)
ServiceTasksListComplete retrieves all the results into a single object
func (ServiceResourceClient) ServiceTasksListCompleteMatchingPredicate ¶
func (c ServiceResourceClient) ServiceTasksListCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions, predicate ProjectTaskOperationPredicate) (result ServiceTasksListCompleteResult, err error)
ServiceTasksListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServiceResourceClient) ServicesCheckStatus ¶
func (c ServiceResourceClient) ServicesCheckStatus(ctx context.Context, id ServiceId) (result ServicesCheckStatusOperationResponse, err error)
ServicesCheckStatus ...
func (ServiceResourceClient) ServicesCreateOrUpdate ¶
func (c ServiceResourceClient) ServicesCreateOrUpdate(ctx context.Context, id ServiceId, input DataMigrationService) (result ServicesCreateOrUpdateOperationResponse, err error)
ServicesCreateOrUpdate ...
func (ServiceResourceClient) ServicesCreateOrUpdateThenPoll ¶
func (c ServiceResourceClient) ServicesCreateOrUpdateThenPoll(ctx context.Context, id ServiceId, input DataMigrationService) error
ServicesCreateOrUpdateThenPoll performs ServicesCreateOrUpdate then polls until it's completed
func (ServiceResourceClient) ServicesDelete ¶
func (c ServiceResourceClient) ServicesDelete(ctx context.Context, id ServiceId, options ServicesDeleteOperationOptions) (result ServicesDeleteOperationResponse, err error)
ServicesDelete ...
func (ServiceResourceClient) ServicesDeleteThenPoll ¶
func (c ServiceResourceClient) ServicesDeleteThenPoll(ctx context.Context, id ServiceId, options ServicesDeleteOperationOptions) error
ServicesDeleteThenPoll performs ServicesDelete then polls until it's completed
func (ServiceResourceClient) ServicesGet ¶
func (c ServiceResourceClient) ServicesGet(ctx context.Context, id ServiceId) (result ServicesGetOperationResponse, err error)
ServicesGet ...
func (ServiceResourceClient) ServicesList ¶
func (c ServiceResourceClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error)
ServicesList ...
func (ServiceResourceClient) ServicesListByResourceGroup ¶
func (c ServiceResourceClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error)
ServicesListByResourceGroup ...
func (ServiceResourceClient) ServicesListByResourceGroupComplete ¶
func (c ServiceResourceClient) ServicesListByResourceGroupComplete(ctx context.Context, id ResourceGroupId) (ServicesListByResourceGroupCompleteResult, error)
ServicesListByResourceGroupComplete retrieves all the results into a single object
func (ServiceResourceClient) ServicesListByResourceGroupCompleteMatchingPredicate ¶
func (c ServiceResourceClient) ServicesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ResourceGroupId, predicate DataMigrationServiceOperationPredicate) (result ServicesListByResourceGroupCompleteResult, err error)
ServicesListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServiceResourceClient) ServicesListComplete ¶
func (c ServiceResourceClient) ServicesListComplete(ctx context.Context, id commonids.SubscriptionId) (ServicesListCompleteResult, error)
ServicesListComplete retrieves all the results into a single object
func (ServiceResourceClient) ServicesListCompleteMatchingPredicate ¶
func (c ServiceResourceClient) ServicesListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DataMigrationServiceOperationPredicate) (result ServicesListCompleteResult, err error)
ServicesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServiceResourceClient) ServicesListSkus ¶
func (c ServiceResourceClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error)
ServicesListSkus ...
func (ServiceResourceClient) ServicesListSkusComplete ¶
func (c ServiceResourceClient) ServicesListSkusComplete(ctx context.Context, id ServiceId) (ServicesListSkusCompleteResult, error)
ServicesListSkusComplete retrieves all the results into a single object
func (ServiceResourceClient) ServicesListSkusCompleteMatchingPredicate ¶
func (c ServiceResourceClient) ServicesListSkusCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate AvailableServiceSkuOperationPredicate) (result ServicesListSkusCompleteResult, err error)
ServicesListSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServiceResourceClient) ServicesStart ¶
func (c ServiceResourceClient) ServicesStart(ctx context.Context, id ServiceId) (result ServicesStartOperationResponse, err error)
ServicesStart ...
func (ServiceResourceClient) ServicesStartThenPoll ¶
func (c ServiceResourceClient) ServicesStartThenPoll(ctx context.Context, id ServiceId) error
ServicesStartThenPoll performs ServicesStart then polls until it's completed
func (ServiceResourceClient) ServicesStop ¶
func (c ServiceResourceClient) ServicesStop(ctx context.Context, id ServiceId) (result ServicesStopOperationResponse, err error)
ServicesStop ...
func (ServiceResourceClient) ServicesStopThenPoll ¶
func (c ServiceResourceClient) ServicesStopThenPoll(ctx context.Context, id ServiceId) error
ServicesStopThenPoll performs ServicesStop then polls until it's completed
func (ServiceResourceClient) ServicesUpdate ¶
func (c ServiceResourceClient) ServicesUpdate(ctx context.Context, id ServiceId, input DataMigrationService) (result ServicesUpdateOperationResponse, err error)
ServicesUpdate ...
func (ServiceResourceClient) ServicesUpdateThenPoll ¶
func (c ServiceResourceClient) ServicesUpdateThenPoll(ctx context.Context, id ServiceId, input DataMigrationService) error
ServicesUpdateThenPoll performs ServicesUpdate then polls until it's completed
func (ServiceResourceClient) TasksList ¶
func (c ServiceResourceClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error)
TasksList ...
func (ServiceResourceClient) TasksListComplete ¶
func (c ServiceResourceClient) TasksListComplete(ctx context.Context, id ProjectId, options TasksListOperationOptions) (TasksListCompleteResult, error)
TasksListComplete retrieves all the results into a single object
func (ServiceResourceClient) TasksListCompleteMatchingPredicate ¶
func (c ServiceResourceClient) TasksListCompleteMatchingPredicate(ctx context.Context, id ProjectId, options TasksListOperationOptions, predicate ProjectTaskOperationPredicate) (result TasksListCompleteResult, err error)
TasksListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ServiceScalability ¶
type ServiceScalability string
const ( ServiceScalabilityAutomatic ServiceScalability = "automatic" ServiceScalabilityManual ServiceScalability = "manual" ServiceScalabilityNone ServiceScalability = "none" )
func (*ServiceScalability) UnmarshalJSON ¶
func (s *ServiceScalability) UnmarshalJSON(bytes []byte) error
type ServiceSku ¶
type ServiceTasksListCompleteResult ¶
type ServiceTasksListCompleteResult struct { LatestHttpResponse *http.Response Items []ProjectTask }
type ServiceTasksListOperationOptions ¶
type ServiceTasksListOperationOptions struct {
TaskType *string
}
func DefaultServiceTasksListOperationOptions ¶
func DefaultServiceTasksListOperationOptions() ServiceTasksListOperationOptions
func (ServiceTasksListOperationOptions) ToHeaders ¶
func (o ServiceTasksListOperationOptions) ToHeaders() *client.Headers
func (ServiceTasksListOperationOptions) ToOData ¶
func (o ServiceTasksListOperationOptions) ToOData() *odata.Query
func (ServiceTasksListOperationOptions) ToQuery ¶
func (o ServiceTasksListOperationOptions) ToQuery() *client.QueryParams
type ServiceTasksListOperationResponse ¶
type ServiceTasksListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ProjectTask }
type ServicesCheckStatusOperationResponse ¶
type ServicesCheckStatusOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DataMigrationServiceStatusResponse }
type ServicesDeleteOperationOptions ¶
type ServicesDeleteOperationOptions struct {
DeleteRunningTasks *bool
}
func DefaultServicesDeleteOperationOptions ¶
func DefaultServicesDeleteOperationOptions() ServicesDeleteOperationOptions
func (ServicesDeleteOperationOptions) ToHeaders ¶
func (o ServicesDeleteOperationOptions) ToHeaders() *client.Headers
func (ServicesDeleteOperationOptions) ToOData ¶
func (o ServicesDeleteOperationOptions) ToOData() *odata.Query
func (ServicesDeleteOperationOptions) ToQuery ¶
func (o ServicesDeleteOperationOptions) ToQuery() *client.QueryParams
type ServicesGetOperationResponse ¶
type ServicesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DataMigrationService }
type ServicesListByResourceGroupCompleteResult ¶
type ServicesListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []DataMigrationService }
type ServicesListByResourceGroupOperationResponse ¶
type ServicesListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DataMigrationService }
type ServicesListCompleteResult ¶
type ServicesListCompleteResult struct { LatestHttpResponse *http.Response Items []DataMigrationService }
type ServicesListOperationResponse ¶
type ServicesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DataMigrationService }
type ServicesListSkusCompleteResult ¶
type ServicesListSkusCompleteResult struct { LatestHttpResponse *http.Response Items []AvailableServiceSku }
type ServicesListSkusOperationResponse ¶
type ServicesListSkusOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AvailableServiceSku }
type TaskState ¶
type TaskState string
const ( TaskStateCanceled TaskState = "Canceled" TaskStateFailed TaskState = "Failed" TaskStateFailedInputValidation TaskState = "FailedInputValidation" TaskStateFaulted TaskState = "Faulted" TaskStateQueued TaskState = "Queued" TaskStateRunning TaskState = "Running" TaskStateSucceeded TaskState = "Succeeded" TaskStateUnknown TaskState = "Unknown" )
func (*TaskState) UnmarshalJSON ¶
type TasksListCompleteResult ¶
type TasksListCompleteResult struct { LatestHttpResponse *http.Response Items []ProjectTask }
type TasksListOperationOptions ¶
type TasksListOperationOptions struct {
TaskType *string
}
func DefaultTasksListOperationOptions ¶
func DefaultTasksListOperationOptions() TasksListOperationOptions
func (TasksListOperationOptions) ToHeaders ¶
func (o TasksListOperationOptions) ToHeaders() *client.Headers
func (TasksListOperationOptions) ToOData ¶
func (o TasksListOperationOptions) ToOData() *odata.Query
func (TasksListOperationOptions) ToQuery ¶
func (o TasksListOperationOptions) ToQuery() *client.QueryParams
type TasksListOperationResponse ¶
type TasksListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ProjectTask }
Source Files ¶
- client.go
- constants.go
- id_project.go
- id_resourcegroup.go
- id_service.go
- method_servicescheckstatus.go
- method_servicescreateorupdate.go
- method_servicesdelete.go
- method_servicesget.go
- method_serviceslist.go
- method_serviceslistbyresourcegroup.go
- method_serviceslistskus.go
- method_servicesstart.go
- method_servicesstop.go
- method_servicesupdate.go
- method_servicetaskslist.go
- method_taskslist.go
- model_availableservicesku.go
- model_availableserviceskucapacity.go
- model_availableserviceskusku.go
- model_commandproperties.go
- model_datamigrationservice.go
- model_datamigrationserviceproperties.go
- model_datamigrationservicestatusresponse.go
- model_odataerror.go
- model_projecttask.go
- model_projecttaskproperties.go
- model_servicesku.go
- predicates.go
- version.go