dataconnectors

package
v0.20241128.1112539 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2024-09-01/dataconnectors Documentation

The dataconnectors SDK allows for interaction with Azure Resource Manager securityinsights (API Version 2024-09-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/securityinsights/2024-09-01/dataconnectors"

Client Initialization

client := dataconnectors.NewDataConnectorsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DataConnectorsClient.CreateOrUpdate

ctx := context.TODO()
id := dataconnectors.NewDataConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataConnectorId")

payload := dataconnectors.DataConnector{
	// ...
}


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

Example Usage: DataConnectorsClient.Delete

ctx := context.TODO()
id := dataconnectors.NewDataConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataConnectorId")

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

Example Usage: DataConnectorsClient.Get

ctx := context.TODO()
id := dataconnectors.NewDataConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataConnectorId")

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: DataConnectorsClient.List

ctx := context.TODO()
id := dataconnectors.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCcpAuthType

func PossibleValuesForCcpAuthType() []string

func PossibleValuesForDataConnectorKind

func PossibleValuesForDataConnectorKind() []string

func PossibleValuesForDataTypeState

func PossibleValuesForDataTypeState() []string

func PossibleValuesForHTTPMethodVerb

func PossibleValuesForHTTPMethodVerb() []string

func PossibleValuesForRestApiPollerRequestPagingKind

func PossibleValuesForRestApiPollerRequestPagingKind() []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

func ValidateWorkspaceID

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

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type AADDataConnector

type AADDataConnector struct {
	Properties *AADDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (AADDataConnector) DataConnector

func (s AADDataConnector) DataConnector() BaseDataConnectorImpl

func (AADDataConnector) MarshalJSON

func (s AADDataConnector) MarshalJSON() ([]byte, error)

type AADDataConnectorProperties

type AADDataConnectorProperties struct {
	DataTypes *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"`
	TenantId  *string                        `json:"tenantId,omitempty"`
}

type AATPDataConnector

type AATPDataConnector struct {
	Properties *AATPDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (AATPDataConnector) DataConnector

func (s AATPDataConnector) DataConnector() BaseDataConnectorImpl

func (AATPDataConnector) MarshalJSON

func (s AATPDataConnector) MarshalJSON() ([]byte, error)

type AATPDataConnectorProperties

type AATPDataConnectorProperties struct {
	DataTypes *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"`
	TenantId  *string                        `json:"tenantId,omitempty"`
}

type ASCDataConnector

type ASCDataConnector struct {
	Properties *ASCDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (ASCDataConnector) DataConnector

func (s ASCDataConnector) DataConnector() BaseDataConnectorImpl

func (ASCDataConnector) MarshalJSON

func (s ASCDataConnector) MarshalJSON() ([]byte, error)

type ASCDataConnectorProperties

type ASCDataConnectorProperties struct {
	DataTypes      *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"`
	SubscriptionId *string                        `json:"subscriptionId,omitempty"`
}

type AWSAuthModel

type AWSAuthModel struct {
	ExternalId *string `json:"externalId,omitempty"`
	RoleArn    string  `json:"roleArn"`

	Type CcpAuthType `json:"type"`
}

func (AWSAuthModel) CcpAuthConfig

func (s AWSAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (AWSAuthModel) MarshalJSON

func (s AWSAuthModel) MarshalJSON() ([]byte, error)

type AlertsDataTypeOfDataConnector

type AlertsDataTypeOfDataConnector struct {
	Alerts *DataConnectorDataTypeCommon `json:"alerts,omitempty"`
}

type ApiKeyAuthModel

type ApiKeyAuthModel struct {
	ApiKey                string  `json:"apiKey"`
	ApiKeyIdentifier      *string `json:"apiKeyIdentifier,omitempty"`
	ApiKeyName            string  `json:"apiKeyName"`
	IsApiKeyInPostPayload *bool   `json:"isApiKeyInPostPayload,omitempty"`

	Type CcpAuthType `json:"type"`
}

func (ApiKeyAuthModel) CcpAuthConfig

func (s ApiKeyAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (ApiKeyAuthModel) MarshalJSON

func (s ApiKeyAuthModel) MarshalJSON() ([]byte, error)

type AwsCloudTrailDataConnector

type AwsCloudTrailDataConnector struct {
	Properties *AwsCloudTrailDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (AwsCloudTrailDataConnector) DataConnector

func (AwsCloudTrailDataConnector) MarshalJSON

func (s AwsCloudTrailDataConnector) MarshalJSON() ([]byte, error)

type AwsCloudTrailDataConnectorDataTypes

type AwsCloudTrailDataConnectorDataTypes struct {
	Logs *DataConnectorDataTypeCommon `json:"logs,omitempty"`
}

type AwsCloudTrailDataConnectorProperties

type AwsCloudTrailDataConnectorProperties struct {
	AwsRoleArn *string                              `json:"awsRoleArn,omitempty"`
	DataTypes  *AwsCloudTrailDataConnectorDataTypes `json:"dataTypes,omitempty"`
}

type BaseCcpAuthConfigImpl

type BaseCcpAuthConfigImpl struct {
	Type CcpAuthType `json:"type"`
}

func (BaseCcpAuthConfigImpl) CcpAuthConfig

func (s BaseCcpAuthConfigImpl) CcpAuthConfig() BaseCcpAuthConfigImpl

type BaseDataConnectorImpl

type BaseDataConnectorImpl struct {
	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (BaseDataConnectorImpl) DataConnector

func (s BaseDataConnectorImpl) DataConnector() BaseDataConnectorImpl

type BasicAuthModel

type BasicAuthModel struct {
	Password string `json:"password"`
	UserName string `json:"userName"`

	Type CcpAuthType `json:"type"`
}

func (BasicAuthModel) CcpAuthConfig

func (s BasicAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (BasicAuthModel) MarshalJSON

func (s BasicAuthModel) MarshalJSON() ([]byte, error)

type CcpAuthConfig

type CcpAuthConfig interface {
	CcpAuthConfig() BaseCcpAuthConfigImpl
}

func UnmarshalCcpAuthConfigImplementation

func UnmarshalCcpAuthConfigImplementation(input []byte) (CcpAuthConfig, error)

type CcpAuthType

type CcpAuthType string
const (
	CcpAuthTypeAPIKey     CcpAuthType = "APIKey"
	CcpAuthTypeAWS        CcpAuthType = "AWS"
	CcpAuthTypeBasic      CcpAuthType = "Basic"
	CcpAuthTypeGCP        CcpAuthType = "GCP"
	CcpAuthTypeGitHub     CcpAuthType = "GitHub"
	CcpAuthTypeJwtToken   CcpAuthType = "JwtToken"
	CcpAuthTypeNone       CcpAuthType = "None"
	CcpAuthTypeOAuthTwo   CcpAuthType = "OAuth2"
	CcpAuthTypeOracle     CcpAuthType = "Oracle"
	CcpAuthTypeServiceBus CcpAuthType = "ServiceBus"
	CcpAuthTypeSession    CcpAuthType = "Session"
)

func (*CcpAuthType) UnmarshalJSON

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

type CcpResponseConfig

type CcpResponseConfig struct {
	CompressionAlgo               *string  `json:"compressionAlgo,omitempty"`
	ConvertChildPropertiesToArray *bool    `json:"convertChildPropertiesToArray,omitempty"`
	CsvDelimiter                  *string  `json:"csvDelimiter,omitempty"`
	CsvEscape                     *string  `json:"csvEscape,omitempty"`
	EventsJsonPaths               []string `json:"eventsJsonPaths"`
	Format                        *string  `json:"format,omitempty"`
	HasCsvBoundary                *bool    `json:"hasCsvBoundary,omitempty"`
	HasCsvHeader                  *bool    `json:"hasCsvHeader,omitempty"`
	IsGzipCompressed              *bool    `json:"isGzipCompressed,omitempty"`
	SuccessStatusJsonPath         *string  `json:"successStatusJsonPath,omitempty"`
	SuccessStatusValue            *string  `json:"successStatusValue,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        DataConnector
}

type DCRConfiguration

type DCRConfiguration struct {
	DataCollectionEndpoint        string `json:"dataCollectionEndpoint"`
	DataCollectionRuleImmutableId string `json:"dataCollectionRuleImmutableId"`
	StreamName                    string `json:"streamName"`
}

type DataConnector

type DataConnector interface {
	DataConnector() BaseDataConnectorImpl
}

func UnmarshalDataConnectorImplementation

func UnmarshalDataConnectorImplementation(input []byte) (DataConnector, error)

type DataConnectorDataTypeCommon

type DataConnectorDataTypeCommon struct {
	State *DataTypeState `json:"state,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 DataConnectorKind

type DataConnectorKind string
const (
	DataConnectorKindAmazonWebServicesCloudTrail                   DataConnectorKind = "AmazonWebServicesCloudTrail"
	DataConnectorKindAzureActiveDirectory                          DataConnectorKind = "AzureActiveDirectory"
	DataConnectorKindAzureAdvancedThreatProtection                 DataConnectorKind = "AzureAdvancedThreatProtection"
	DataConnectorKindAzureSecurityCenter                           DataConnectorKind = "AzureSecurityCenter"
	DataConnectorKindMicrosoftCloudAppSecurity                     DataConnectorKind = "MicrosoftCloudAppSecurity"
	DataConnectorKindMicrosoftDefenderAdvancedThreatProtection     DataConnectorKind = "MicrosoftDefenderAdvancedThreatProtection"
	DataConnectorKindMicrosoftThreatIntelligence                   DataConnectorKind = "MicrosoftThreatIntelligence"
	DataConnectorKindOfficeThreeSixFive                            DataConnectorKind = "Office365"
	DataConnectorKindPremiumMicrosoftDefenderForThreatIntelligence DataConnectorKind = "PremiumMicrosoftDefenderForThreatIntelligence"
	DataConnectorKindRestApiPoller                                 DataConnectorKind = "RestApiPoller"
	DataConnectorKindThreatIntelligence                            DataConnectorKind = "ThreatIntelligence"
)

func (*DataConnectorKind) UnmarshalJSON

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

type DataConnectorOperationPredicate

type DataConnectorOperationPredicate struct {
}

func (DataConnectorOperationPredicate) Matches

type DataConnectorsClient

type DataConnectorsClient struct {
	Client *resourcemanager.Client
}

func NewDataConnectorsClientWithBaseURI

func NewDataConnectorsClientWithBaseURI(sdkApi sdkEnv.Api) (*DataConnectorsClient, error)

func (DataConnectorsClient) CreateOrUpdate

CreateOrUpdate ...

func (DataConnectorsClient) Delete

Delete ...

func (DataConnectorsClient) Get

Get ...

func (DataConnectorsClient) List

List ...

func (DataConnectorsClient) ListComplete

ListComplete retrieves all the results into a single object

func (DataConnectorsClient) ListCompleteMatchingPredicate

func (c DataConnectorsClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate DataConnectorOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DataTypeState

type DataTypeState string
const (
	DataTypeStateDisabled DataTypeState = "Disabled"
	DataTypeStateEnabled  DataTypeState = "Enabled"
)

func (*DataTypeState) UnmarshalJSON

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

type DeleteOperationResponse

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

type GCPAuthModel

type GCPAuthModel struct {
	ProjectNumber              string `json:"projectNumber"`
	ServiceAccountEmail        string `json:"serviceAccountEmail"`
	WorkloadIdentityProviderId string `json:"workloadIdentityProviderId"`

	Type CcpAuthType `json:"type"`
}

func (GCPAuthModel) CcpAuthConfig

func (s GCPAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (GCPAuthModel) MarshalJSON

func (s GCPAuthModel) MarshalJSON() ([]byte, error)

type GenericBlobSbsAuthModel

type GenericBlobSbsAuthModel struct {
	CredentialsConfig               *map[string]string `json:"credentialsConfig,omitempty"`
	StorageAccountCredentialsConfig *map[string]string `json:"storageAccountCredentialsConfig,omitempty"`

	Type CcpAuthType `json:"type"`
}

func (GenericBlobSbsAuthModel) CcpAuthConfig

func (GenericBlobSbsAuthModel) MarshalJSON

func (s GenericBlobSbsAuthModel) MarshalJSON() ([]byte, error)

type GetOperationResponse

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

type GitHubAuthModel

type GitHubAuthModel struct {
	InstallationId *string `json:"installationId,omitempty"`

	Type CcpAuthType `json:"type"`
}

func (GitHubAuthModel) CcpAuthConfig

func (s GitHubAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (GitHubAuthModel) MarshalJSON

func (s GitHubAuthModel) MarshalJSON() ([]byte, error)

type HTTPMethodVerb

type HTTPMethodVerb string
const (
	HTTPMethodVerbDELETE HTTPMethodVerb = "DELETE"
	HTTPMethodVerbGET    HTTPMethodVerb = "GET"
	HTTPMethodVerbPOST   HTTPMethodVerb = "POST"
	HTTPMethodVerbPUT    HTTPMethodVerb = "PUT"
)

func (*HTTPMethodVerb) UnmarshalJSON

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

type JwtAuthModel

type JwtAuthModel struct {
	Headers                 *map[string]string `json:"headers,omitempty"`
	IsCredentialsInHeaders  *bool              `json:"isCredentialsInHeaders,omitempty"`
	IsJsonRequest           *bool              `json:"isJsonRequest,omitempty"`
	Password                map[string]string  `json:"password"`
	QueryParameters         *map[string]string `json:"queryParameters,omitempty"`
	RequestTimeoutInSeconds *int64             `json:"requestTimeoutInSeconds,omitempty"`
	TokenEndpoint           string             `json:"tokenEndpoint"`
	UserName                map[string]string  `json:"userName"`

	Type CcpAuthType `json:"type"`
}

func (JwtAuthModel) CcpAuthConfig

func (s JwtAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (JwtAuthModel) MarshalJSON

func (s JwtAuthModel) MarshalJSON() ([]byte, error)

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DataConnector
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DataConnector
}

type MCASDataConnector

type MCASDataConnector struct {
	Properties *MCASDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (MCASDataConnector) DataConnector

func (s MCASDataConnector) DataConnector() BaseDataConnectorImpl

func (MCASDataConnector) MarshalJSON

func (s MCASDataConnector) MarshalJSON() ([]byte, error)

type MCASDataConnectorDataTypes

type MCASDataConnectorDataTypes struct {
	Alerts        *DataConnectorDataTypeCommon `json:"alerts,omitempty"`
	DiscoveryLogs *DataConnectorDataTypeCommon `json:"discoveryLogs,omitempty"`
}

type MCASDataConnectorProperties

type MCASDataConnectorProperties struct {
	DataTypes *MCASDataConnectorDataTypes `json:"dataTypes,omitempty"`
	TenantId  *string                     `json:"tenantId,omitempty"`
}

type MDATPDataConnector

type MDATPDataConnector struct {
	Properties *MDATPDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (MDATPDataConnector) DataConnector

func (s MDATPDataConnector) DataConnector() BaseDataConnectorImpl

func (MDATPDataConnector) MarshalJSON

func (s MDATPDataConnector) MarshalJSON() ([]byte, error)

type MDATPDataConnectorProperties

type MDATPDataConnectorProperties struct {
	DataTypes *AlertsDataTypeOfDataConnector `json:"dataTypes,omitempty"`
	TenantId  *string                        `json:"tenantId,omitempty"`
}

type MSTIDataConnector

type MSTIDataConnector struct {
	Properties *MSTIDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (MSTIDataConnector) DataConnector

func (s MSTIDataConnector) DataConnector() BaseDataConnectorImpl

func (MSTIDataConnector) MarshalJSON

func (s MSTIDataConnector) MarshalJSON() ([]byte, error)

type MSTIDataConnectorDataTypes

type MSTIDataConnectorDataTypes struct {
	MicrosoftEmergingThreatFeed MSTIDataConnectorDataTypesMicrosoftEmergingThreatFeed `json:"microsoftEmergingThreatFeed"`
}

type MSTIDataConnectorDataTypesMicrosoftEmergingThreatFeed

type MSTIDataConnectorDataTypesMicrosoftEmergingThreatFeed struct {
	LookbackPeriod string         `json:"lookbackPeriod"`
	State          *DataTypeState `json:"state,omitempty"`
}

func (*MSTIDataConnectorDataTypesMicrosoftEmergingThreatFeed) GetLookbackPeriodAsTime

func (o *MSTIDataConnectorDataTypesMicrosoftEmergingThreatFeed) GetLookbackPeriodAsTime() (*time.Time, error)

func (*MSTIDataConnectorDataTypesMicrosoftEmergingThreatFeed) SetLookbackPeriodAsTime

func (o *MSTIDataConnectorDataTypesMicrosoftEmergingThreatFeed) SetLookbackPeriodAsTime(input time.Time)

type MSTIDataConnectorProperties

type MSTIDataConnectorProperties struct {
	DataTypes MSTIDataConnectorDataTypes `json:"dataTypes"`
	TenantId  *string                    `json:"tenantId,omitempty"`
}

type NoneAuthModel

type NoneAuthModel struct {
	Type CcpAuthType `json:"type"`
}

func (NoneAuthModel) CcpAuthConfig

func (s NoneAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (NoneAuthModel) MarshalJSON

func (s NoneAuthModel) MarshalJSON() ([]byte, error)

type OAuthModel

type OAuthModel struct {
	AccessTokenPrepend                   *string            `json:"accessTokenPrepend,omitempty"`
	AuthorizationCode                    *string            `json:"authorizationCode,omitempty"`
	AuthorizationEndpoint                *string            `json:"authorizationEndpoint,omitempty"`
	AuthorizationEndpointHeaders         *map[string]string `json:"authorizationEndpointHeaders,omitempty"`
	AuthorizationEndpointQueryParameters *map[string]string `json:"authorizationEndpointQueryParameters,omitempty"`
	ClientId                             string             `json:"clientId"`
	ClientSecret                         string             `json:"clientSecret"`
	GrantType                            string             `json:"grantType"`
	IsCredentialsInHeaders               *bool              `json:"isCredentialsInHeaders,omitempty"`
	IsJwtBearerFlow                      *bool              `json:"isJwtBearerFlow,omitempty"`
	RedirectUri                          *string            `json:"redirectUri,omitempty"`
	Scope                                *string            `json:"scope,omitempty"`
	TokenEndpoint                        string             `json:"tokenEndpoint"`
	TokenEndpointHeaders                 *map[string]string `json:"tokenEndpointHeaders,omitempty"`
	TokenEndpointQueryParameters         *map[string]string `json:"tokenEndpointQueryParameters,omitempty"`

	Type CcpAuthType `json:"type"`
}

func (OAuthModel) CcpAuthConfig

func (s OAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (OAuthModel) MarshalJSON

func (s OAuthModel) MarshalJSON() ([]byte, error)

type OfficeDataConnector

type OfficeDataConnector struct {
	Properties *OfficeDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (OfficeDataConnector) DataConnector

func (s OfficeDataConnector) DataConnector() BaseDataConnectorImpl

func (OfficeDataConnector) MarshalJSON

func (s OfficeDataConnector) MarshalJSON() ([]byte, error)

type OfficeDataConnectorDataTypes

type OfficeDataConnectorDataTypes struct {
	Exchange   *DataConnectorDataTypeCommon `json:"exchange,omitempty"`
	SharePoint *DataConnectorDataTypeCommon `json:"sharePoint,omitempty"`
	Teams      *DataConnectorDataTypeCommon `json:"teams,omitempty"`
}

type OfficeDataConnectorProperties

type OfficeDataConnectorProperties struct {
	DataTypes *OfficeDataConnectorDataTypes `json:"dataTypes,omitempty"`
	TenantId  *string                       `json:"tenantId,omitempty"`
}

type OracleAuthModel

type OracleAuthModel struct {
	PemFile           string `json:"pemFile"`
	PublicFingerprint string `json:"publicFingerprint"`
	TenantId          string `json:"tenantId"`
	UserId            string `json:"userId"`

	Type CcpAuthType `json:"type"`
}

func (OracleAuthModel) CcpAuthConfig

func (s OracleAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (OracleAuthModel) MarshalJSON

func (s OracleAuthModel) MarshalJSON() ([]byte, error)

type PremiumMdtiDataConnectorDataTypes

type PremiumMdtiDataConnectorDataTypes struct {
	Connector DataConnectorDataTypeCommon `json:"connector"`
}

type PremiumMdtiDataConnectorProperties

type PremiumMdtiDataConnectorProperties struct {
	DataTypes           PremiumMdtiDataConnectorDataTypes `json:"dataTypes"`
	LookbackPeriod      string                            `json:"lookbackPeriod"`
	RequiredSKUsPresent *bool                             `json:"requiredSKUsPresent,omitempty"`
	TenantId            *string                           `json:"tenantId,omitempty"`
}

func (*PremiumMdtiDataConnectorProperties) GetLookbackPeriodAsTime

func (o *PremiumMdtiDataConnectorProperties) GetLookbackPeriodAsTime() (*time.Time, error)

func (*PremiumMdtiDataConnectorProperties) SetLookbackPeriodAsTime

func (o *PremiumMdtiDataConnectorProperties) SetLookbackPeriodAsTime(input time.Time)

type PremiumMicrosoftDefenderForThreatIntelligence

type PremiumMicrosoftDefenderForThreatIntelligence struct {
	Properties *PremiumMdtiDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (PremiumMicrosoftDefenderForThreatIntelligence) DataConnector

func (PremiumMicrosoftDefenderForThreatIntelligence) MarshalJSON

type RawCcpAuthConfigImpl

type RawCcpAuthConfigImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawCcpAuthConfigImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawCcpAuthConfigImpl) CcpAuthConfig

func (s RawCcpAuthConfigImpl) CcpAuthConfig() BaseCcpAuthConfigImpl

type RawDataConnectorImpl

type RawDataConnectorImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawDataConnectorImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawDataConnectorImpl) DataConnector

func (s RawDataConnectorImpl) DataConnector() BaseDataConnectorImpl

type RestApiPollerDataConnector

type RestApiPollerDataConnector struct {
	Properties *RestApiPollerDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (RestApiPollerDataConnector) DataConnector

func (RestApiPollerDataConnector) MarshalJSON

func (s RestApiPollerDataConnector) MarshalJSON() ([]byte, error)

type RestApiPollerDataConnectorProperties

type RestApiPollerDataConnectorProperties struct {
	AddOnAttributes         *map[string]string                `json:"addOnAttributes,omitempty"`
	Auth                    CcpAuthConfig                     `json:"auth"`
	ConnectorDefinitionName string                            `json:"connectorDefinitionName"`
	DataType                *string                           `json:"dataType,omitempty"`
	DcrConfig               *DCRConfiguration                 `json:"dcrConfig,omitempty"`
	IsActive                *bool                             `json:"isActive,omitempty"`
	Paging                  *RestApiPollerRequestPagingConfig `json:"paging,omitempty"`
	Request                 RestApiPollerRequestConfig        `json:"request"`
	Response                *CcpResponseConfig                `json:"response,omitempty"`
}

func (*RestApiPollerDataConnectorProperties) UnmarshalJSON

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

type RestApiPollerRequestConfig

type RestApiPollerRequestConfig struct {
	ApiEndpoint                    string                  `json:"apiEndpoint"`
	EndTimeAttributeName           *string                 `json:"endTimeAttributeName,omitempty"`
	HTTPMethod                     *HTTPMethodVerb         `json:"httpMethod,omitempty"`
	Headers                        *map[string]string      `json:"headers,omitempty"`
	IsPostPayloadJson              *bool                   `json:"isPostPayloadJson,omitempty"`
	QueryParameters                *map[string]interface{} `json:"queryParameters,omitempty"`
	QueryParametersTemplate        *string                 `json:"queryParametersTemplate,omitempty"`
	QueryTimeFormat                *string                 `json:"queryTimeFormat,omitempty"`
	QueryTimeIntervalAttributeName *string                 `json:"queryTimeIntervalAttributeName,omitempty"`
	QueryTimeIntervalDelimiter     *string                 `json:"queryTimeIntervalDelimiter,omitempty"`
	QueryTimeIntervalPrepend       *string                 `json:"queryTimeIntervalPrepend,omitempty"`
	QueryWindowInMin               *int64                  `json:"queryWindowInMin,omitempty"`
	RateLimitQPS                   *int64                  `json:"rateLimitQPS,omitempty"`
	RetryCount                     *int64                  `json:"retryCount,omitempty"`
	StartTimeAttributeName         *string                 `json:"startTimeAttributeName,omitempty"`
	TimeoutInSeconds               *int64                  `json:"timeoutInSeconds,omitempty"`
}

type RestApiPollerRequestPagingConfig

type RestApiPollerRequestPagingConfig struct {
	PageSize              *int64                         `json:"pageSize,omitempty"`
	PageSizeParameterName *string                        `json:"pageSizeParameterName,omitempty"`
	PagingType            RestApiPollerRequestPagingKind `json:"pagingType"`
}

type RestApiPollerRequestPagingKind

type RestApiPollerRequestPagingKind string
const (
	RestApiPollerRequestPagingKindCountBasedPaging     RestApiPollerRequestPagingKind = "CountBasedPaging"
	RestApiPollerRequestPagingKindLinkHeader           RestApiPollerRequestPagingKind = "LinkHeader"
	RestApiPollerRequestPagingKindNextPageToken        RestApiPollerRequestPagingKind = "NextPageToken"
	RestApiPollerRequestPagingKindNextPageURL          RestApiPollerRequestPagingKind = "NextPageUrl"
	RestApiPollerRequestPagingKindOffset               RestApiPollerRequestPagingKind = "Offset"
	RestApiPollerRequestPagingKindPersistentLinkHeader RestApiPollerRequestPagingKind = "PersistentLinkHeader"
	RestApiPollerRequestPagingKindPersistentToken      RestApiPollerRequestPagingKind = "PersistentToken"
)

func (*RestApiPollerRequestPagingKind) UnmarshalJSON

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

type SessionAuthModel

type SessionAuthModel struct {
	Headers                 *map[string]string      `json:"headers,omitempty"`
	IsPostPayloadJson       *bool                   `json:"isPostPayloadJson,omitempty"`
	Password                map[string]string       `json:"password"`
	QueryParameters         *map[string]interface{} `json:"queryParameters,omitempty"`
	SessionIdName           *string                 `json:"sessionIdName,omitempty"`
	SessionLoginRequestUri  *string                 `json:"sessionLoginRequestUri,omitempty"`
	SessionTimeoutInMinutes *int64                  `json:"sessionTimeoutInMinutes,omitempty"`
	UserName                map[string]string       `json:"userName"`

	Type CcpAuthType `json:"type"`
}

func (SessionAuthModel) CcpAuthConfig

func (s SessionAuthModel) CcpAuthConfig() BaseCcpAuthConfigImpl

func (SessionAuthModel) MarshalJSON

func (s SessionAuthModel) MarshalJSON() ([]byte, error)

type TIDataConnector

type TIDataConnector struct {
	Properties *TIDataConnectorProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       DataConnectorKind      `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (TIDataConnector) DataConnector

func (s TIDataConnector) DataConnector() BaseDataConnectorImpl

func (TIDataConnector) MarshalJSON

func (s TIDataConnector) MarshalJSON() ([]byte, error)

type TIDataConnectorDataTypes

type TIDataConnectorDataTypes struct {
	Indicators *DataConnectorDataTypeCommon `json:"indicators,omitempty"`
}

type TIDataConnectorProperties

type TIDataConnectorProperties struct {
	DataTypes         *TIDataConnectorDataTypes `json:"dataTypes,omitempty"`
	TenantId          *string                   `json:"tenantId,omitempty"`
	TipLookbackPeriod *string                   `json:"tipLookbackPeriod,omitempty"`
}

func (*TIDataConnectorProperties) GetTipLookbackPeriodAsTime

func (o *TIDataConnectorProperties) GetTipLookbackPeriodAsTime() (*time.Time, error)

func (*TIDataConnectorProperties) SetTipLookbackPeriodAsTime

func (o *TIDataConnectorProperties) SetTipLookbackPeriodAsTime(input time.Time)

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

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

func (*WorkspaceId) FromParseResult

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

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

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

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

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

Source Files

Jump to

Keyboard shortcuts

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