package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# README

github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/dotnetcomponents Documentation

The dotnetcomponents SDK allows for interaction with the Azure Resource Manager Service containerapps (API Version 2024-02-02-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/containerapps/2024-02-02-preview/dotnetcomponents"

Client Initialization

client := dotnetcomponents.NewDotNetComponentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DotNetComponentsClient.CreateOrUpdate

ctx := context.TODO()
id := dotnetcomponents.NewDotNetComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "dotNetComponentValue")

payload := dotnetcomponents.DotNetComponent{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: DotNetComponentsClient.Delete

ctx := context.TODO()
id := dotnetcomponents.NewDotNetComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "dotNetComponentValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: DotNetComponentsClient.Get

ctx := context.TODO()
id := dotnetcomponents.NewDotNetComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "dotNetComponentValue")

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: DotNetComponentsClient.List

ctx := context.TODO()
id := dotnetcomponents.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DotNetComponentsClient.Update

ctx := context.TODO()
id := dotnetcomponents.NewDotNetComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "dotNetComponentValue")

payload := dotnetcomponents.DotNetComponent{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

# Functions

NewDotNetComponentID returns a new DotNetComponentId struct.
No description provided by the author
NewManagedEnvironmentID returns a new ManagedEnvironmentId struct.
ParseDotNetComponentID parses 'input' into a DotNetComponentId.
ParseDotNetComponentIDInsensitively parses 'input' case-insensitively into a DotNetComponentId note: this method should only be used for API response data and not user input.
ParseManagedEnvironmentID parses 'input' into a ManagedEnvironmentId.
ParseManagedEnvironmentIDInsensitively parses 'input' case-insensitively into a ManagedEnvironmentId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
ValidateDotNetComponentID checks that 'input' can be parsed as a Dot Net Component ID.
ValidateManagedEnvironmentID checks that 'input' can be parsed as a Managed Environment ID.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DotNetComponentId is a struct representing the Resource ID for a Dot Net Component.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ManagedEnvironmentId is a struct representing the Resource ID for a Managed Environment.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author