package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/patch
Documentation
The patch
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-sdk/resource-manager/datamigration/2021-06-30/patch"
Client Initialization
client := patch.NewPATCHClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: PATCHClient.FilesUpdate
ctx := context.TODO()
id := patch.NewFileID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue", "fileValue")
payload := patch.ProjectFile{
// ...
}
read, err := client.FilesUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: PATCHClient.ProjectsUpdate
ctx := context.TODO()
id := patch.NewProjectID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue")
payload := patch.Project{
// ...
}
read, err := client.ProjectsUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: PATCHClient.ServiceTasksUpdate
ctx := context.TODO()
id := patch.NewServiceTaskID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "serviceTaskValue")
payload := patch.ProjectTask{
// ...
}
read, err := client.ServiceTasksUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: PATCHClient.ServicesUpdate
ctx := context.TODO()
id := patch.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue")
payload := patch.DataMigrationService{
// ...
}
if err := client.ServicesUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: PATCHClient.TasksUpdate
ctx := context.TODO()
id := patch.NewTaskID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue", "taskValue")
payload := patch.ProjectTask{
// ...
}
read, err := client.TasksUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
# Functions
NewFileID returns a new FileId struct.
No description provided by the author
NewProjectID returns a new ProjectId struct.
NewServiceID returns a new ServiceId struct.
NewServiceTaskID returns a new ServiceTaskId struct.
NewTaskID returns a new TaskId struct.
ParseFileID parses 'input' into a FileId.
ParseFileIDInsensitively parses 'input' case-insensitively into a FileId note: this method should only be used for API response data and not user input.
ParseProjectID parses 'input' into a ProjectId.
ParseProjectIDInsensitively parses 'input' case-insensitively into a ProjectId note: this method should only be used for API response data and not user input.
ParseServiceID parses 'input' into a ServiceId.
ParseServiceIDInsensitively parses 'input' case-insensitively into a ServiceId note: this method should only be used for API response data and not user input.
ParseServiceTaskID parses 'input' into a ServiceTaskId.
ParseServiceTaskIDInsensitively parses 'input' case-insensitively into a ServiceTaskId note: this method should only be used for API response data and not user input.
ParseTaskID parses 'input' into a TaskId.
ParseTaskIDInsensitively parses 'input' case-insensitively into a TaskId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateFileID checks that 'input' can be parsed as a File ID.
ValidateProjectID checks that 'input' can be parsed as a Project ID.
ValidateServiceID checks that 'input' can be parsed as a Service ID.
ValidateServiceTaskID checks that 'input' can be parsed as a Service Task ID.
ValidateTaskID checks that 'input' can be parsed as a Task ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FileId is a struct representing the Resource ID for a File.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProjectId is a struct representing the Resource ID for a Project.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServiceId is a struct representing the Resource ID for a Service.
No description provided by the author
No description provided by the author
ServiceTaskId is a struct representing the Resource ID for a Service Task.
No description provided by the author
TaskId is a struct representing the Resource ID for a Task.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author