extensions

package
v0.20240903.1111904 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions Documentation

The extensions SDK allows for interaction with the Azure Resource Manager Service hdinsight (API Version 2021-06-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions"

Client Initialization

client := extensions.NewExtensionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ExtensionsClient.Create

ctx := context.TODO()
id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "extensionValue")

payload := extensions.Extension{
	// ...
}


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

Example Usage: ExtensionsClient.Delete

ctx := context.TODO()
id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "extensionValue")

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

Example Usage: ExtensionsClient.DisableAzureMonitor

ctx := context.TODO()
id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

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

Example Usage: ExtensionsClient.DisableMonitoring

ctx := context.TODO()
id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

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

Example Usage: ExtensionsClient.EnableAzureMonitor

ctx := context.TODO()
id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

payload := extensions.AzureMonitorRequest{
	// ...
}


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

Example Usage: ExtensionsClient.EnableMonitoring

ctx := context.TODO()
id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

payload := extensions.ClusterMonitoringRequest{
	// ...
}


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

Example Usage: ExtensionsClient.Get

ctx := context.TODO()
id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "extensionValue")

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: ExtensionsClient.GetAzureMonitorStatus

ctx := context.TODO()
id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

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

Example Usage: ExtensionsClient.GetMonitoringStatus

ctx := context.TODO()
id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

read, err := client.GetMonitoringStatus(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 ValidateExtensionID

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

ValidateExtensionID checks that 'input' can be parsed as a Extension ID

Types

type AzureMonitorRequest

type AzureMonitorRequest struct {
	PrimaryKey             *string                             `json:"primaryKey,omitempty"`
	SelectedConfigurations *AzureMonitorSelectedConfigurations `json:"selectedConfigurations,omitempty"`
	WorkspaceId            *string                             `json:"workspaceId,omitempty"`
}

type AzureMonitorResponse

type AzureMonitorResponse struct {
	ClusterMonitoringEnabled *bool                               `json:"clusterMonitoringEnabled,omitempty"`
	SelectedConfigurations   *AzureMonitorSelectedConfigurations `json:"selectedConfigurations,omitempty"`
	WorkspaceId              *string                             `json:"workspaceId,omitempty"`
}

type AzureMonitorSelectedConfigurations

type AzureMonitorSelectedConfigurations struct {
	ConfigurationVersion *string                           `json:"configurationVersion,omitempty"`
	GlobalConfigurations *map[string]string                `json:"globalConfigurations,omitempty"`
	TableList            *[]AzureMonitorTableConfiguration `json:"tableList,omitempty"`
}

type AzureMonitorTableConfiguration

type AzureMonitorTableConfiguration struct {
	Name *string `json:"name,omitempty"`
}

type ClusterMonitoringRequest

type ClusterMonitoringRequest struct {
	PrimaryKey  *string `json:"primaryKey,omitempty"`
	WorkspaceId *string `json:"workspaceId,omitempty"`
}

type ClusterMonitoringResponse

type ClusterMonitoringResponse struct {
	ClusterMonitoringEnabled *bool   `json:"clusterMonitoringEnabled,omitempty"`
	WorkspaceId              *string `json:"workspaceId,omitempty"`
}

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DisableAzureMonitorOperationResponse

type DisableAzureMonitorOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DisableMonitoringOperationResponse

type DisableMonitoringOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type EnableAzureMonitorOperationResponse

type EnableAzureMonitorOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type EnableMonitoringOperationResponse

type EnableMonitoringOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type Extension

type Extension struct {
	PrimaryKey  *string `json:"primaryKey,omitempty"`
	WorkspaceId *string `json:"workspaceId,omitempty"`
}

type ExtensionId

type ExtensionId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
	ExtensionName     string
}

ExtensionId is a struct representing the Resource ID for a Extension

func NewExtensionID

func NewExtensionID(subscriptionId string, resourceGroupName string, clusterName string, extensionName string) ExtensionId

NewExtensionID returns a new ExtensionId struct

func ParseExtensionID

func ParseExtensionID(input string) (*ExtensionId, error)

ParseExtensionID parses 'input' into a ExtensionId

func ParseExtensionIDInsensitively

func ParseExtensionIDInsensitively(input string) (*ExtensionId, error)

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

func (*ExtensionId) FromParseResult

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

func (ExtensionId) ID

func (id ExtensionId) ID() string

ID returns the formatted Extension ID

func (ExtensionId) Segments

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

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

func (ExtensionId) String

func (id ExtensionId) String() string

String returns a human-readable description of this Extension ID

type ExtensionsClient

type ExtensionsClient struct {
	Client *resourcemanager.Client
}

func NewExtensionsClientWithBaseURI

func NewExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExtensionsClient, error)

func (ExtensionsClient) Create

func (c ExtensionsClient) Create(ctx context.Context, id ExtensionId, input Extension) (result CreateOperationResponse, err error)

Create ...

func (ExtensionsClient) CreateThenPoll

func (c ExtensionsClient) CreateThenPoll(ctx context.Context, id ExtensionId, input Extension) error

CreateThenPoll performs Create then polls until it's completed

func (ExtensionsClient) Delete

func (c ExtensionsClient) Delete(ctx context.Context, id ExtensionId) (result DeleteOperationResponse, err error)

Delete ...

func (ExtensionsClient) DeleteThenPoll

func (c ExtensionsClient) DeleteThenPoll(ctx context.Context, id ExtensionId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ExtensionsClient) DisableAzureMonitor

DisableAzureMonitor ...

func (ExtensionsClient) DisableAzureMonitorThenPoll

func (c ExtensionsClient) DisableAzureMonitorThenPoll(ctx context.Context, id commonids.HDInsightClusterId) error

DisableAzureMonitorThenPoll performs DisableAzureMonitor then polls until it's completed

func (ExtensionsClient) DisableMonitoring

DisableMonitoring ...

func (ExtensionsClient) DisableMonitoringThenPoll

func (c ExtensionsClient) DisableMonitoringThenPoll(ctx context.Context, id commonids.HDInsightClusterId) error

DisableMonitoringThenPoll performs DisableMonitoring then polls until it's completed

func (ExtensionsClient) EnableAzureMonitor

EnableAzureMonitor ...

func (ExtensionsClient) EnableAzureMonitorThenPoll

func (c ExtensionsClient) EnableAzureMonitorThenPoll(ctx context.Context, id commonids.HDInsightClusterId, input AzureMonitorRequest) error

EnableAzureMonitorThenPoll performs EnableAzureMonitor then polls until it's completed

func (ExtensionsClient) EnableMonitoring

EnableMonitoring ...

func (ExtensionsClient) EnableMonitoringThenPoll

func (c ExtensionsClient) EnableMonitoringThenPoll(ctx context.Context, id commonids.HDInsightClusterId, input ClusterMonitoringRequest) error

EnableMonitoringThenPoll performs EnableMonitoring then polls until it's completed

func (ExtensionsClient) Get

Get ...

func (ExtensionsClient) GetAzureMonitorStatus

GetAzureMonitorStatus ...

func (ExtensionsClient) GetMonitoringStatus

GetMonitoringStatus ...

type GetAzureMonitorStatusOperationResponse

type GetAzureMonitorStatusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AzureMonitorResponse
}

type GetMonitoringStatusOperationResponse

type GetMonitoringStatusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ClusterMonitoringResponse
}

type GetOperationResponse

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

Jump to

Keyboard shortcuts

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