configurationassignments

package
v0.20240227.1172434 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/configurationassignments Documentation

The configurationassignments SDK allows for interaction with the Azure Resource Manager Service maintenance (API Version 2022-07-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/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.Get

ctx := context.TODO()
id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue")

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: ConfigurationAssignmentsClient.GetParent

ctx := context.TODO()
id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue")

read, err := client.GetParent(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 := commonids.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 := commonids.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
}

Example Usage: ConfigurationAssignmentsClient.WithinSubscriptionList

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.WithinSubscriptionList(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateScopedConfigurationAssignmentID

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 ConfigurationAssignmentProperties

type ConfigurationAssignmentProperties struct {
	MaintenanceConfigurationId *string `json:"maintenanceConfigurationId,omitempty"`
	ResourceId                 *string `json:"resourceId,omitempty"`
}

type ConfigurationAssignmentsClient

type ConfigurationAssignmentsClient struct {
	Client *resourcemanager.Client
}

func NewConfigurationAssignmentsClientWithBaseURI

func NewConfigurationAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationAssignmentsClient, error)

func (ConfigurationAssignmentsClient) CreateOrUpdate

CreateOrUpdate ...

func (ConfigurationAssignmentsClient) CreateOrUpdateParent

CreateOrUpdateParent ...

func (ConfigurationAssignmentsClient) Delete

Delete ...

func (ConfigurationAssignmentsClient) DeleteParent

DeleteParent ...

func (ConfigurationAssignmentsClient) Get

Get ...

func (ConfigurationAssignmentsClient) GetParent

GetParent ...

func (ConfigurationAssignmentsClient) List

List ...

func (ConfigurationAssignmentsClient) ListParent

ListParent ...

func (ConfigurationAssignmentsClient) WithinSubscriptionList

WithinSubscriptionList ...

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationAssignment
}

type CreateOrUpdateParentOperationResponse

type CreateOrUpdateParentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationAssignment
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationAssignment
}

type DeleteParentOperationResponse

type DeleteParentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationAssignment
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationAssignment
}

type GetParentOperationResponse

type GetParentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationAssignment
}

type ListConfigurationAssignmentsResult

type ListConfigurationAssignmentsResult struct {
	Value *[]ConfigurationAssignment `json:"value,omitempty"`
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListConfigurationAssignmentsResult
}

type ListParentOperationResponse

type ListParentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListConfigurationAssignmentsResult
}

type ScopedConfigurationAssignmentId

type ScopedConfigurationAssignmentId struct {
	Scope                       string
	ConfigurationAssignmentName string
}

ScopedConfigurationAssignmentId is a struct representing the Resource ID for a Scoped Configuration Assignment

func NewScopedConfigurationAssignmentID

func NewScopedConfigurationAssignmentID(scope string, configurationAssignmentName string) ScopedConfigurationAssignmentId

NewScopedConfigurationAssignmentID returns a new ScopedConfigurationAssignmentId struct

func ParseScopedConfigurationAssignmentID

func ParseScopedConfigurationAssignmentID(input string) (*ScopedConfigurationAssignmentId, error)

ParseScopedConfigurationAssignmentID parses 'input' into a ScopedConfigurationAssignmentId

func ParseScopedConfigurationAssignmentIDInsensitively

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

func (id *ScopedConfigurationAssignmentId) FromParseResult(input resourceids.ParseResult) error

func (ScopedConfigurationAssignmentId) ID

ID returns the formatted Scoped Configuration Assignment ID

func (ScopedConfigurationAssignmentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Scoped Configuration Assignment ID

func (ScopedConfigurationAssignmentId) String

String returns a human-readable description of this Scoped Configuration Assignment ID

type WithinSubscriptionListOperationResponse

type WithinSubscriptionListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListConfigurationAssignmentsResult
}

Jump to

Keyboard shortcuts

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