entityqueries

package
v0.20230118.1184540 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2021-09-01-preview/entityqueries Documentation

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

Client Initialization

client := entityqueries.NewEntityQueriesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EntityQueriesClient.CreateOrUpdate

ctx := context.TODO()
id := entityqueries.NewEntityQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "entityQueryIdValue")

payload := entityqueries.CustomEntityQuery{
	// ...
}


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: EntityQueriesClient.Delete

ctx := context.TODO()
id := entityqueries.NewEntityQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "entityQueryIdValue")

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: EntityQueriesClient.EntityQueryTemplatesGet

ctx := context.TODO()
id := entityqueries.NewEntityQueryTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "entityQueryTemplateIdValue")

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

Example Usage: EntityQueriesClient.EntityQueryTemplatesList

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

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

Example Usage: EntityQueriesClient.Get

ctx := context.TODO()
id := entityqueries.NewEntityQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "entityQueryIdValue")

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

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

// alternatively `client.List(ctx, id, entityqueries.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, entityqueries.DefaultListOperationOptions())
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 PossibleValuesForCustomEntityQueryKind

func PossibleValuesForCustomEntityQueryKind() []string

func PossibleValuesForEntityQueryKind

func PossibleValuesForEntityQueryKind() []string

func PossibleValuesForEntityQueryTemplateKind

func PossibleValuesForEntityQueryTemplateKind() []string

func PossibleValuesForEntityType

func PossibleValuesForEntityType() []string

func PossibleValuesForKind

func PossibleValuesForKind() []string

func ValidateEntityQueryID added in v0.20220907.1111434

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

ValidateEntityQueryID checks that 'input' can be parsed as a Entity Query ID

func ValidateEntityQueryTemplateID

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

ValidateEntityQueryTemplateID checks that 'input' can be parsed as a Entity Query Template 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 ActivityCustomEntityQuery

type ActivityCustomEntityQuery struct {
	Properties *ActivityEntityQueriesProperties `json:"properties,omitempty"`

	// Fields inherited from CustomEntityQuery
	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (ActivityCustomEntityQuery) MarshalJSON

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

type ActivityEntityQueriesProperties

type ActivityEntityQueriesProperties struct {
	Content                 *string                                          `json:"content,omitempty"`
	CreatedTimeUtc          *string                                          `json:"createdTimeUtc,omitempty"`
	Description             *string                                          `json:"description,omitempty"`
	Enabled                 *bool                                            `json:"enabled,omitempty"`
	EntitiesFilter          *map[string][]string                             `json:"entitiesFilter,omitempty"`
	InputEntityType         *EntityType                                      `json:"inputEntityType,omitempty"`
	LastModifiedTimeUtc     *string                                          `json:"lastModifiedTimeUtc,omitempty"`
	QueryDefinitions        *ActivityEntityQueriesPropertiesQueryDefinitions `json:"queryDefinitions,omitempty"`
	RequiredInputFieldsSets *[][]string                                      `json:"requiredInputFieldsSets,omitempty"`
	TemplateName            *string                                          `json:"templateName,omitempty"`
	Title                   *string                                          `json:"title,omitempty"`
}

func (*ActivityEntityQueriesProperties) GetCreatedTimeUtcAsTime

func (o *ActivityEntityQueriesProperties) GetCreatedTimeUtcAsTime() (*time.Time, error)

func (*ActivityEntityQueriesProperties) GetLastModifiedTimeUtcAsTime

func (o *ActivityEntityQueriesProperties) GetLastModifiedTimeUtcAsTime() (*time.Time, error)

func (*ActivityEntityQueriesProperties) SetCreatedTimeUtcAsTime

func (o *ActivityEntityQueriesProperties) SetCreatedTimeUtcAsTime(input time.Time)

func (*ActivityEntityQueriesProperties) SetLastModifiedTimeUtcAsTime

func (o *ActivityEntityQueriesProperties) SetLastModifiedTimeUtcAsTime(input time.Time)

type ActivityEntityQueriesPropertiesQueryDefinitions

type ActivityEntityQueriesPropertiesQueryDefinitions struct {
	Query *string `json:"query,omitempty"`
}

type ActivityEntityQuery

type ActivityEntityQuery struct {
	Properties *ActivityEntityQueriesProperties `json:"properties,omitempty"`

	// Fields inherited from EntityQuery
	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (ActivityEntityQuery) MarshalJSON

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

type ActivityEntityQueryTemplate

type ActivityEntityQueryTemplate struct {
	Properties *ActivityEntityQueryTemplateProperties `json:"properties,omitempty"`

	// Fields inherited from EntityQueryTemplate
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (ActivityEntityQueryTemplate) MarshalJSON

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

type ActivityEntityQueryTemplateProperties

type ActivityEntityQueryTemplateProperties struct {
	Content                 *string                                                `json:"content,omitempty"`
	DataTypes               *[]DataTypeDefinitions                                 `json:"dataTypes,omitempty"`
	Description             *string                                                `json:"description,omitempty"`
	EntitiesFilter          *map[string][]string                                   `json:"entitiesFilter,omitempty"`
	InputEntityType         *EntityType                                            `json:"inputEntityType,omitempty"`
	QueryDefinitions        *ActivityEntityQueryTemplatePropertiesQueryDefinitions `json:"queryDefinitions,omitempty"`
	RequiredInputFieldsSets *[][]string                                            `json:"requiredInputFieldsSets,omitempty"`
	Title                   *string                                                `json:"title,omitempty"`
}

type ActivityEntityQueryTemplatePropertiesQueryDefinitions

type ActivityEntityQueryTemplatePropertiesQueryDefinitions struct {
	Query       *string `json:"query,omitempty"`
	SummarizeBy *string `json:"summarizeBy,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *EntityQuery
}

type CustomEntityQuery

type CustomEntityQuery interface {
}

type CustomEntityQueryKind

type CustomEntityQueryKind string
const (
	CustomEntityQueryKindActivity CustomEntityQueryKind = "Activity"
)

type DataTypeDefinitions

type DataTypeDefinitions struct {
	DataType *string `json:"dataType,omitempty"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type EntityQueriesClient

type EntityQueriesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewEntityQueriesClientWithBaseURI

func NewEntityQueriesClientWithBaseURI(endpoint string) EntityQueriesClient

func (EntityQueriesClient) CreateOrUpdate

CreateOrUpdate ...

func (EntityQueriesClient) Delete

Delete ...

func (EntityQueriesClient) EntityQueryTemplatesGet

EntityQueryTemplatesGet ...

func (EntityQueriesClient) EntityQueryTemplatesList

EntityQueryTemplatesList ...

func (EntityQueriesClient) EntityQueryTemplatesListComplete

EntityQueryTemplatesListComplete retrieves all of the results into a single object

func (EntityQueriesClient) EntityQueryTemplatesListCompleteMatchingPredicate

EntityQueryTemplatesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (EntityQueriesClient) Get

Get ...

func (EntityQueriesClient) List

List ...

func (EntityQueriesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (EntityQueriesClient) ListCompleteMatchingPredicate

func (c EntityQueriesClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, predicate EntityQueryOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type EntityQuery

type EntityQuery interface {
}

type EntityQueryId added in v0.20220907.1111434

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

EntityQueryId is a struct representing the Resource ID for a Entity Query

func NewEntityQueryID added in v0.20220907.1111434

func NewEntityQueryID(subscriptionId string, resourceGroupName string, workspaceName string, entityQueryId string) EntityQueryId

NewEntityQueryID returns a new EntityQueryId struct

func ParseEntityQueryID added in v0.20220907.1111434

func ParseEntityQueryID(input string) (*EntityQueryId, error)

ParseEntityQueryID parses 'input' into a EntityQueryId

func ParseEntityQueryIDInsensitively added in v0.20220907.1111434

func ParseEntityQueryIDInsensitively(input string) (*EntityQueryId, error)

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

func (EntityQueryId) ID added in v0.20220907.1111434

func (id EntityQueryId) ID() string

ID returns the formatted Entity Query ID

func (EntityQueryId) Segments added in v0.20220907.1111434

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

Segments returns a slice of Resource ID Segments which comprise this Entity Query ID

func (EntityQueryId) String added in v0.20220907.1111434

func (id EntityQueryId) String() string

String returns a human-readable description of this Entity Query ID

type EntityQueryKind

type EntityQueryKind string
const (
	EntityQueryKindActivity  EntityQueryKind = "Activity"
	EntityQueryKindExpansion EntityQueryKind = "Expansion"
	EntityQueryKindInsight   EntityQueryKind = "Insight"
)

type EntityQueryOperationPredicate

type EntityQueryOperationPredicate struct {
}

func (EntityQueryOperationPredicate) Matches

type EntityQueryTemplate

type EntityQueryTemplate interface {
}

type EntityQueryTemplateId

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

EntityQueryTemplateId is a struct representing the Resource ID for a Entity Query Template

func NewEntityQueryTemplateID

func NewEntityQueryTemplateID(subscriptionId string, resourceGroupName string, workspaceName string, entityQueryTemplateId string) EntityQueryTemplateId

NewEntityQueryTemplateID returns a new EntityQueryTemplateId struct

func ParseEntityQueryTemplateID

func ParseEntityQueryTemplateID(input string) (*EntityQueryTemplateId, error)

ParseEntityQueryTemplateID parses 'input' into a EntityQueryTemplateId

func ParseEntityQueryTemplateIDInsensitively

func ParseEntityQueryTemplateIDInsensitively(input string) (*EntityQueryTemplateId, error)

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

func (EntityQueryTemplateId) ID

func (id EntityQueryTemplateId) ID() string

ID returns the formatted Entity Query Template ID

func (EntityQueryTemplateId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Entity Query Template ID

func (EntityQueryTemplateId) String

func (id EntityQueryTemplateId) String() string

String returns a human-readable description of this Entity Query Template ID

type EntityQueryTemplateKind

type EntityQueryTemplateKind string
const (
	EntityQueryTemplateKindActivity EntityQueryTemplateKind = "Activity"
)

type EntityQueryTemplateOperationPredicate

type EntityQueryTemplateOperationPredicate struct {
}

func (EntityQueryTemplateOperationPredicate) Matches

type EntityQueryTemplatesGetOperationResponse

type EntityQueryTemplatesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *EntityQueryTemplate
}

type EntityQueryTemplatesListCompleteResult

type EntityQueryTemplatesListCompleteResult struct {
	Items []EntityQueryTemplate
}

type EntityQueryTemplatesListOperationOptions

type EntityQueryTemplatesListOperationOptions struct {
	Kind *Kind
}

func DefaultEntityQueryTemplatesListOperationOptions

func DefaultEntityQueryTemplatesListOperationOptions() EntityQueryTemplatesListOperationOptions

type EntityQueryTemplatesListOperationResponse

type EntityQueryTemplatesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]EntityQueryTemplate
	// contains filtered or unexported fields
}

func (EntityQueryTemplatesListOperationResponse) HasMore

func (EntityQueryTemplatesListOperationResponse) LoadMore

type EntityType

type EntityType string
const (
	EntityTypeAccount          EntityType = "Account"
	EntityTypeAzureResource    EntityType = "AzureResource"
	EntityTypeCloudApplication EntityType = "CloudApplication"
	EntityTypeDNS              EntityType = "DNS"
	EntityTypeFile             EntityType = "File"
	EntityTypeFileHash         EntityType = "FileHash"
	EntityTypeHost             EntityType = "Host"
	EntityTypeHuntingBookmark  EntityType = "HuntingBookmark"
	EntityTypeIP               EntityType = "IP"
	EntityTypeIoTDevice        EntityType = "IoTDevice"
	EntityTypeMailCluster      EntityType = "MailCluster"
	EntityTypeMailMessage      EntityType = "MailMessage"
	EntityTypeMailbox          EntityType = "Mailbox"
	EntityTypeMalware          EntityType = "Malware"
	EntityTypeProcess          EntityType = "Process"
	EntityTypeRegistryKey      EntityType = "RegistryKey"
	EntityTypeRegistryValue    EntityType = "RegistryValue"
	EntityTypeSecurityAlert    EntityType = "SecurityAlert"
	EntityTypeSecurityGroup    EntityType = "SecurityGroup"
	EntityTypeSubmissionMail   EntityType = "SubmissionMail"
	EntityTypeURL              EntityType = "URL"
)

type ExpansionEntityQueriesProperties

type ExpansionEntityQueriesProperties struct {
	DataSources       *[]string     `json:"dataSources,omitempty"`
	DisplayName       *string       `json:"displayName,omitempty"`
	InputEntityType   *EntityType   `json:"inputEntityType,omitempty"`
	InputFields       *[]string     `json:"inputFields,omitempty"`
	OutputEntityTypes *[]EntityType `json:"outputEntityTypes,omitempty"`
	QueryTemplate     *string       `json:"queryTemplate,omitempty"`
}

type ExpansionEntityQuery

type ExpansionEntityQuery struct {
	Properties *ExpansionEntityQueriesProperties `json:"properties,omitempty"`

	// Fields inherited from EntityQuery
	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (ExpansionEntityQuery) MarshalJSON

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *EntityQuery
}

type Kind

type Kind string
const (
	KindActivity  Kind = "Activity"
	KindExpansion Kind = "Expansion"
)

type ListCompleteResult

type ListCompleteResult struct {
	Items []EntityQuery
}

type ListOperationOptions

type ListOperationOptions struct {
	Kind *Kind
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]EntityQuery
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

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

Jump to

Keyboard shortcuts

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