configurationassignments

package
v0.20231121.1131003 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MPL-2.0 Imports: 9 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-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 := 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
}

Example Usage: ConfigurationAssignmentsClient.WithinSubscriptionList

ctx := context.TODO()
id := configurationassignments.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 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 ConfigurationAssignmentProperties

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

type ConfigurationAssignmentsClient

type ConfigurationAssignmentsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewConfigurationAssignmentsClientWithBaseURI

func NewConfigurationAssignmentsClientWithBaseURI(endpoint string) ConfigurationAssignmentsClient

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
	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 GetOperationResponse

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

type GetParentOperationResponse

type GetParentOperationResponse 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

type ScopedConfigurationAssignmentId struct {
	Scope                       string
	ConfigurationAssignmentName string
}

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) ID added in v0.20230714.1170806

ID returns the formatted Scoped Configuration Assignment ID

func (ScopedConfigurationAssignmentId) Segments added in v0.20230714.1170806

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

func (ScopedConfigurationAssignmentId) String added in v0.20230714.1170806

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

type WithinSubscriptionListOperationResponse

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

Jump to

Keyboard shortcuts

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