bicepclient

package
v0.20231215.1092747 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-11-01/bicepclient Documentation

The bicepclient SDK allows for interaction with the Azure Resource Manager Service resources (API Version 2023-11-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/resources/2023-11-01/bicepclient"

Client Initialization

client := bicepclient.NewBicepClientClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BicepClientClient.DecompileBicep

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

payload := bicepclient.DecompileOperationRequest{
	// ...
}


read, err := client.DecompileBicep(ctx, id, payload)
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

This section is empty.

Types

type BicepClientClient

type BicepClientClient struct {
	Client *resourcemanager.Client
}

func NewBicepClientClientWithBaseURI

func NewBicepClientClientWithBaseURI(sdkApi sdkEnv.Api) (*BicepClientClient, error)

func (BicepClientClient) DecompileBicep

DecompileBicep ...

type DecompileBicepOperationResponse

type DecompileBicepOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DecompileOperationSuccessResponse
}

type DecompileOperationRequest

type DecompileOperationRequest struct {
	Template string `json:"template"`
}

type DecompileOperationSuccessResponse

type DecompileOperationSuccessResponse struct {
	EntryPoint string           `json:"entryPoint"`
	Files      []FileDefinition `json:"files"`
}

type FileDefinition

type FileDefinition struct {
	Contents *string `json:"contents,omitempty"`
	Path     *string `json:"path,omitempty"`
}

Jump to

Keyboard shortcuts

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