extensions

package
v0.20231002.1065327 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

The extensions SDK allows for interaction with the Azure Resource Manager Service hdinsight (API Version 2018-06-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/hdinsight/2018-06-01-preview/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 := extensions.NewClusterID("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 := extensions.NewClusterID("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 := extensions.NewClusterID("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 := extensions.NewClusterID("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 := extensions.NewClusterID("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 := extensions.NewClusterID("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 ValidateClusterID

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

ValidateClusterID checks that 'input' can be parsed as a Cluster ID

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 ClusterId

type ClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ClusterId is a struct representing the Resource ID for a Cluster

func NewClusterID

func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId

NewClusterID returns a new ClusterId struct

func ParseClusterID

func ParseClusterID(input string) (*ClusterId, error)

ParseClusterID parses 'input' into a ClusterId

func ParseClusterIDInsensitively

func ParseClusterIDInsensitively(input string) (*ClusterId, error)

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

func (ClusterId) ID

func (id ClusterId) ID() string

ID returns the formatted Cluster ID

func (ClusterId) Segments

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

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

func (ClusterId) String

func (id ClusterId) String() string

String returns a human-readable description of this Cluster ID

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

func (c ExtensionsClient) DisableAzureMonitor(ctx context.Context, id ClusterId) (result DisableAzureMonitorOperationResponse, err error)

DisableAzureMonitor ...

func (ExtensionsClient) DisableAzureMonitorThenPoll

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

DisableAzureMonitorThenPoll performs DisableAzureMonitor then polls until it's completed

func (ExtensionsClient) DisableMonitoring

func (c ExtensionsClient) DisableMonitoring(ctx context.Context, id ClusterId) (result DisableMonitoringOperationResponse, err error)

DisableMonitoring ...

func (ExtensionsClient) DisableMonitoringThenPoll

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

DisableMonitoringThenPoll performs DisableMonitoring then polls until it's completed

func (ExtensionsClient) EnableAzureMonitor

func (c ExtensionsClient) EnableAzureMonitor(ctx context.Context, id ClusterId, input AzureMonitorRequest) (result EnableAzureMonitorOperationResponse, err error)

EnableAzureMonitor ...

func (ExtensionsClient) EnableAzureMonitorThenPoll

func (c ExtensionsClient) EnableAzureMonitorThenPoll(ctx context.Context, id ClusterId, 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 ClusterId, input ClusterMonitoringRequest) error

EnableMonitoringThenPoll performs EnableMonitoring then polls until it's completed

func (ExtensionsClient) Get

Get ...

func (ExtensionsClient) GetAzureMonitorStatus

func (c ExtensionsClient) GetAzureMonitorStatus(ctx context.Context, id ClusterId) (result GetAzureMonitorStatusOperationResponse, err error)

GetAzureMonitorStatus ...

func (ExtensionsClient) GetMonitoringStatus

func (c ExtensionsClient) GetMonitoringStatus(ctx context.Context, id ClusterId) (result GetMonitoringStatusOperationResponse, err error)

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