README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2021-05-01/configurationassignments
Documentation
The configurationassignments
SDK allows for interaction with the Azure Resource Manager Service maintenance
(API Version 2021-05-01
).
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/maintenance/2021-05-01/configurationassignments"
Client Initialization
client := configurationassignments.NewConfigurationAssignmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ConfigurationAssignmentsClient.CreateOrUpdate
ctx := context.TODO()
id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue")
payload := configurationassignments.ConfigurationAssignment{
// ...
}
read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ConfigurationAssignmentsClient.CreateOrUpdateParent
ctx := context.TODO()
id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue")
payload := configurationassignments.ConfigurationAssignment{
// ...
}
read, err := client.CreateOrUpdateParent(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ConfigurationAssignmentsClient.Delete
ctx := context.TODO()
id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue")
read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ConfigurationAssignmentsClient.DeleteParent
ctx := context.TODO()
id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue")
read, err := client.DeleteParent(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ConfigurationAssignmentsClient.List
ctx := context.TODO()
id := configurationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")
read, err := client.List(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ConfigurationAssignmentsClient.ListParent
ctx := context.TODO()
id := configurationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")
read, err := client.ListParent(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func ValidateScopedConfigurationAssignmentID(input interface{}, key string) (warnings []string, errors []error)
- type ConfigurationAssignment
- type ConfigurationAssignmentProperties
- type ConfigurationAssignmentsClient
- func (c ConfigurationAssignmentsClient) CreateOrUpdate(ctx context.Context, id ScopedConfigurationAssignmentId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ConfigurationAssignmentsClient) CreateOrUpdateParent(ctx context.Context, id ScopedConfigurationAssignmentId, ...) (result CreateOrUpdateParentOperationResponse, err error)
- func (c ConfigurationAssignmentsClient) Delete(ctx context.Context, id ScopedConfigurationAssignmentId) (result DeleteOperationResponse, err error)
- func (c ConfigurationAssignmentsClient) DeleteParent(ctx context.Context, id ScopedConfigurationAssignmentId) (result DeleteParentOperationResponse, err error)
- func (c ConfigurationAssignmentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
- func (c ConfigurationAssignmentsClient) ListParent(ctx context.Context, id commonids.ScopeId) (result ListParentOperationResponse, err error)
- type CreateOrUpdateOperationResponse
- type CreateOrUpdateParentOperationResponse
- type DeleteOperationResponse
- type DeleteParentOperationResponse
- type ListConfigurationAssignmentsResult
- type ListOperationResponse
- type ListParentOperationResponse
- type ScopedConfigurationAssignmentId
- func NewScopedConfigurationAssignmentID(scope string, configurationAssignmentName string) ScopedConfigurationAssignmentId
- func ParseScopedConfigurationAssignmentID(input string) (*ScopedConfigurationAssignmentId, error)
- func ParseScopedConfigurationAssignmentIDInsensitively(input string) (*ScopedConfigurationAssignmentId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateScopedConfigurationAssignmentID ¶ added in v0.20230714.1170806
func ValidateScopedConfigurationAssignmentID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedConfigurationAssignmentID checks that 'input' can be parsed as a Scoped Configuration Assignment ID
Types ¶
type ConfigurationAssignment ¶
type ConfigurationAssignment struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ConfigurationAssignmentProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ConfigurationAssignmentsClient ¶
type ConfigurationAssignmentsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewConfigurationAssignmentsClientWithBaseURI ¶
func NewConfigurationAssignmentsClientWithBaseURI(endpoint string) ConfigurationAssignmentsClient
func (ConfigurationAssignmentsClient) CreateOrUpdate ¶
func (c ConfigurationAssignmentsClient) CreateOrUpdate(ctx context.Context, id ScopedConfigurationAssignmentId, input ConfigurationAssignment) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ConfigurationAssignmentsClient) CreateOrUpdateParent ¶
func (c ConfigurationAssignmentsClient) CreateOrUpdateParent(ctx context.Context, id ScopedConfigurationAssignmentId, input ConfigurationAssignment) (result CreateOrUpdateParentOperationResponse, err error)
CreateOrUpdateParent ...
func (ConfigurationAssignmentsClient) Delete ¶
func (c ConfigurationAssignmentsClient) Delete(ctx context.Context, id ScopedConfigurationAssignmentId) (result DeleteOperationResponse, err error)
Delete ...
func (ConfigurationAssignmentsClient) DeleteParent ¶
func (c ConfigurationAssignmentsClient) DeleteParent(ctx context.Context, id ScopedConfigurationAssignmentId) (result DeleteParentOperationResponse, err error)
DeleteParent ...
func (ConfigurationAssignmentsClient) List ¶
func (c ConfigurationAssignmentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (ConfigurationAssignmentsClient) ListParent ¶
func (c ConfigurationAssignmentsClient) ListParent(ctx context.Context, id commonids.ScopeId) (result ListParentOperationResponse, err error)
ListParent ...
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *ConfigurationAssignment }
type CreateOrUpdateParentOperationResponse ¶
type CreateOrUpdateParentOperationResponse struct { HttpResponse *http.Response Model *ConfigurationAssignment }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { HttpResponse *http.Response Model *ConfigurationAssignment }
type DeleteParentOperationResponse ¶
type DeleteParentOperationResponse struct { HttpResponse *http.Response Model *ConfigurationAssignment }
type ListConfigurationAssignmentsResult ¶
type ListConfigurationAssignmentsResult struct {
Value *[]ConfigurationAssignment `json:"value,omitempty"`
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *ListConfigurationAssignmentsResult }
type ListParentOperationResponse ¶
type ListParentOperationResponse struct { HttpResponse *http.Response Model *ListConfigurationAssignmentsResult }
type ScopedConfigurationAssignmentId ¶ added in v0.20230714.1170806
ScopedConfigurationAssignmentId is a struct representing the Resource ID for a Scoped Configuration Assignment
func NewScopedConfigurationAssignmentID ¶ added in v0.20230714.1170806
func NewScopedConfigurationAssignmentID(scope string, configurationAssignmentName string) ScopedConfigurationAssignmentId
NewScopedConfigurationAssignmentID returns a new ScopedConfigurationAssignmentId struct
func ParseScopedConfigurationAssignmentID ¶ added in v0.20230714.1170806
func ParseScopedConfigurationAssignmentID(input string) (*ScopedConfigurationAssignmentId, error)
ParseScopedConfigurationAssignmentID parses 'input' into a ScopedConfigurationAssignmentId
func ParseScopedConfigurationAssignmentIDInsensitively ¶ added in v0.20230714.1170806
func ParseScopedConfigurationAssignmentIDInsensitively(input string) (*ScopedConfigurationAssignmentId, error)
ParseScopedConfigurationAssignmentIDInsensitively parses 'input' case-insensitively into a ScopedConfigurationAssignmentId note: this method should only be used for API response data and not user input
func (*ScopedConfigurationAssignmentId) FromParseResult ¶ added in v0.20231127.1171502
func (id *ScopedConfigurationAssignmentId) FromParseResult(input resourceids.ParseResult) error
func (ScopedConfigurationAssignmentId) ID ¶ added in v0.20230714.1170806
func (id ScopedConfigurationAssignmentId) ID() string
ID returns the formatted Scoped Configuration Assignment ID
func (ScopedConfigurationAssignmentId) Segments ¶ added in v0.20230714.1170806
func (id ScopedConfigurationAssignmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Configuration Assignment ID
func (ScopedConfigurationAssignmentId) String ¶ added in v0.20230714.1170806
func (id ScopedConfigurationAssignmentId) String() string
String returns a human-readable description of this Scoped Configuration Assignment ID
Source Files ¶
- client.go
- id_scopedconfigurationassignment.go
- method_createorupdate_autorest.go
- method_createorupdateparent_autorest.go
- method_delete_autorest.go
- method_deleteparent_autorest.go
- method_list_autorest.go
- method_listparent_autorest.go
- model_configurationassignment.go
- model_configurationassignmentproperties.go
- model_listconfigurationassignmentsresult.go
- version.go