README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution
Documentation
The solution
SDK allows for interaction with the Azure Resource Manager Service operationsmanagement
(API Version 2015-11-01-preview
).
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/operationsmanagement/2015-11-01-preview/solution"
Client Initialization
client := solution.NewSolutionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SolutionClient.CreateOrUpdate
ctx := context.TODO()
id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue")
payload := solution.Solution{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: SolutionClient.Delete
ctx := context.TODO()
id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: SolutionClient.Get
ctx := context.TODO()
id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: SolutionClient.ListByResourceGroup
ctx := context.TODO()
id := solution.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
read, err := client.ListByResourceGroup(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: SolutionClient.ListBySubscription
ctx := context.TODO()
id := solution.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
read, err := client.ListBySubscription(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: SolutionClient.Update
ctx := context.TODO()
id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue")
payload := solution.SolutionPatch{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func ValidateSolutionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionOperationResponse
- type Solution
- type SolutionClient
- func (c SolutionClient) CreateOrUpdate(ctx context.Context, id SolutionId, input Solution) (result CreateOrUpdateOperationResponse, err error)
- func (c SolutionClient) CreateOrUpdateThenPoll(ctx context.Context, id SolutionId, input Solution) error
- func (c SolutionClient) Delete(ctx context.Context, id SolutionId) (result DeleteOperationResponse, err error)
- func (c SolutionClient) DeleteThenPoll(ctx context.Context, id SolutionId) error
- func (c SolutionClient) Get(ctx context.Context, id SolutionId) (result GetOperationResponse, err error)
- func (c SolutionClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c SolutionClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c SolutionClient) Update(ctx context.Context, id SolutionId, input SolutionPatch) (result UpdateOperationResponse, err error)
- func (c SolutionClient) UpdateThenPoll(ctx context.Context, id SolutionId, input SolutionPatch) error
- type SolutionId
- type SolutionPatch
- type SolutionPlan
- type SolutionProperties
- type SolutionPropertiesList
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateSolutionID ¶
ValidateSolutionID checks that 'input' can be parsed as a Solution ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *SolutionPropertiesList }
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *SolutionPropertiesList }
type Solution ¶
type Solution struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Plan *SolutionPlan `json:"plan,omitempty"` Properties *SolutionProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type SolutionClient ¶
func NewSolutionClientWithBaseURI ¶
func NewSolutionClientWithBaseURI(endpoint string) SolutionClient
func (SolutionClient) CreateOrUpdate ¶
func (c SolutionClient) CreateOrUpdate(ctx context.Context, id SolutionId, input Solution) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (SolutionClient) CreateOrUpdateThenPoll ¶
func (c SolutionClient) CreateOrUpdateThenPoll(ctx context.Context, id SolutionId, input Solution) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (SolutionClient) Delete ¶
func (c SolutionClient) Delete(ctx context.Context, id SolutionId) (result DeleteOperationResponse, err error)
Delete ...
func (SolutionClient) DeleteThenPoll ¶
func (c SolutionClient) DeleteThenPoll(ctx context.Context, id SolutionId) error
DeleteThenPoll performs Delete then polls until it's completed
func (SolutionClient) Get ¶
func (c SolutionClient) Get(ctx context.Context, id SolutionId) (result GetOperationResponse, err error)
Get ...
func (SolutionClient) ListByResourceGroup ¶
func (c SolutionClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (SolutionClient) ListBySubscription ¶
func (c SolutionClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (SolutionClient) Update ¶
func (c SolutionClient) Update(ctx context.Context, id SolutionId, input SolutionPatch) (result UpdateOperationResponse, err error)
Update ...
func (SolutionClient) UpdateThenPoll ¶
func (c SolutionClient) UpdateThenPoll(ctx context.Context, id SolutionId, input SolutionPatch) error
UpdateThenPoll performs Update then polls until it's completed
type SolutionId ¶
SolutionId is a struct representing the Resource ID for a Solution
func NewSolutionID ¶
func NewSolutionID(subscriptionId string, resourceGroupName string, solutionName string) SolutionId
NewSolutionID returns a new SolutionId struct
func ParseSolutionID ¶
func ParseSolutionID(input string) (*SolutionId, error)
ParseSolutionID parses 'input' into a SolutionId
func ParseSolutionIDInsensitively ¶
func ParseSolutionIDInsensitively(input string) (*SolutionId, error)
ParseSolutionIDInsensitively parses 'input' case-insensitively into a SolutionId note: this method should only be used for API response data and not user input
func (SolutionId) Segments ¶
func (id SolutionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Solution ID
func (SolutionId) String ¶
func (id SolutionId) String() string
String returns a human-readable description of this Solution ID
type SolutionPatch ¶
type SolutionPlan ¶
type SolutionProperties ¶
type SolutionPropertiesList ¶
type SolutionPropertiesList struct {
Value *[]Solution `json:"value,omitempty"`
}
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
Source Files ¶
- client.go
- id_solution.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyresourcegroup_autorest.go
- method_listbysubscription_autorest.go
- method_update_autorest.go
- model_solution.go
- model_solutionpatch.go
- model_solutionplan.go
- model_solutionproperties.go
- model_solutionpropertieslist.go
- version.go