diagnosticsettings

package
v0.20240516.1091934 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 15 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/diagnosticsettings Documentation

The diagnosticsettings SDK allows for interaction with the Azure Resource Manager Service databoxedge (API Version 2022-03-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/databoxedge/2022-03-01/diagnosticsettings"

Client Initialization

client := diagnosticsettings.NewDiagnosticSettingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DiagnosticSettingsClient.GetDiagnosticProactiveLogCollectionSettings

ctx := context.TODO()
id := diagnosticsettings.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue")

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

Example Usage: DiagnosticSettingsClient.GetDiagnosticRemoteSupportSettings

ctx := context.TODO()
id := diagnosticsettings.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue")

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

Example Usage: DiagnosticSettingsClient.UpdateDiagnosticProactiveLogCollectionSettings

ctx := context.TODO()
id := diagnosticsettings.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue")

payload := diagnosticsettings.DiagnosticProactiveLogCollectionSettings{
	// ...
}


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

Example Usage: DiagnosticSettingsClient.UpdateDiagnosticRemoteSupportSettings

ctx := context.TODO()
id := diagnosticsettings.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue")

payload := diagnosticsettings.DiagnosticRemoteSupportSettings{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAccessLevel

func PossibleValuesForAccessLevel() []string

func PossibleValuesForProactiveDiagnosticsConsent

func PossibleValuesForProactiveDiagnosticsConsent() []string

func PossibleValuesForRemoteApplicationType

func PossibleValuesForRemoteApplicationType() []string

func ValidateDataBoxEdgeDeviceID

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

ValidateDataBoxEdgeDeviceID checks that 'input' can be parsed as a Data Box Edge Device ID

Types

type AccessLevel

type AccessLevel string
const (
	AccessLevelFullAccess AccessLevel = "FullAccess"
	AccessLevelNone       AccessLevel = "None"
	AccessLevelReadOnly   AccessLevel = "ReadOnly"
	AccessLevelReadWrite  AccessLevel = "ReadWrite"
)

func (*AccessLevel) UnmarshalJSON

func (s *AccessLevel) UnmarshalJSON(bytes []byte) error

type DataBoxEdgeDeviceId

type DataBoxEdgeDeviceId struct {
	SubscriptionId        string
	ResourceGroupName     string
	DataBoxEdgeDeviceName string
}

DataBoxEdgeDeviceId is a struct representing the Resource ID for a Data Box Edge Device

func NewDataBoxEdgeDeviceID

func NewDataBoxEdgeDeviceID(subscriptionId string, resourceGroupName string, dataBoxEdgeDeviceName string) DataBoxEdgeDeviceId

NewDataBoxEdgeDeviceID returns a new DataBoxEdgeDeviceId struct

func ParseDataBoxEdgeDeviceID

func ParseDataBoxEdgeDeviceID(input string) (*DataBoxEdgeDeviceId, error)

ParseDataBoxEdgeDeviceID parses 'input' into a DataBoxEdgeDeviceId

func ParseDataBoxEdgeDeviceIDInsensitively

func ParseDataBoxEdgeDeviceIDInsensitively(input string) (*DataBoxEdgeDeviceId, error)

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

func (*DataBoxEdgeDeviceId) FromParseResult

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

func (DataBoxEdgeDeviceId) ID

func (id DataBoxEdgeDeviceId) ID() string

ID returns the formatted Data Box Edge Device ID

func (DataBoxEdgeDeviceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Data Box Edge Device ID

func (DataBoxEdgeDeviceId) String

func (id DataBoxEdgeDeviceId) String() string

String returns a human-readable description of this Data Box Edge Device ID

type DiagnosticProactiveLogCollectionSettings

type DiagnosticProactiveLogCollectionSettings struct {
	Id         *string                                  `json:"id,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties ProactiveLogCollectionSettingsProperties `json:"properties"`
	SystemData *systemdata.SystemData                   `json:"systemData,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type DiagnosticRemoteSupportSettings

type DiagnosticRemoteSupportSettings struct {
	Id         *string                                   `json:"id,omitempty"`
	Name       *string                                   `json:"name,omitempty"`
	Properties DiagnosticRemoteSupportSettingsProperties `json:"properties"`
	SystemData *systemdata.SystemData                    `json:"systemData,omitempty"`
	Type       *string                                   `json:"type,omitempty"`
}

type DiagnosticRemoteSupportSettingsProperties

type DiagnosticRemoteSupportSettingsProperties struct {
	RemoteSupportSettingsList *[]RemoteSupportSettings `json:"remoteSupportSettingsList,omitempty"`
}

type DiagnosticSettingsClient

type DiagnosticSettingsClient struct {
	Client *resourcemanager.Client
}

func NewDiagnosticSettingsClientWithBaseURI

func NewDiagnosticSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticSettingsClient, error)

func (DiagnosticSettingsClient) GetDiagnosticProactiveLogCollectionSettings

func (c DiagnosticSettingsClient) GetDiagnosticProactiveLogCollectionSettings(ctx context.Context, id DataBoxEdgeDeviceId) (result GetDiagnosticProactiveLogCollectionSettingsOperationResponse, err error)

GetDiagnosticProactiveLogCollectionSettings ...

func (DiagnosticSettingsClient) GetDiagnosticRemoteSupportSettings

GetDiagnosticRemoteSupportSettings ...

func (DiagnosticSettingsClient) UpdateDiagnosticProactiveLogCollectionSettings

UpdateDiagnosticProactiveLogCollectionSettings ...

func (DiagnosticSettingsClient) UpdateDiagnosticProactiveLogCollectionSettingsThenPoll

func (c DiagnosticSettingsClient) UpdateDiagnosticProactiveLogCollectionSettingsThenPoll(ctx context.Context, id DataBoxEdgeDeviceId, input DiagnosticProactiveLogCollectionSettings) error

UpdateDiagnosticProactiveLogCollectionSettingsThenPoll performs UpdateDiagnosticProactiveLogCollectionSettings then polls until it's completed

func (DiagnosticSettingsClient) UpdateDiagnosticRemoteSupportSettings

UpdateDiagnosticRemoteSupportSettings ...

func (DiagnosticSettingsClient) UpdateDiagnosticRemoteSupportSettingsThenPoll

func (c DiagnosticSettingsClient) UpdateDiagnosticRemoteSupportSettingsThenPoll(ctx context.Context, id DataBoxEdgeDeviceId, input DiagnosticRemoteSupportSettings) error

UpdateDiagnosticRemoteSupportSettingsThenPoll performs UpdateDiagnosticRemoteSupportSettings then polls until it's completed

type GetDiagnosticProactiveLogCollectionSettingsOperationResponse

type GetDiagnosticProactiveLogCollectionSettingsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticProactiveLogCollectionSettings
}

type GetDiagnosticRemoteSupportSettingsOperationResponse

type GetDiagnosticRemoteSupportSettingsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticRemoteSupportSettings
}

type ProactiveDiagnosticsConsent

type ProactiveDiagnosticsConsent string
const (
	ProactiveDiagnosticsConsentDisabled ProactiveDiagnosticsConsent = "Disabled"
	ProactiveDiagnosticsConsentEnabled  ProactiveDiagnosticsConsent = "Enabled"
)

func (*ProactiveDiagnosticsConsent) UnmarshalJSON

func (s *ProactiveDiagnosticsConsent) UnmarshalJSON(bytes []byte) error

type ProactiveLogCollectionSettingsProperties

type ProactiveLogCollectionSettingsProperties struct {
	UserConsent ProactiveDiagnosticsConsent `json:"userConsent"`
}

type RemoteApplicationType

type RemoteApplicationType string
const (
	RemoteApplicationTypeAllApplications RemoteApplicationType = "AllApplications"
	RemoteApplicationTypeLocalUI         RemoteApplicationType = "LocalUI"
	RemoteApplicationTypePowershell      RemoteApplicationType = "Powershell"
	RemoteApplicationTypeWAC             RemoteApplicationType = "WAC"
)

func (*RemoteApplicationType) UnmarshalJSON

func (s *RemoteApplicationType) UnmarshalJSON(bytes []byte) error

type RemoteSupportSettings

type RemoteSupportSettings struct {
	AccessLevel              *AccessLevel           `json:"accessLevel,omitempty"`
	ExpirationTimeStampInUTC *string                `json:"expirationTimeStampInUTC,omitempty"`
	RemoteApplicationType    *RemoteApplicationType `json:"remoteApplicationType,omitempty"`
}

func (*RemoteSupportSettings) GetExpirationTimeStampInUTCAsTime

func (o *RemoteSupportSettings) GetExpirationTimeStampInUTCAsTime() (*time.Time, error)

func (*RemoteSupportSettings) SetExpirationTimeStampInUTCAsTime

func (o *RemoteSupportSettings) SetExpirationTimeStampInUTCAsTime(input time.Time)

type UpdateDiagnosticProactiveLogCollectionSettingsOperationResponse

type UpdateDiagnosticProactiveLogCollectionSettingsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticProactiveLogCollectionSettings
}

type UpdateDiagnosticRemoteSupportSettingsOperationResponse

type UpdateDiagnosticRemoteSupportSettingsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticRemoteSupportSettings
}

Jump to

Keyboard shortcuts

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