contenttemplates

package
v0.20240201.1155633 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2023-11-01/contenttemplates Documentation

The contenttemplates SDK allows for interaction with the Azure Resource Manager Service securityinsights (API Version 2023-11-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/2023-11-01/contenttemplates"

Client Initialization

client := contenttemplates.NewContentTemplatesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ContentTemplatesClient.ContentTemplateDelete

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

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

Example Usage: ContentTemplatesClient.ContentTemplateGet

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

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

Example Usage: ContentTemplatesClient.ContentTemplateInstall

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

payload := contenttemplates.TemplateModel{
	// ...
}


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

Example Usage: ContentTemplatesClient.List

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

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

func PossibleValuesForFlag() []string

func PossibleValuesForKind

func PossibleValuesForKind() []string

func PossibleValuesForOperator

func PossibleValuesForOperator() []string

func PossibleValuesForPackageKind

func PossibleValuesForPackageKind() []string

func PossibleValuesForSourceKind

func PossibleValuesForSourceKind() []string

func PossibleValuesForSupportTier

func PossibleValuesForSupportTier() []string

func ValidateContentTemplateID

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

ValidateContentTemplateID checks that 'input' can be parsed as a Content 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 ContentTemplateDeleteOperationResponse

type ContentTemplateDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type ContentTemplateGetOperationResponse

type ContentTemplateGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *TemplateModel
}

type ContentTemplateId

type ContentTemplateId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	TemplateId        string
}

ContentTemplateId is a struct representing the Resource ID for a Content Template

func NewContentTemplateID

func NewContentTemplateID(subscriptionId string, resourceGroupName string, workspaceName string, templateId string) ContentTemplateId

NewContentTemplateID returns a new ContentTemplateId struct

func ParseContentTemplateID

func ParseContentTemplateID(input string) (*ContentTemplateId, error)

ParseContentTemplateID parses 'input' into a ContentTemplateId

func ParseContentTemplateIDInsensitively

func ParseContentTemplateIDInsensitively(input string) (*ContentTemplateId, error)

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

func (*ContentTemplateId) FromParseResult

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

func (ContentTemplateId) ID

func (id ContentTemplateId) ID() string

ID returns the formatted Content Template ID

func (ContentTemplateId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Content Template ID

func (ContentTemplateId) String

func (id ContentTemplateId) String() string

String returns a human-readable description of this Content Template ID

type ContentTemplateInstallOperationResponse

type ContentTemplateInstallOperationResponse struct {
	HttpResponse *http.Response
	Model        *TemplateModel
}

type ContentTemplatesClient

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

func NewContentTemplatesClientWithBaseURI

func NewContentTemplatesClientWithBaseURI(endpoint string) ContentTemplatesClient

func (ContentTemplatesClient) ContentTemplateDelete

ContentTemplateDelete ...

func (ContentTemplatesClient) ContentTemplateGet

ContentTemplateGet ...

func (ContentTemplatesClient) ContentTemplateInstall

ContentTemplateInstall ...

func (ContentTemplatesClient) List

List ...

func (ContentTemplatesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ContentTemplatesClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type Flag

type Flag string
const (
	FlagFalse Flag = "false"
	FlagTrue  Flag = "true"
)

type Kind

type Kind string
const (
	KindAnalyticsRule            Kind = "AnalyticsRule"
	KindAnalyticsRuleTemplate    Kind = "AnalyticsRuleTemplate"
	KindAutomationRule           Kind = "AutomationRule"
	KindAzureFunction            Kind = "AzureFunction"
	KindDataConnector            Kind = "DataConnector"
	KindDataType                 Kind = "DataType"
	KindHuntingQuery             Kind = "HuntingQuery"
	KindInvestigationQuery       Kind = "InvestigationQuery"
	KindLogicAppsCustomConnector Kind = "LogicAppsCustomConnector"
	KindParser                   Kind = "Parser"
	KindPlaybook                 Kind = "Playbook"
	KindPlaybookTemplate         Kind = "PlaybookTemplate"
	KindSolution                 Kind = "Solution"
	KindWatchlist                Kind = "Watchlist"
	KindWatchlistTemplate        Kind = "WatchlistTemplate"
	KindWorkbook                 Kind = "Workbook"
	KindWorkbookTemplate         Kind = "WorkbookTemplate"
)

type ListCompleteResult

type ListCompleteResult struct {
	Items []TemplateModel
}

type ListOperationOptions

type ListOperationOptions struct {
	Count   *bool
	Expand  *string
	Filter  *string
	Orderby *string
	Search  *string
	Skip    *int64
	Top     *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]TemplateModel
	// 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 MetadataAuthor

type MetadataAuthor struct {
	Email *string `json:"email,omitempty"`
	Link  *string `json:"link,omitempty"`
	Name  *string `json:"name,omitempty"`
}

type MetadataCategories

type MetadataCategories struct {
	Domains   *[]string `json:"domains,omitempty"`
	Verticals *[]string `json:"verticals,omitempty"`
}

type MetadataDependencies

type MetadataDependencies struct {
	ContentId *string                 `json:"contentId,omitempty"`
	Criteria  *[]MetadataDependencies `json:"criteria,omitempty"`
	Kind      *Kind                   `json:"kind,omitempty"`
	Name      *string                 `json:"name,omitempty"`
	Operator  *Operator               `json:"operator,omitempty"`
	Version   *string                 `json:"version,omitempty"`
}

type MetadataSource

type MetadataSource struct {
	Kind     SourceKind `json:"kind"`
	Name     *string    `json:"name,omitempty"`
	SourceId *string    `json:"sourceId,omitempty"`
}

type MetadataSupport

type MetadataSupport struct {
	Email *string     `json:"email,omitempty"`
	Link  *string     `json:"link,omitempty"`
	Name  *string     `json:"name,omitempty"`
	Tier  SupportTier `json:"tier"`
}

type Operator

type Operator string
const (
	OperatorAND Operator = "AND"
	OperatorOR  Operator = "OR"
)

type PackageKind

type PackageKind string
const (
	PackageKindSolution   PackageKind = "Solution"
	PackageKindStandalone PackageKind = "Standalone"
)

type SourceKind

type SourceKind string
const (
	SourceKindCommunity        SourceKind = "Community"
	SourceKindLocalWorkspace   SourceKind = "LocalWorkspace"
	SourceKindSolution         SourceKind = "Solution"
	SourceKindSourceRepository SourceKind = "SourceRepository"
)

type SupportTier

type SupportTier string
const (
	SupportTierCommunity SupportTier = "Community"
	SupportTierMicrosoft SupportTier = "Microsoft"
	SupportTierPartner   SupportTier = "Partner"
)

type TemplateModel

type TemplateModel struct {
	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *TemplateProperties    `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type TemplateModelOperationPredicate

type TemplateModelOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (TemplateModelOperationPredicate) Matches

type TemplateProperties

type TemplateProperties struct {
	Author                   *MetadataAuthor       `json:"author,omitempty"`
	Categories               *MetadataCategories   `json:"categories,omitempty"`
	ContentId                string                `json:"contentId"`
	ContentKind              Kind                  `json:"contentKind"`
	ContentProductId         string                `json:"contentProductId"`
	ContentSchemaVersion     *string               `json:"contentSchemaVersion,omitempty"`
	CustomVersion            *string               `json:"customVersion,omitempty"`
	DependantTemplates       *[]TemplateProperties `json:"dependantTemplates,omitempty"`
	Dependencies             *MetadataDependencies `json:"dependencies,omitempty"`
	DisplayName              string                `json:"displayName"`
	FirstPublishDate         *string               `json:"firstPublishDate,omitempty"`
	Icon                     *string               `json:"icon,omitempty"`
	IsDeprecated             *Flag                 `json:"isDeprecated,omitempty"`
	LastPublishDate          *string               `json:"lastPublishDate,omitempty"`
	MainTemplate             *interface{}          `json:"mainTemplate,omitempty"`
	PackageId                string                `json:"packageId"`
	PackageKind              *PackageKind          `json:"packageKind,omitempty"`
	PackageName              *string               `json:"packageName,omitempty"`
	PackageVersion           string                `json:"packageVersion"`
	PreviewImages            *[]string             `json:"previewImages,omitempty"`
	PreviewImagesDark        *[]string             `json:"previewImagesDark,omitempty"`
	Providers                *[]string             `json:"providers,omitempty"`
	Source                   MetadataSource        `json:"source"`
	Support                  *MetadataSupport      `json:"support,omitempty"`
	ThreatAnalysisTactics    *[]string             `json:"threatAnalysisTactics,omitempty"`
	ThreatAnalysisTechniques *[]string             `json:"threatAnalysisTechniques,omitempty"`
	Version                  string                `json:"version"`
}

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

Jump to

Keyboard shortcuts

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