configurationassignments

package
v0.20230503.1084929 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

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.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue", "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.NewProviders2ConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceParentTypeValue", "resourceParentValue", "resourceTypeValue", "resourceValue", "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.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue", "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.NewProviders2ConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceParentTypeValue", "resourceParentValue", "resourceTypeValue", "resourceValue", "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.NewProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue")

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.NewResourceGroupProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceParentTypeValue", "resourceParentValue", "resourceTypeValue", "resourceValue")

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfigurationAssignmentID

func ValidateConfigurationAssignmentID(input interface{}, key string) (warnings []string, errors []error)

ValidateConfigurationAssignmentID checks that 'input' can be parsed as a Configuration Assignment ID

func ValidateProviderID

func ValidateProviderID(input interface{}, key string) (warnings []string, errors []error)

ValidateProviderID checks that 'input' can be parsed as a Provider ID

func ValidateProviders2ConfigurationAssignmentID

func ValidateProviders2ConfigurationAssignmentID(input interface{}, key string) (warnings []string, errors []error)

ValidateProviders2ConfigurationAssignmentID checks that 'input' can be parsed as a Providers 2 Configuration Assignment ID

func ValidateResourceGroupProviderID

func ValidateResourceGroupProviderID(input interface{}, key string) (warnings []string, errors []error)

ValidateResourceGroupProviderID checks that 'input' can be parsed as a Resource Group Provider 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 ConfigurationAssignmentId

type ConfigurationAssignmentId struct {
	SubscriptionId              string
	ResourceGroupName           string
	ProviderName                string
	ResourceType                string
	ResourceName                string
	ConfigurationAssignmentName string
}

ConfigurationAssignmentId is a struct representing the Resource ID for a Configuration Assignment

func NewConfigurationAssignmentID

func NewConfigurationAssignmentID(subscriptionId string, resourceGroupName string, providerName string, resourceType string, resourceName string, configurationAssignmentName string) ConfigurationAssignmentId

NewConfigurationAssignmentID returns a new ConfigurationAssignmentId struct

func ParseConfigurationAssignmentID

func ParseConfigurationAssignmentID(input string) (*ConfigurationAssignmentId, error)

ParseConfigurationAssignmentID parses 'input' into a ConfigurationAssignmentId

func ParseConfigurationAssignmentIDInsensitively

func ParseConfigurationAssignmentIDInsensitively(input string) (*ConfigurationAssignmentId, error)

ParseConfigurationAssignmentIDInsensitively parses 'input' case-insensitively into a ConfigurationAssignmentId note: this method should only be used for API response data and not user input

func (ConfigurationAssignmentId) ID

ID returns the formatted Configuration Assignment ID

func (ConfigurationAssignmentId) Segments

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

func (ConfigurationAssignmentId) String

func (id ConfigurationAssignmentId) String() string

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

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) List

List ...

func (ConfigurationAssignmentsClient) ListParent

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 ProviderId

type ProviderId struct {
	SubscriptionId    string
	ResourceGroupName string
	ProviderName      string
	ResourceType      string
	ResourceName      string
}

ProviderId is a struct representing the Resource ID for a Provider

func NewProviderID

func NewProviderID(subscriptionId string, resourceGroupName string, providerName string, resourceType string, resourceName string) ProviderId

NewProviderID returns a new ProviderId struct

func ParseProviderID

func ParseProviderID(input string) (*ProviderId, error)

ParseProviderID parses 'input' into a ProviderId

func ParseProviderIDInsensitively

func ParseProviderIDInsensitively(input string) (*ProviderId, error)

ParseProviderIDInsensitively parses 'input' case-insensitively into a ProviderId note: this method should only be used for API response data and not user input

func (ProviderId) ID

func (id ProviderId) ID() string

ID returns the formatted Provider ID

func (ProviderId) Segments

func (id ProviderId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Provider ID

func (ProviderId) String

func (id ProviderId) String() string

String returns a human-readable description of this Provider ID

type Providers2ConfigurationAssignmentId

type Providers2ConfigurationAssignmentId struct {
	SubscriptionId              string
	ResourceGroupName           string
	ProviderName                string
	ResourceParentType          string
	ResourceParentName          string
	ResourceType                string
	ResourceName                string
	ConfigurationAssignmentName string
}

Providers2ConfigurationAssignmentId is a struct representing the Resource ID for a Providers 2 Configuration Assignment

func NewProviders2ConfigurationAssignmentID

func NewProviders2ConfigurationAssignmentID(subscriptionId string, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string, configurationAssignmentName string) Providers2ConfigurationAssignmentId

NewProviders2ConfigurationAssignmentID returns a new Providers2ConfigurationAssignmentId struct

func ParseProviders2ConfigurationAssignmentID

func ParseProviders2ConfigurationAssignmentID(input string) (*Providers2ConfigurationAssignmentId, error)

ParseProviders2ConfigurationAssignmentID parses 'input' into a Providers2ConfigurationAssignmentId

func ParseProviders2ConfigurationAssignmentIDInsensitively

func ParseProviders2ConfigurationAssignmentIDInsensitively(input string) (*Providers2ConfigurationAssignmentId, error)

ParseProviders2ConfigurationAssignmentIDInsensitively parses 'input' case-insensitively into a Providers2ConfigurationAssignmentId note: this method should only be used for API response data and not user input

func (Providers2ConfigurationAssignmentId) ID

ID returns the formatted Providers 2 Configuration Assignment ID

func (Providers2ConfigurationAssignmentId) Segments

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

func (Providers2ConfigurationAssignmentId) String

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

type ResourceGroupProviderId

type ResourceGroupProviderId struct {
	SubscriptionId     string
	ResourceGroupName  string
	ProviderName       string
	ResourceParentType string
	ResourceParentName string
	ResourceType       string
	ResourceName       string
}

ResourceGroupProviderId is a struct representing the Resource ID for a Resource Group Provider

func NewResourceGroupProviderID

func NewResourceGroupProviderID(subscriptionId string, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) ResourceGroupProviderId

NewResourceGroupProviderID returns a new ResourceGroupProviderId struct

func ParseResourceGroupProviderID

func ParseResourceGroupProviderID(input string) (*ResourceGroupProviderId, error)

ParseResourceGroupProviderID parses 'input' into a ResourceGroupProviderId

func ParseResourceGroupProviderIDInsensitively

func ParseResourceGroupProviderIDInsensitively(input string) (*ResourceGroupProviderId, error)

ParseResourceGroupProviderIDInsensitively parses 'input' case-insensitively into a ResourceGroupProviderId note: this method should only be used for API response data and not user input

func (ResourceGroupProviderId) ID

ID returns the formatted Resource Group Provider ID

func (ResourceGroupProviderId) Segments

Segments returns a slice of Resource ID Segments which comprise this Resource Group Provider ID

func (ResourceGroupProviderId) String

func (id ResourceGroupProviderId) String() string

String returns a human-readable description of this Resource Group Provider ID

Jump to

Keyboard shortcuts

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