dataconnectorsconnect

package
v0.20240819.1075239 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/dataconnectorsconnect Documentation

The dataconnectorsconnect SDK allows for interaction with the Azure Resource Manager Service securityinsights (API Version 2022-10-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/securityinsights/2022-10-01-preview/dataconnectorsconnect"

Client Initialization

client := dataconnectorsconnect.NewDataConnectorsConnectClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DataConnectorsConnectClient.DataConnectorsConnect

ctx := context.TODO()
id := dataconnectorsconnect.NewDataConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataConnectorIdValue")

payload := dataconnectorsconnect.DataConnectorConnectBody{
	// ...
}


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

func PossibleValuesForConnectAuthKind

func PossibleValuesForConnectAuthKind() []string

func ValidateDataConnectorID

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

ValidateDataConnectorID checks that 'input' can be parsed as a Data Connector ID

Types

type ConnectAuthKind

type ConnectAuthKind string
const (
	ConnectAuthKindAPIKey   ConnectAuthKind = "APIKey"
	ConnectAuthKindBasic    ConnectAuthKind = "Basic"
	ConnectAuthKindOAuthTwo ConnectAuthKind = "OAuth2"
)

func (*ConnectAuthKind) UnmarshalJSON added in v0.20240221.1115631

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

type DataConnectorConnectBody

type DataConnectorConnectBody struct {
	ApiKey                        *string          `json:"apiKey,omitempty"`
	AuthorizationCode             *string          `json:"authorizationCode,omitempty"`
	ClientId                      *string          `json:"clientId,omitempty"`
	ClientSecret                  *string          `json:"clientSecret,omitempty"`
	DataCollectionEndpoint        *string          `json:"dataCollectionEndpoint,omitempty"`
	DataCollectionRuleImmutableId *string          `json:"dataCollectionRuleImmutableId,omitempty"`
	Kind                          *ConnectAuthKind `json:"kind,omitempty"`
	OutputStream                  *string          `json:"outputStream,omitempty"`
	Password                      *string          `json:"password,omitempty"`
	RequestConfigUserInputValues  *[]interface{}   `json:"requestConfigUserInputValues,omitempty"`
	UserName                      *string          `json:"userName,omitempty"`
}

type DataConnectorId

type DataConnectorId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	DataConnectorId   string
}

DataConnectorId is a struct representing the Resource ID for a Data Connector

func NewDataConnectorID

func NewDataConnectorID(subscriptionId string, resourceGroupName string, workspaceName string, dataConnectorId string) DataConnectorId

NewDataConnectorID returns a new DataConnectorId struct

func ParseDataConnectorID

func ParseDataConnectorID(input string) (*DataConnectorId, error)

ParseDataConnectorID parses 'input' into a DataConnectorId

func ParseDataConnectorIDInsensitively

func ParseDataConnectorIDInsensitively(input string) (*DataConnectorId, error)

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

func (*DataConnectorId) FromParseResult

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

func (DataConnectorId) ID

func (id DataConnectorId) ID() string

ID returns the formatted Data Connector ID

func (DataConnectorId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Data Connector ID

func (DataConnectorId) String

func (id DataConnectorId) String() string

String returns a human-readable description of this Data Connector ID

type DataConnectorsConnectClient

type DataConnectorsConnectClient struct {
	Client *resourcemanager.Client
}

func NewDataConnectorsConnectClientWithBaseURI

func NewDataConnectorsConnectClientWithBaseURI(sdkApi sdkEnv.Api) (*DataConnectorsConnectClient, error)

func (DataConnectorsConnectClient) DataConnectorsConnect

DataConnectorsConnect ...

type DataConnectorsConnectOperationResponse

type DataConnectorsConnectOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

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