dataconnectorsconnect

package
v0.20231214.1160726 Latest Latest
Warning

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

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

README

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

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

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 added in v0.20231127.1171502

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 autorest.Client
	// contains filtered or unexported fields
}

func NewDataConnectorsConnectClientWithBaseURI

func NewDataConnectorsConnectClientWithBaseURI(endpoint string) DataConnectorsConnectClient

func (DataConnectorsConnectClient) DataConnectorsConnect

DataConnectorsConnect ...

type DataConnectorsConnectOperationResponse

type DataConnectorsConnectOperationResponse struct {
	HttpResponse *http.Response
}

Jump to

Keyboard shortcuts

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